# DomainUnitFilterForProjectProperty

The domain unit filter of the project grant filter.

- Source: Generated at build time
- Type last changed: v2.214.0 · 2 Sep 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 domainUnitFilterForProjectProperty: datazone.CfnPolicyGrant.DomainUnitFilterForProjectProperty = {
  domainUnit: 'domainUnit',

  // the properties below are optional
  includeChildDomainUnits: false,
};
```

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

domain_unit_filter_for_project_property = datazone.CfnPolicyGrant.DomainUnitFilterForProjectProperty(
    domain_unit="domainUnit",

    # the properties below are optional
    include_child_domain_units=False
)
```

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

DomainUnitFilterForProjectProperty domainUnitFilterForProjectProperty = DomainUnitFilterForProjectProperty.builder()
        .domainUnit("domainUnit")

        // the properties below are optional
        .includeChildDomainUnits(false)
        .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 domainUnitFilterForProjectProperty = new DomainUnitFilterForProjectProperty {
    DomainUnit = "domainUnit",

    // the properties below are optional
    IncludeChildDomainUnits = false
};
```

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"

domainUnitFilterForProjectProperty := &DomainUnitFilterForProjectProperty{
	DomainUnit: jsii.String("domainUnit"),

	// the properties below are optional
	IncludeChildDomainUnits: jsii.Boolean(false),
}
```

## Properties

- `domainUnit`: string (required) — The domain unit ID to use in the filter.

- `includeChildDomainUnits`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) = false — Specifies whether to include child domain units.
