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

Methods

NameAccessible byRequired Params
create_resourceINSERTACLName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all acls in a region.

SELECT
region,
status,
acl_name,
user_names,
arn,
tags
FROM aws.memorydb.acls
WHERE region = 'us-east-1';

Gets all properties from an individual acl.

SELECT
region,
status,
acl_name,
user_names,
arn,
tags
FROM aws.memorydb.acls
WHERE region = 'us-east-1' AND data__Identifier = '<ACLName>';

INSERT example

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

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

DELETE example

/*+ delete */
DELETE FROM aws.memorydb.acls
WHERE data__Identifier = '<ACLName>'
AND region = 'us-east-1';

Permissions

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

Create

memorydb:CreateACL,
memorydb:DescribeACLs,
memorydb:TagResource,
memorydb:ListTags

Read

memorydb:DescribeACLs,
memorydb:ListTags

Update

memorydb:UpdateACL,
memorydb:DescribeACLs,
memorydb:ListTags,
memorydb:TagResource,
memorydb:UntagResource

Delete

memorydb:ModifyReplicationGroup,
memorydb:DeleteACL,
memorydb:DescribeACLs

List

memorydb:DescribeACLs,
memorydb:ListTags