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 Details

    • create

      @Stability(Stable) public static CfnAssessmentTarget.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      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

      @Stability(Stable) public CfnAssessmentTarget.Builder resourceGroupArn(String 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

      @Stability(Stable) public CfnAssessmentTarget build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnAssessmentTarget>
      Returns:
      a newly built instance of CfnAssessmentTarget.