Skip to content
v2.278.0

FieldProperty Struct ​

Describes a single task template field.

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 fieldProperty: connect.CfnTaskTemplate.FieldProperty = {
  id: {
    name: 'name',
  },
  type: 'type',

  // the properties below are optional
  description: 'description',
  singleSelectOptions: ['singleSelectOptions'],
};
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

field_property = connect.CfnTaskTemplate.FieldProperty(
    id=connect.CfnTaskTemplate.FieldIdentifierProperty(
        name="name"
    ),
    type="type",

    # the properties below are optional
    description="description",
    single_select_options=["singleSelectOptions"]
)
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.*;

FieldProperty fieldProperty = FieldProperty.builder()
        .id(FieldIdentifierProperty.builder()
                .name("name")
                .build())
        .type("type")

        // the properties below are optional
        .description("description")
        .singleSelectOptions(List.of("singleSelectOptions"))
        .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 fieldProperty = new FieldProperty {
    Id = new FieldIdentifierProperty {
        Name = "name"
    },
    Type = "type",

    // the properties below are optional
    Description = "description",
    SingleSelectOptions = new [] { "singleSelectOptions" }
};
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"

fieldProperty := &FieldProperty{
	Id: &FieldIdentifierProperty{
		Name: jsii.String("name"),
	},
	Type: jsii.String("type"),

	// the properties below are optional
	Description: jsii.String("description"),
	SingleSelectOptions: []*string{
		jsii.String("singleSelectOptions"),
	},
}

Properties ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
The description of the field.
The unique identifier for the field.
singleSelectOptionsoptionalstring[]single_select_optionsoptionaltyping.List[str]singleSelectOptionsoptionalList<String>SingleSelectOptionsoptionalstring[]SingleSelectOptionsoptional*[]*string #
A list of options for a single select field.
typestringtypestrtypeStringTypestringType*string required #
Indicates the type of field.

Following are the valid field types: NAME DESCRIPTION | SCHEDULED_TIME | QUICK_CONNECT | URL | NUMBER | TEXT | TEXT_AREA | DATE_TIME | BOOLEAN | SINGLE_SELECT | EMAIL