Class CfnAssessmentTarget

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

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:34:03.074Z") @Stability(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();
 

See Also:
  • 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 software.constructs.Construct scope, @NotNull String id, @Nullable CfnAssessmentTargetProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties.
    • CfnAssessmentTarget

      @Stability(Stable) public CfnAssessmentTarget(@NotNull software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). 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.
    • setAssessmentTargetName

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

      @Stability(Stable) @Nullable public String getResourceGroupArn()
      The ARN that specifies the resource group that is used to create 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.