Skip to main content

prompts

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

Overview

Nameprompts
TypeResource
Idaws.connect.prompts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
descriptionstringThe description of the prompt.
last_modified_regionstringThe Amazon Web Services Region where this resource was last modified. (pattern: <code>[a-z]{2}(-[a-z]+){1,2}(-[0-9])?</code>)
last_modified_timestring (date-time)The timestamp when this resource was last modified.
namestringThe name of the prompt.
prompt_arnstringThe Amazon Resource Name (ARN) of the prompt.
prompt_idstringA unique identifier for the prompt.
tagsobjectThe tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_promptselectinstance_id, prompt_id, regionDescribes the prompt.
list_promptsselectinstance_id, regionnextToken, maxResultsProvides information about the prompts for the specified Connect Customer instance.
search_promptsselectregionSearches prompts in an Connect Customer instance, with optional filtering.
create_promptinsertinstance_id, region, S3UriCreates a prompt. For more information about prompts, such as supported file types and maximum length, see Create prompts in the Connect Customer Administrator Guide.
update_promptupdateinstance_id, prompt_id, regionUpdates a prompt.
delete_promptdeleteinstance_id, prompt_id, regionDeletes a prompt.

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
instance_idstringThe identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
prompt_idstringA unique identifier for the prompt.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return per page. The default MaxResult size is 100.
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.

SELECT examples

Describes the prompt.

SELECT
description,
last_modified_region,
last_modified_time,
name,
prompt_arn,
prompt_id,
tags
FROM aws.connect.prompts
WHERE instance_id = '{{ instance_id }}' -- required
AND prompt_id = '{{ prompt_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a prompt. For more information about prompts, such as supported file types and maximum length, see Create prompts in the Connect Customer Administrator Guide.

INSERT INTO aws.connect.prompts (
Name,
Description,
S3Uri,
Tags,
instance_id,
region
)
SELECT
'{{ Name }}',
'{{ Description }}',
'{{ S3Uri }}' /* required */,
'{{ Tags }}',
'{{ instance_id }}',
'{{ region }}'
RETURNING
prompt_arn,
prompt_id
;

UPDATE examples

Updates a prompt.

UPDATE aws.connect.prompts
SET
Name = '{{ Name }}',
Description = '{{ Description }}',
S3Uri = '{{ S3Uri }}'
WHERE
instance_id = '{{ instance_id }}' --required
AND prompt_id = '{{ prompt_id }}' --required
AND region = '{{ region }}' --required
RETURNING
prompt_arn,
prompt_id;

DELETE examples

Deletes a prompt.

DELETE FROM aws.connect.prompts
WHERE instance_id = '{{ instance_id }}' --required
AND prompt_id = '{{ prompt_id }}' --required
AND region = '{{ region }}' --required
;