Skip to main content

acls

Creates, updates, deletes or gets an acl resource or lists acls in a region

Overview

Nameacls
TypeResource
DescriptionResource Type definition for AWS::MemoryDB::ACL
Idawscc.memorydb.acls

Fields

NameDatatypeDescription
statusstringIndicates acl status. Can be "creating", "active", "modifying", "deleting".
acl_namestringThe name of the acl.
user_namesarrayList of users associated to this acl.
arnstringThe Amazon Resource Name (ARN) of the acl.
tagsarrayAn array of key-value pairs to apply to this cluster.
regionstringAWS region.

For more information, see AWS::MemoryDB::ACL.

Methods

NameResourceAccessible byRequired Params
create_resourceaclsINSERTACLName, region
delete_resourceaclsDELETEIdentifier, region
update_resourceaclsUPDATEIdentifier, PatchDocument, region
list_resourcesacls_list_onlySELECTregion
get_resourceaclsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual acl.

SELECT
region,
status,
acl_name,
user_names,
arn,
tags
FROM awscc.memorydb.acls
WHERE
region = 'us-east-1' AND
Identifier = '{{ acl_name }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.memorydb.acls (
ACLName,
region
)
SELECT
'{{ acl_name }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.memorydb.acls
SET PatchDocument = string('{{ {
"UserNames": user_names,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ acl_name }}';

DELETE example

/*+ delete */
DELETE FROM awscc.memorydb.acls
WHERE
Identifier = '{{ acl_name }}' AND
region = 'us-east-1';

Permissions

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

memorydb:CreateACL,
memorydb:DescribeACLs,
memorydb:TagResource,
memorydb:ListTags,
iam:CreateServiceLinkedRole