# CfnDomainProps

Properties for defining a `CfnDomain`.

Used as props by: [CfnDomain](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.CfnDomain.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 cfnDomainProps: cloudwatch.CfnDomainProps = {
  identityProviders: ['identityProviders'],
  name: 'name',

  // the properties below are optional
  identityProviderConfiguration: {
    identityCenterConfiguration: {
      identityCenterInstanceArn: 'identityCenterInstanceArn',
    },
  },
  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_domain_props = cloudwatch.CfnDomainProps(
    identity_providers=["identityProviders"],
    name="name",

    # the properties below are optional
    identity_provider_configuration=cloudwatch.CfnDomain.IdentityProviderConfigurationProperty(
        identity_center_configuration=cloudwatch.CfnDomain.IdentityCenterConfigurationProperty(
            identity_center_instance_arn="identityCenterInstanceArn"
        )
    ),
    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.*;

CfnDomainProps cfnDomainProps = CfnDomainProps.builder()
        .identityProviders(List.of("identityProviders"))
        .name("name")

        // the properties below are optional
        .identityProviderConfiguration(IdentityProviderConfigurationProperty.builder()
                .identityCenterConfiguration(IdentityCenterConfigurationProperty.builder()
                        .identityCenterInstanceArn("identityCenterInstanceArn")
                        .build())
                .build())
        .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 cfnDomainProps = new CfnDomainProps {
    IdentityProviders = new [] { "identityProviders" },
    Name = "name",

    // the properties below are optional
    IdentityProviderConfiguration = new IdentityProviderConfigurationProperty {
        IdentityCenterConfiguration = new IdentityCenterConfigurationProperty {
            IdentityCenterInstanceArn = "identityCenterInstanceArn"
        }
    },
    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"

cfnDomainProps := &CfnDomainProps{
	IdentityProviders: []*string{
		jsii.String("identityProviders"),
	},
	Name: jsii.String("name"),

	// the properties below are optional
	IdentityProviderConfiguration: &IdentityProviderConfigurationProperty{
		IdentityCenterConfiguration: &IdentityCenterConfigurationProperty{
			IdentityCenterInstanceArn: jsii.String("identityCenterInstanceArn"),
		},
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `identityProviderConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDomain.IdentityProviderConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.CfnDomain.IdentityProviderConfigurationProperty.html) — Identity provider configuration for the domain.

- `identityProviders`: string[] (required) — The identity providers configured for the domain.

- `name`: string (required) — A name that identifies the domain.

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