# CfnAgentSpaceProps

Properties for defining a `CfnAgentSpace`.

Extends: CfnAgentSpaceProps
Used as props by: CfnAgentSpace

- Source: Generated code
- Type last changed: v2.249.0 · 13 Apr 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_securityagent as securityagent } from 'aws-cdk-lib';
const cfnAgentSpaceProps: securityagent.CfnAgentSpaceProps = {
  name: 'name',

  // the properties below are optional
  awsResources: {
    iamRoles: ['iamRoles'],
    lambdaFunctionArns: ['lambdaFunctionArns'],
    logGroups: ['logGroups'],
    s3Buckets: ['s3Buckets'],
    secretArns: ['secretArns'],
    vpcs: [{
      securityGroupArns: ['securityGroupArns'],
      subnetArns: ['subnetArns'],
      vpcArn: 'vpcArn',
    }],
  },
  codeReviewSettings: {
    controlsScanning: false,
    generalPurposeScanning: false,
  },
  description: 'description',
  integratedResources: [{
    integration: 'integration',
  }],
  kmsKeyId: 'kmsKeyId',
  tags: [{
    key: 'key',
    value: 'value',
  }],
  targetDomainIds: ['targetDomainIds'],
};
```

## Properties

- `awsResources`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAgentSpace.AWSResourcesProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_securityagent.CfnAgentSpace.AWSResourcesProperty.html) — AWS resource configuration.

- `codeReviewSettings`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAgentSpace.CodeReviewSettingsProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_securityagent.CfnAgentSpace.CodeReviewSettingsProperty.html) — Details of code review settings.

- `description`: string — Description of the agent space.

- `integratedResources`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAgentSpace.IntegratedResourceProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_securityagent.CfnAgentSpace.IntegratedResourceProperty.html)[] — Integrated Resources configuration.

- `kmsKeyId`: string — Identifier of the KMS key used to encrypt data.

  Can be a key ID, key ARN, alias name, or alias ARN. If not specified, an AWS managed key is used.

- `name`: string (required) — Name of the agent space.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — Tags for the agent space.

- `targetDomainIds`: string[] — List of target domain identifiers registered with the agent space.
