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
Idawscc.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.

For more information, see AWS::Connect::Prompt.

Methods

NameResourceAccessible byRequired Params
create_resourcepromptsINSERTInstanceArn, Name, region
delete_resourcepromptsDELETEIdentifier, region
update_resourcepromptsUPDATEIdentifier, PatchDocument, region
list_resourcesprompts_list_onlySELECTregion
get_resourcepromptsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual prompt.

SELECT
region,
instance_arn,
name,
description,
s3_uri,
prompt_arn,
tags
FROM awscc.connect.prompts
WHERE
region = 'us-east-1' AND
Identifier = '{{ prompt_arn }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.connect.prompts
SET PatchDocument = string('{{ {
"InstanceArn": instance_arn,
"Name": name,
"Description": description,
"S3Uri": s3_uri,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ prompt_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.connect.prompts
WHERE
Identifier = '{{ prompt_arn }}' AND
region = 'us-east-1';

Permissions

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

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