Class CfnAgentSpace

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

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-04-14T18:32:04.500Z") @Stability(Stable) public class CfnAgentSpace extends CfnResource implements IInspectable, IAgentSpaceRef, ITaggableV2
Resource Type definition for AWS::SecurityAgent::AgentSpace.

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.*;
 CfnAgentSpace cfnAgentSpace = CfnAgentSpace.Builder.create(this, "MyCfnAgentSpace")
         .name("name")
         // the properties below are optional
         .awsResources(AWSResourcesProperty.builder()
                 .iamRoles(List.of("iamRoles"))
                 .lambdaFunctionArns(List.of("lambdaFunctionArns"))
                 .logGroups(List.of("logGroups"))
                 .s3Buckets(List.of("s3Buckets"))
                 .secretArns(List.of("secretArns"))
                 .vpcs(List.of(VpcConfigProperty.builder()
                         .securityGroupArns(List.of("securityGroupArns"))
                         .subnetArns(List.of("subnetArns"))
                         .vpcArn("vpcArn")
                         .build()))
                 .build())
         .codeReviewSettings(CodeReviewSettingsProperty.builder()
                 .controlsScanning(false)
                 .generalPurposeScanning(false)
                 .build())
         .description("description")
         .integratedResources(List.of(IntegratedResourceProperty.builder()
                 .integration("integration")
                 .build()))
         .kmsKeyId("kmsKeyId")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .targetDomainIds(List.of("targetDomainIds"))
         .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

    • CfnAgentSpace

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

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

      @Stability(Stable) public CfnAgentSpace(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnAgentSpaceProps props)
      Create a new AWS::SecurityAgent::AgentSpace.

      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

    • isCfnAgentSpace

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

      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.
    • getAgentSpaceRef

      @Stability(Stable) @NotNull public AgentSpaceReference getAgentSpaceRef()
      A reference to a AgentSpace resource.
      Specified by:
      getAgentSpaceRef in interface IAgentSpaceRef
    • getAttrAgentSpaceId

      @Stability(Stable) @NotNull public String getAttrAgentSpaceId()
      Unique identifier of the agent space.
    • getAttrCreatedAt

      @Stability(Stable) @NotNull public String getAttrCreatedAt()
      Timestamp when the agent space was created.
    • getAttrUpdatedAt

      @Stability(Stable) @NotNull public String getAttrUpdatedAt()
      Timestamp when the agent space was last updated.
    • 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
    • getName

      @Stability(Stable) @NotNull public String getName()
      Name of the agent space.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      Name of the agent space.
    • getAwsResources

      @Stability(Stable) @Nullable public Object getAwsResources()
      AWS resource configuration.

      Returns union: either IResolvable or CfnAgentSpace.AWSResourcesProperty

    • setAwsResources

      @Stability(Stable) public void setAwsResources(@Nullable IResolvable value)
      AWS resource configuration.
    • setAwsResources

      @Stability(Stable) public void setAwsResources(@Nullable CfnAgentSpace.AWSResourcesProperty value)
      AWS resource configuration.
    • getCodeReviewSettings

      @Stability(Stable) @Nullable public Object getCodeReviewSettings()
      Details of code review settings.

      Returns union: either IResolvable or CfnAgentSpace.CodeReviewSettingsProperty

    • setCodeReviewSettings

      @Stability(Stable) public void setCodeReviewSettings(@Nullable IResolvable value)
      Details of code review settings.
    • setCodeReviewSettings

      @Stability(Stable) public void setCodeReviewSettings(@Nullable CfnAgentSpace.CodeReviewSettingsProperty value)
      Details of code review settings.
    • getDescription

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

      @Stability(Stable) public void setDescription(@Nullable String value)
      Description of the agent space.
    • getIntegratedResources

      @Stability(Stable) @Nullable public Object getIntegratedResources()
      Integrated Resources configuration.

      Returns union: either IResolvable or Listinvalid input: '<'either IResolvable or CfnAgentSpace.IntegratedResourceProperty>

    • setIntegratedResources

      @Stability(Stable) public void setIntegratedResources(@Nullable IResolvable value)
      Integrated Resources configuration.
    • setIntegratedResources

      @Stability(Stable) public void setIntegratedResources(@Nullable List<Object> value)
      Integrated Resources configuration.
    • getKmsKeyId

      @Stability(Stable) @Nullable public String getKmsKeyId()
      Identifier of the KMS key used to encrypt data.
    • setKmsKeyId

      @Stability(Stable) public void setKmsKeyId(@Nullable String value)
      Identifier of the KMS key used to encrypt data.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      Tags for the agent space.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      Tags for the agent space.
    • getTargetDomainIds

      @Stability(Stable) @Nullable public List<String> getTargetDomainIds()
      List of target domain identifiers registered with the agent space.
    • setTargetDomainIds

      @Stability(Stable) public void setTargetDomainIds(@Nullable List<String> value)
      List of target domain identifiers registered with the agent space.