Skip to main content

prompts

Creates, updates, deletes or gets a prompt resource or lists prompts in a region

Overview

Nameprompts
TypeResource
DescriptionResource Type definition for AWS::Connect::Prompt
Idaws.connect.prompts

Fields

NameDatatypeDescription
instance_arnstringThe identifier of the Amazon Connect instance.
namestringThe name of the prompt.
descriptionstringThe description of the prompt.
s3_uristringS3 URI of the customer's audio file for creating prompts resource..
prompt_arnstringThe Amazon Resource Name (ARN) for the prompt.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTInstanceArn, Name, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all prompts in a region.

SELECT
region,
instance_arn,
name,
description,
s3_uri,
prompt_arn,
tags
FROM aws.connect.prompts
WHERE region = 'us-east-1';

Gets all properties from an individual prompt.

SELECT
region,
instance_arn,
name,
description,
s3_uri,
prompt_arn,
tags
FROM aws.connect.prompts
WHERE region = 'us-east-1' AND data__Identifier = '<PromptArn>';

INSERT example

Use the following StackQL query and manifest file to create a new prompt resource, using stack-deploy.

/*+ create */
INSERT INTO aws.connect.prompts (
InstanceArn,
Name,
region
)
SELECT
'{{ InstanceArn }}',
'{{ Name }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.connect.prompts
WHERE data__Identifier = '<PromptArn>'
AND region = 'us-east-1';

Permissions

To operate on the prompts resource, the following permissions are required:

Create

connect:CreatePrompt,
connect:TagResource,
s3:GetObject,
kms:Decrypt,
s3:GetObjectAcl

Read

connect:DescribePrompt

Update

connect:UpdatePrompt,
connect:TagResource,
connect:UntagResource

Delete

connect:DeletePrompt

List

connect:ListPrompts