# CfnObjectTypeProps

Properties for defining a `CfnObjectType`.

Extends: CfnObjectTypeProps
Used as props by: CfnObjectType

- Source: Generated code
- Type last changed: v2.241.0 · 2 Mar 2026

## Example

```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 cfnObjectTypeProps: customerprofiles.CfnObjectTypeProps = {
  description: 'description',
  domainName: 'domainName',
  objectTypeName: 'objectTypeName',

  // the properties below are optional
  allowProfileCreation: false,
  encryptionKey: 'encryptionKey',
  expirationDays: 123,
  fields: [{
    name: 'name',
    objectTypeField: {
      contentType: 'contentType',
      source: 'source',
      target: 'target',
    },
  }],
  keys: [{
    name: 'name',
    objectTypeKeyList: [{
      fieldNames: ['fieldNames'],
      standardIdentifiers: ['standardIdentifiers'],
    }],
  }],
  maxProfileObjectCount: 123,
  sourceLastUpdatedTimestampFormat: 'sourceLastUpdatedTimestampFormat',
  sourcePriority: 123,
  tags: [{
    key: 'key',
    value: 'value',
  }],
  templateId: 'templateId',
};
```

## Properties

- `allowProfileCreation`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Indicates whether a profile should be created when data is received if one doesn’t exist for an object of this type.

  The default is `FALSE` . If the AllowProfileCreation flag is set to `FALSE` , then the service tries to fetch a standard profile and associate this object with the profile. If it is set to `TRUE` , and if no match is found, then the service creates a new standard profile.

- `description`: string (required) — The description of the profile object type mapping.

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

- `encryptionKey`: string — The customer-provided key to encrypt the profile object that will be created in this profile object type mapping.

  If not specified the system will use the encryption key of the domain.

- `expirationDays`: number — The number of days until the data of this type expires.

- `fields`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnObjectType.FieldMapProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_customerprofiles.CfnObjectType.FieldMapProperty.html)[] — A list of field definitions for the object type mapping.

- `keys`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnObjectType.KeyMapProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_customerprofiles.CfnObjectType.KeyMapProperty.html)[] — A list of keys that can be used to map data to the profile or search for the profile.

- `maxProfileObjectCount`: number — The amount of profile object max count assigned to the object type.

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

- `sourceLastUpdatedTimestampFormat`: string — The format of your sourceLastUpdatedTimestamp that was previously set up.

- `sourcePriority`: number — Defines the priority order of object types.

  Lower value indicates higher priority.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags used to organize, track, or control access for this resource.

- `templateId`: string — A unique identifier for the template mapping.

  This can be used instead of specifying the Keys and Fields properties directly.
