# CfnSpaceProps

Properties for defining a `CfnSpace`.

Extends: CfnSpaceProps
Used as props by: CfnSpace

- Source: Generated code
- Type last changed: v2.276.0 · 10 Nov 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudwatch as cloudwatch } from 'aws-cdk-lib';
const cfnSpaceProps: cloudwatch.CfnSpaceProps = {
  dataAccessRoleArn: 'dataAccessRoleArn',
  domainId: 'domainId',
  name: 'name',

  // the properties below are optional
  agentCoreEvaluationRoleArn: 'agentCoreEvaluationRoleArn',
  encryptionConfiguration: {
    encryptionStrategy: 'encryptionStrategy',

    // the properties below are optional
    kmsKeyArn: 'kmsKeyArn',
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

## Properties

- `agentCoreEvaluationRoleArn`: string — The Amazon Resource Name (ARN) of the IAM role used for AgentCore evaluation.

- `dataAccessRoleArn`: string (required) — The Amazon Resource Name (ARN) of the IAM role the space uses to access observability data.

- `domainId`: string (required) — The identifier of the domain the space belongs to.

- `encryptionConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnSpace.EncryptionConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.CfnSpace.EncryptionConfigurationProperty.html) — The encryption configuration for the space.

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

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of key-value pairs to apply to this resource.
