# CfnPredefinedAttributeProps

Properties for defining a `CfnPredefinedAttribute`.

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

- 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_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'],
  },
};
```

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_connect as connect

cfn_predefined_attribute_props = connect.CfnPredefinedAttributeProps(
    instance_arn="instanceArn",
    name="name",

    # the properties below are optional
    attribute_configuration=connect.CfnPredefinedAttribute.AttributeConfigurationProperty(
        enable_value_validation_on_association=False,
        is_read_only=False
    ),
    purposes=["purposes"],
    values=connect.CfnPredefinedAttribute.ValuesProperty(
        string_list=["stringList"]
    )
)
```

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

CfnPredefinedAttributeProps cfnPredefinedAttributeProps = CfnPredefinedAttributeProps.builder()
        .instanceArn("instanceArn")
        .name("name")

        // the properties below are optional
        .attributeConfiguration(AttributeConfigurationProperty.builder()
                .enableValueValidationOnAssociation(false)
                .isReadOnly(false)
                .build())
        .purposes(List.of("purposes"))
        .values(ValuesProperty.builder()
                .stringList(List.of("stringList"))
                .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.Connect;

var cfnPredefinedAttributeProps = new CfnPredefinedAttributeProps {
    InstanceArn = "instanceArn",
    Name = "name",

    // the properties below are optional
    AttributeConfiguration = new AttributeConfigurationProperty {
        EnableValueValidationOnAssociation = false,
        IsReadOnly = false
    },
    Purposes = new [] { "purposes" },
    Values = new ValuesProperty {
        StringList = new [] { "stringList" }
    }
};
```

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"

cfnPredefinedAttributeProps := &CfnPredefinedAttributeProps{
	InstanceArn: jsii.String("instanceArn"),
	Name: jsii.String("name"),

	// the properties below are optional
	AttributeConfiguration: &AttributeConfigurationProperty{
		EnableValueValidationOnAssociation: jsii.Boolean(false),
		IsReadOnly: jsii.Boolean(false),
	},
	Purposes: []*string{
		jsii.String("purposes"),
	},
	Values: &ValuesProperty{
		StringList: []*string{
			jsii.String("stringList"),
		},
	},
}
```

## Properties

- `attributeConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnPredefinedAttribute.AttributeConfigurationProperty](https://docs.aws.amazon.com/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](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnPredefinedAttribute.ValuesProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnPredefinedAttribute.ValuesProperty.html) — The values of a predefined attribute.
