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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.connect.prompts
WHERE
Identifier = '{{ prompt_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

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