Class CfnAssessmentTarget.Builder
java.lang.Object
software.amazon.awscdk.services.inspector.CfnAssessmentTarget.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssessmentTarget>
- Enclosing class:
CfnAssessmentTarget
@Stability(Stable)
public static final class CfnAssessmentTarget.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssessmentTarget>
A fluent builder for
CfnAssessmentTarget
.-
Method Summary
Modifier and TypeMethodDescriptionassessmentTargetName
(String assessmentTargetName) The name of the Amazon Inspector assessment target.build()
static CfnAssessmentTarget.Builder
resourceGroupArn
(String resourceGroupArn) The ARN that specifies the resource group that is used to create the assessment target.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnAssessmentTarget.Builder
.
-
assessmentTargetName
@Stability(Stable) public CfnAssessmentTarget.Builder assessmentTargetName(String assessmentTargetName) The name of the Amazon Inspector assessment target.The name must be unique within the AWS account .
- Parameters:
assessmentTargetName
- The name of the Amazon Inspector assessment target. This parameter is required.- Returns:
this
-
resourceGroupArn
The ARN that specifies the resource group that is used to create the assessment target.If
resourceGroupArn
is not specified, all EC2 instances in the current AWS account and Region are included in the assessment target.- Parameters:
resourceGroupArn
- The ARN that specifies the resource group that is used to create the assessment target. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAssessmentTarget>
- Returns:
- a newly built instance of
CfnAssessmentTarget
.
-