# CfnPredefinedAttributeProps

Properties for defining a `CfnPredefinedAttribute`.

Extends: CfnPredefinedAttributeProps
Used as props by: CfnPredefinedAttribute

- Source: Generated code
- Type last changed: v2.214.0 · 2 Sep 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_connect as connect } from 'aws-cdk-lib';
const cfnPredefinedAttributeProps: connect.CfnPredefinedAttributeProps = {
  instanceArn: 'instanceArn',
  name: 'name',

  // the properties below are optional
  attributeConfiguration: {
    enableValueValidationOnAssociation: false,
    isReadOnly: false,
  },
  purposes: ['purposes'],
  values: {
    stringList: ['stringList'],
  },
};
```

## Properties

- `attributeConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnPredefinedAttribute.AttributeConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnPredefinedAttribute.AttributeConfigurationProperty.html) — Custom metadata that is associated to predefined attributes to control behavior in upstream services, such as controlling how a predefined attribute should be displayed in the Amazon Connect admin website.

- `instanceArn`: string (required) — The Amazon Resource Name (ARN) of the instance.

- `name`: string (required) — The name of the predefined attribute.

- `purposes`: string[] — Values that enable you to categorize your predefined attributes.

  You can use them in custom UI elements across the Amazon Connect admin website.

- `values`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnPredefinedAttribute.ValuesProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnPredefinedAttribute.ValuesProperty.html) — The values of a predefined attribute.
