Class CfnSecurityRequirementPack

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.securityagent.CfnSecurityRequirementPack
All Implemented Interfaces:
IInspectable, IEnvironmentAware, ISecurityRequirementPackRef, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)", date="2026-07-22T17:37:34.653Z") @Stability(Stable) public class CfnSecurityRequirementPack extends CfnResource implements IInspectable, ISecurityRequirementPackRef, ITaggableV2
Resource Type definition for AWS::SecurityAgent::SecurityRequirementPack.

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.securityagent.*;
 CfnSecurityRequirementPack cfnSecurityRequirementPack = CfnSecurityRequirementPack.Builder.create(this, "MyCfnSecurityRequirementPack")
         .name("name")
         // the properties below are optional
         .description("description")
         .kmsKeyId("kmsKeyId")
         .securityRequirements(List.of(SecurityRequirementProperty.builder()
                 .description("description")
                 .domain("domain")
                 .evaluation("evaluation")
                 .name("name")
                 // the properties below are optional
                 .remediation("remediation")
                 .build()))
         .status("status")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .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

    • CfnSecurityRequirementPack

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

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

      @Stability(Stable) public CfnSecurityRequirementPack(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnSecurityRequirementPackProps props)
      Create a new AWS::SecurityAgent::SecurityRequirementPack.

      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. This parameter is required.
  • Method Details

    • isCfnSecurityRequirementPack

      @Stability(Stable) @NotNull public static Boolean isCfnSecurityRequirementPack(@NotNull Object x)
      Checks whether the given object is a CfnSecurityRequirementPack.

      Parameters:
      x - This parameter is required.
    • 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.
    • getAttrPackId

      @Stability(Stable) @NotNull public String getAttrPackId()
      Unique identifier of the security requirement pack.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

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

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getSecurityRequirementPackRef

      @Stability(Stable) @NotNull public SecurityRequirementPackReference getSecurityRequirementPackRef()
      A reference to a SecurityRequirementPack resource.
      Specified by:
      getSecurityRequirementPackRef in interface ISecurityRequirementPackRef
    • getName

      @Stability(Stable) @NotNull public String getName()
      Name of the security requirement pack.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      Name of the security requirement pack.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      Description of the pack.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      Description of the pack.
    • getKmsKeyId

      @Stability(Stable) @Nullable public String getKmsKeyId()
      KMS key for client-side encryption of pack contents.
    • setKmsKeyId

      @Stability(Stable) public void setKmsKeyId(@Nullable String value)
      KMS key for client-side encryption of pack contents.
    • getSecurityRequirements

      @Stability(Stable) @Nullable public Object getSecurityRequirements()
      Security requirements within this pack.

      Returns union: either IResolvable or Listinvalid input: '<'either IResolvable or CfnSecurityRequirementPack.SecurityRequirementProperty>

    • setSecurityRequirements

      @Stability(Stable) public void setSecurityRequirements(@Nullable IResolvable value)
      Security requirements within this pack.
    • setSecurityRequirements

      @Stability(Stable) public void setSecurityRequirements(@Nullable List<Object> value)
      Security requirements within this pack.
    • getStatus

      @Stability(Stable) @Nullable public String getStatus()
      Whether the pack is enabled or disabled.
    • setStatus

      @Stability(Stable) public void setStatus(@Nullable String value)
      Whether the pack is enabled or disabled.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      Tags for the security requirement pack.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      Tags for the security requirement pack.