# CfnDomainProps

Struct · External

Properties for defining a `CfnDomain`.

Used as props by: [CfnDomain](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_datazone.CfnDomain.html)

- Source: Generated at build time
- Type last changed: v2.254.0 · 13 May 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_datazone as datazone } from 'aws-cdk-lib';
const cfnDomainProps: datazone.CfnDomainProps = {
  name: 'name',

  // the properties below are optional
  description: 'description',
  domainExecutionRole: 'domainExecutionRole',
  domainVersion: 'domainVersion',
  kmsKeyIdentifier: 'kmsKeyIdentifier',
  serviceRole: 'serviceRole',
  singleSignOn: {
    idcInstanceArn: 'idcInstanceArn',
    type: 'type',
    userAssignment: 'userAssignment',
  },
  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_datazone as datazone

cfn_domain_props = datazone.CfnDomainProps(
    name="name",

    # the properties below are optional
    description="description",
    domain_execution_role="domainExecutionRole",
    domain_version="domainVersion",
    kms_key_identifier="kmsKeyIdentifier",
    service_role="serviceRole",
    single_sign_on=datazone.CfnDomain.SingleSignOnProperty(
        idc_instance_arn="idcInstanceArn",
        type="type",
        user_assignment="userAssignment"
    ),
    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.datazone.*;

CfnDomainProps cfnDomainProps = CfnDomainProps.builder()
        .name("name")

        // the properties below are optional
        .description("description")
        .domainExecutionRole("domainExecutionRole")
        .domainVersion("domainVersion")
        .kmsKeyIdentifier("kmsKeyIdentifier")
        .serviceRole("serviceRole")
        .singleSignOn(SingleSignOnProperty.builder()
                .idcInstanceArn("idcInstanceArn")
                .type("type")
                .userAssignment("userAssignment")
                .build())
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
```

C#:

```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.DataZone;

var cfnDomainProps = new CfnDomainProps {
    Name = "name",

    // the properties below are optional
    Description = "description",
    DomainExecutionRole = "domainExecutionRole",
    DomainVersion = "domainVersion",
    KmsKeyIdentifier = "kmsKeyIdentifier",
    ServiceRole = "serviceRole",
    SingleSignOn = new SingleSignOnProperty {
        IdcInstanceArn = "idcInstanceArn",
        Type = "type",
        UserAssignment = "userAssignment"
    },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

Go:

```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{
	Name: jsii.String("name"),

	// the properties below are optional
	Description: jsii.String("description"),
	DomainExecutionRole: jsii.String("domainExecutionRole"),
	DomainVersion: jsii.String("domainVersion"),
	KmsKeyIdentifier: jsii.String("kmsKeyIdentifier"),
	ServiceRole: jsii.String("serviceRole"),
	SingleSignOn: &SingleSignOnProperty{
		IdcInstanceArn: jsii.String("idcInstanceArn"),
		Type: jsii.String("type"),
		UserAssignment: jsii.String("userAssignment"),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `description`: string — The description of the Amazon DataZone domain.

- `domainExecutionRole`: string — The domain execution role that is created when an Amazon DataZone domain is created.

  The domain execution role is created in the AWS account that houses the Amazon DataZone domain.

- `domainVersion`: string — The domain version.

- `kmsKeyIdentifier`: string — The identifier of the AWS Key Management Service (KMS) key that is used to encrypt the Amazon DataZone domain, metadata, and reporting data.

- `name`: string (required) — The name of the Amazon DataZone domain.

- `serviceRole`: string — The service role of the domain.

- `singleSignOn`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDomain.SingleSignOnProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_datazone.CfnDomain.SingleSignOnProperty.html) — The single sign-on details in Amazon DataZone.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags specified for the Amazon DataZone domain.
