# CfnAccessProfileProps

Properties for defining a `CfnAccessProfile`.

Used as props by: [CfnAccessProfile](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.CfnAccessProfile.html)

- Source: Generated at build time
- Type last changed: v2.276.0 · 10 Nov 2026

## Example

TypeScript:

```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 cfnAccessProfileProps: cloudwatch.CfnAccessProfileProps = {
  name: 'name',
  spaceId: 'spaceId',

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

Python:

```python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloudwatch as cloudwatch

cfn_access_profile_props = cloudwatch.CfnAccessProfileProps(
    name="name",
    space_id="spaceId",

    # the properties below are optional
    description="description",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudwatch.*;

CfnAccessProfileProps cfnAccessProfileProps = CfnAccessProfileProps.builder()
        .name("name")
        .spaceId("spaceId")

        // the properties below are optional
        .description("description")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudWatch;

var cfnAccessProfileProps = new CfnAccessProfileProps {
    Name = "name",
    SpaceId = "spaceId",

    // the properties below are optional
    Description = "description",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnAccessProfileProps := &CfnAccessProfileProps{
	Name: jsii.String("name"),
	SpaceId: jsii.String("spaceId"),

	// the properties below are optional
	Description: jsii.String("description"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `description`: string — The description of the access profile.

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

- `spaceId`: string (required) — The unique identifier of the space the access profile belongs to.

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