# CfnDomainObjectTypeProps

Properties for defining a `CfnDomainObjectType`.

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

- Source: Generated at build time
- Type last changed: v2.253.0 · 6 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_customerprofiles as customerprofiles } from 'aws-cdk-lib';
const cfnDomainObjectTypeProps: customerprofiles.CfnDomainObjectTypeProps = {
  domainName: 'domainName',
  fields: {
    fieldsKey: {
      source: 'source',
      target: 'target',

      // the properties below are optional
      contentType: 'contentType',
      featureType: 'featureType',
    },
  },
  objectTypeName: 'objectTypeName',

  // the properties below are optional
  description: 'description',
  encryptionKey: 'encryptionKey',
  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_customerprofiles as customerprofiles

cfn_domain_object_type_props = customerprofiles.CfnDomainObjectTypeProps(
    domain_name="domainName",
    fields={
        "fields_key": customerprofiles.CfnDomainObjectType.DomainObjectTypeFieldProperty(
            source="source",
            target="target",

            # the properties below are optional
            content_type="contentType",
            feature_type="featureType"
        )
    },
    object_type_name="objectTypeName",

    # the properties below are optional
    description="description",
    encryption_key="encryptionKey",
    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.customerprofiles.*;

CfnDomainObjectTypeProps cfnDomainObjectTypeProps = CfnDomainObjectTypeProps.builder()
        .domainName("domainName")
        .fields(Map.of(
                "fieldsKey", DomainObjectTypeFieldProperty.builder()
                        .source("source")
                        .target("target")

                        // the properties below are optional
                        .contentType("contentType")
                        .featureType("featureType")
                        .build()))
        .objectTypeName("objectTypeName")

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

var cfnDomainObjectTypeProps = new CfnDomainObjectTypeProps {
    DomainName = "domainName",
    Fields = new Dictionary<string, object> {
        { "fieldsKey", new DomainObjectTypeFieldProperty {
            Source = "source",
            Target = "target",

            // the properties below are optional
            ContentType = "contentType",
            FeatureType = "featureType"
        } }
    },
    ObjectTypeName = "objectTypeName",

    // the properties below are optional
    Description = "description",
    EncryptionKey = "encryptionKey",
    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"

cfnDomainObjectTypeProps := &CfnDomainObjectTypeProps{
	DomainName: jsii.String("domainName"),
	Fields: map[string]interface{}{
		"fieldsKey": &DomainObjectTypeFieldProperty{
			"source": jsii.String("source"),
			"target": jsii.String("target"),

			// the properties below are optional
			"contentType": jsii.String("contentType"),
			"featureType": jsii.String("featureType"),
		},
	},
	ObjectTypeName: jsii.String("objectTypeName"),

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

## Properties

- `description`: string — Description of the domain object type.

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

- `encryptionKey`: string — The default encryption key.

- `fields`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDomainObjectType.DomainObjectTypeFieldProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_customerprofiles.CfnDomainObjectType.DomainObjectTypeFieldProperty.html) } (required) — A map of the name and ObjectType field.

- `objectTypeName`: string (required) — The name of the domain object type.

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