Skip to main content

field_options

Creates, updates, deletes, gets or lists a field_options resource.

Overview

Namefield_options
TypeResource
Idaws.connectcases.field_options

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
next_tokenstringThe token for the next set of results. This is null if there are no more results to return.
optionsarrayA list of FieldOption objects.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_field_optionsselectdomain_id, field_id, regionmaxResults, nextToken, valuesLists all of the field options for a field identifier in the domain.
batch_put_field_optionsexecdomain_id, field_id, region, optionsCreates and updates a set of field options for a single select field in a Cases domain.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
domain_idstringThe unique identifier of the Cases domain.
field_idstringThe unique identifier of a field.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return per page.
nextTokenstringThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
valuesarrayA list of FieldOption values to filter on for ListFieldOptions.

SELECT examples

Lists all of the field options for a field identifier in the domain.

SELECT
next_token,
options
FROM aws.connectcases.field_options
WHERE domain_id = '{{ domain_id }}' -- required
AND field_id = '{{ field_id }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
AND values = '{{ values }}'
;

Lifecycle Methods

Creates and updates a set of field options for a single select field in a Cases domain.

EXEC aws.connectcases.field_options.batch_put_field_options
@domain_id='{{ domain_id }}' --required,
@field_id='{{ field_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"options": "{{ options }}"
}'
;