# CfnDomainUnitProps

Properties for defining a `CfnDomainUnit`.

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

- Source: Generated at build time
- Type last changed: v2.195.0 · 7 May 2025

## 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 cfnDomainUnitProps: datazone.CfnDomainUnitProps = {
  domainIdentifier: 'domainIdentifier',
  name: 'name',
  parentDomainUnitIdentifier: 'parentDomainUnitIdentifier',

  // the properties below are optional
  description: 'description',
};
```

Python:

```python
# 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_unit_props = datazone.CfnDomainUnitProps(
    domain_identifier="domainIdentifier",
    name="name",
    parent_domain_unit_identifier="parentDomainUnitIdentifier",

    # the properties below are optional
    description="description"
)
```

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.*;

CfnDomainUnitProps cfnDomainUnitProps = CfnDomainUnitProps.builder()
        .domainIdentifier("domainIdentifier")
        .name("name")
        .parentDomainUnitIdentifier("parentDomainUnitIdentifier")

        // the properties below are optional
        .description("description")
        .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.DataZone;

var cfnDomainUnitProps = new CfnDomainUnitProps {
    DomainIdentifier = "domainIdentifier",
    Name = "name",
    ParentDomainUnitIdentifier = "parentDomainUnitIdentifier",

    // the properties below are optional
    Description = "description"
};
```

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"

cfnDomainUnitProps := &CfnDomainUnitProps{
	DomainIdentifier: jsii.String("domainIdentifier"),
	Name: jsii.String("name"),
	ParentDomainUnitIdentifier: jsii.String("parentDomainUnitIdentifier"),

	// the properties below are optional
	Description: jsii.String("description"),
}
```

## Properties

- `description`: string — The description of the domain unit.

- `domainIdentifier`: string (required) — The ID of the domain where you want to crate a domain unit.

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

- `parentDomainUnitIdentifier`: string (required) — The ID of the parent domain unit.
