@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.827Z") @Stability(value=Stable) public class CfnAssessmentTarget extends CfnResource implements IInspectable
The AWS::Inspector::AssessmentTarget resource is used to create Amazon Inspector assessment targets, which specify the Amazon EC2 instances that will be analyzed during an assessment run.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.inspector.*;
CfnAssessmentTarget cfnAssessmentTarget = CfnAssessmentTarget.Builder.create(this, "MyCfnAssessmentTarget")
.assessmentTargetName("assessmentTargetName")
.resourceGroupArn("resourceGroupArn")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnAssessmentTarget.Builder
A fluent builder for
CfnAssessmentTarget. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnAssessmentTarget(software.constructs.Construct scope,
String id)
Create a new `AWS::Inspector::AssessmentTarget`.
|
|
CfnAssessmentTarget(software.constructs.Construct scope,
String id,
CfnAssessmentTargetProps props)
Create a new `AWS::Inspector::AssessmentTarget`.
|
protected |
CfnAssessmentTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnAssessmentTarget(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAssessmentTargetName()
The name of the Amazon Inspector assessment target.
|
String |
getAttrArn()
The Amazon Resource Name (ARN) that specifies the assessment target that is created.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getResourceGroupArn()
The ARN that specifies the resource group that is used to create the assessment target.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAssessmentTargetName(String value)
The name of the Amazon Inspector assessment target.
|
void |
setResourceGroupArn(String value)
The ARN that specifies the resource group that is used to create the assessment target.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnAssessmentTarget(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnAssessmentTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnAssessmentTarget(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
CfnAssessmentTargetProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties.@Stability(value=Stable)
public CfnAssessmentTarget(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public String getAssessmentTargetName()
The name must be unique within the AWS account .
@Stability(value=Stable)
public void setAssessmentTargetName(@Nullable
String value)
The name must be unique within the AWS account .
@Stability(value=Stable) @Nullable public String getResourceGroupArn()
If resourceGroupArn is not specified, all EC2 instances in the current AWS account and Region are included in the assessment target.
@Stability(value=Stable)
public void setResourceGroupArn(@Nullable
String value)
If resourceGroupArn is not specified, all EC2 instances in the current AWS account and Region are included in the assessment target.
Copyright © 2022. All rights reserved.