Skip to main content

predefined_attributes

Creates, updates, deletes or gets a predefined_attribute resource or lists predefined_attributes in a region

Overview

Namepredefined_attributes
TypeResource
DescriptionResource Type definition for AWS::Connect::PredefinedAttribute
Idaws.connect.predefined_attributes

Fields

NameDatatypeDescription
instance_arnstringThe identifier of the Amazon Connect instance.
namestringThe name of the predefined attribute.
valuesobjectThe values of a predefined attribute.
last_modified_regionstringLast modified region.
last_modified_timenumberLast modified time.
regionstringAWS region.

Methods

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

SELECT examples

Gets all predefined_attributes in a region.

SELECT
region,
instance_arn,
name,
values,
last_modified_region,
last_modified_time
FROM aws.connect.predefined_attributes
WHERE region = 'us-east-1';

Gets all properties from an individual predefined_attribute.

SELECT
region,
instance_arn,
name,
values,
last_modified_region,
last_modified_time
FROM aws.connect.predefined_attributes
WHERE region = 'us-east-1' AND data__Identifier = '<InstanceArn>|<Name>';

INSERT example

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

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

DELETE example

/*+ delete */
DELETE FROM aws.connect.predefined_attributes
WHERE data__Identifier = '<InstanceArn|Name>'
AND region = 'us-east-1';

Permissions

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

Create

connect:CreatePredefinedAttribute

Read

connect:DescribePredefinedAttribute

Delete

connect:DeletePredefinedAttribute

Update

connect:UpdatePredefinedAttribute

List

connect:ListPredefinedAttributes