Skip to main content

security_keys

Creates, updates, deletes or gets a security_key resource or lists security_keys in a region

Overview

Namesecurity_keys
TypeResource
DescriptionResource Type definition for AWS::Connect::SecurityKey
Idaws.connect.security_keys

Fields

NameDatatypeDescription
keystringA valid security key in PEM format.
instance_idstringAmazon Connect instance identifier
association_idstringAn associationID is automatically generated when a storage config is associated with an instance
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTKey, InstanceId, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all security_keys in a region.

SELECT
region,
key,
instance_id,
association_id
FROM aws.connect.security_keys
WHERE region = 'us-east-1';

Gets all properties from an individual security_key.

SELECT
region,
key,
instance_id,
association_id
FROM aws.connect.security_keys
WHERE region = 'us-east-1' AND data__Identifier = '<InstanceId>|<AssociationId>';

INSERT example

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

/*+ create */
INSERT INTO aws.connect.security_keys (
Key,
InstanceId,
region
)
SELECT
'{{ Key }}',
'{{ InstanceId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.connect.security_keys
WHERE data__Identifier = '<InstanceId|AssociationId>'
AND region = 'us-east-1';

Permissions

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

Create

connect:AssociateSecurityKey

Read

connect:ListSecurityKeys

Delete

connect:DisassociateSecurityKey

List

connect:ListSecurityKeys