Class CfnAssessmentTarget

java.lang.Object
software.amazon.jsii.JsiiObject
All Implemented Interfaces:
IConstruct, IDependable, IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:57.462Z") @Stability(Stable) public class CfnAssessmentTarget extends CfnResource implements IInspectable
A CloudFormation AWS::Inspector::AssessmentTarget.

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();
 
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnAssessmentTarget

      protected CfnAssessmentTarget(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnAssessmentTarget

      protected CfnAssessmentTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnAssessmentTarget

      @Stability(Stable) public CfnAssessmentTarget(@NotNull Construct scope, @NotNull String id, @Nullable CfnAssessmentTargetProps props)
      Create a new AWS::Inspector::AssessmentTarget.

      Parameters:
      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.
    • CfnAssessmentTarget

      @Stability(Stable) public CfnAssessmentTarget(@NotNull Construct scope, @NotNull String id)
      Create a new AWS::Inspector::AssessmentTarget.

      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector -
      • tree inspector to collect and process attributes.
      This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name (ARN) that specifies the assessment target that is created.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getAssessmentTargetName

      @Stability(Stable) @Nullable public String getAssessmentTargetName()
      The name of the Amazon Inspector assessment target.

      The name must be unique within the AWS account .

    • setAssessmentTargetName

      @Stability(Stable) public void setAssessmentTargetName(@Nullable String value)
      The name of the Amazon Inspector assessment target.

      The name must be unique within the AWS account .

    • getResourceGroupArn

      @Stability(Stable) @Nullable public String getResourceGroupArn()
      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.

    • setResourceGroupArn

      @Stability(Stable) public void setResourceGroupArn(@Nullable String value)
      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.