Skip to content
v2.278.0

ConstraintsProperty Struct ​

Describes constraints that apply to the template fields.

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 constraintsProperty: connect.CfnTaskTemplate.ConstraintsProperty = {
  invisibleFields: [{
    id: {
      name: 'name',
    },
  }],
  readOnlyFields: [{
    id: {
      name: 'name',
    },
  }],
  requiredFields: [{
    id: {
      name: 'name',
    },
  }],
};
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

constraints_property = connect.CfnTaskTemplate.ConstraintsProperty(
    invisible_fields=[connect.CfnTaskTemplate.InvisibleFieldInfoProperty(
        id=connect.CfnTaskTemplate.FieldIdentifierProperty(
            name="name"
        )
    )],
    read_only_fields=[connect.CfnTaskTemplate.ReadOnlyFieldInfoProperty(
        id=connect.CfnTaskTemplate.FieldIdentifierProperty(
            name="name"
        )
    )],
    required_fields=[connect.CfnTaskTemplate.RequiredFieldInfoProperty(
        id=connect.CfnTaskTemplate.FieldIdentifierProperty(
            name="name"
        )
    )]
)
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.*;

ConstraintsProperty constraintsProperty = ConstraintsProperty.builder()
        .invisibleFields(List.of(InvisibleFieldInfoProperty.builder()
                .id(FieldIdentifierProperty.builder()
                        .name("name")
                        .build())
                .build()))
        .readOnlyFields(List.of(ReadOnlyFieldInfoProperty.builder()
                .id(FieldIdentifierProperty.builder()
                        .name("name")
                        .build())
                .build()))
        .requiredFields(List.of(RequiredFieldInfoProperty.builder()
                .id(FieldIdentifierProperty.builder()
                        .name("name")
                        .build())
                .build()))
        .build();
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 constraintsProperty = new ConstraintsProperty {
    InvisibleFields = new [] { new InvisibleFieldInfoProperty {
        Id = new FieldIdentifierProperty {
            Name = "name"
        }
    } },
    ReadOnlyFields = new [] { new ReadOnlyFieldInfoProperty {
        Id = new FieldIdentifierProperty {
            Name = "name"
        }
    } },
    RequiredFields = new [] { new RequiredFieldInfoProperty {
        Id = new FieldIdentifierProperty {
            Name = "name"
        }
    } }
};
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"

constraintsProperty := &ConstraintsProperty{
	InvisibleFields: []interface{}{
		&InvisibleFieldInfoProperty{
			Id: &FieldIdentifierProperty{
				Name: jsii.String("name"),
			},
		},
	},
	ReadOnlyFields: []interface{}{
		&ReadOnlyFieldInfoProperty{
			Id: &FieldIdentifierProperty{
				Name: jsii.String("name"),
			},
		},
	},
	RequiredFields: []interface{}{
		&RequiredFieldInfoProperty{
			Id: &FieldIdentifierProperty{
				Name: jsii.String("name"),
			},
		},
	},
}

Properties ​

invisibleFieldsoptionalIResolvable | IResolvable | CfnTaskTemplate.InvisibleFieldInfoProperty[]invisible_fieldsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, InvisibleFieldInfoProperty]]]invisibleFieldsoptionalIResolvableInvisibleFieldsoptionalIResolvableInvisibleFieldsoptionalinterface{} #
Lists the fields that are invisible to agents.
readOnlyFieldsoptionalIResolvable | IResolvable | CfnTaskTemplate.ReadOnlyFieldInfoProperty[]read_only_fieldsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ReadOnlyFieldInfoProperty]]]readOnlyFieldsoptionalIResolvableReadOnlyFieldsoptionalIResolvableReadOnlyFieldsoptionalinterface{} #
Lists the fields that are read-only to agents, and cannot be edited.
requiredFieldsoptionalIResolvable | IResolvable | CfnTaskTemplate.RequiredFieldInfoProperty[]required_fieldsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, RequiredFieldInfoProperty]]]requiredFieldsoptionalIResolvableRequiredFieldsoptionalIResolvableRequiredFieldsoptionalinterface{} #
Lists the fields that are required to be filled by agents.