# FieldProperty

Describes a single task template field.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

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

  // the properties below are optional
  description: 'description',
  singleSelectOptions: ['singleSelectOptions'],
};
```

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

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:

```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();
```

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 fieldProperty = new FieldProperty {
    Id = new FieldIdentifierProperty {
        Name = "name"
    },
    Type = "type",

    // the properties below are optional
    Description = "description",
    SingleSelectOptions = new [] { "singleSelectOptions" }
};
```

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"

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

- `description`: string — The description of the field.

- `id`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTaskTemplate.FieldIdentifierProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnTaskTemplate.FieldIdentifierProperty.html) (required) — The unique identifier for the field.

- `singleSelectOptions`: string[] — A list of options for a single select field.

- `type`: 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`
