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

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

DELETE example

/*+ delete */
DELETE FROM awscc.memorydb.acls
WHERE
Identifier = '{{ acl_name }}' 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 acls resource, the following permissions are required:

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