Skip to main content

acls

Creates, updates, deletes, gets or lists an acls resource.

Overview

Nameacls
TypeResource
Idaws.memorydb.acls

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
create_aclinsertregion, ACLNameCreates an Access Control List. For more information, see Authenticating users with Access Contol Lists (ACLs).
update_aclupdateregion, ACLNameChanges the list of users that belong to the Access Control List.
delete_acldeleteregionDeletes an Access Control List. The ACL must first be disassociated from the cluster before it can be deleted. For more information, see Authenticating users with Access Contol Lists (ACLs).

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

INSERT examples

Creates an Access Control List. For more information, see Authenticating users with Access Contol Lists (ACLs).

INSERT INTO aws.memorydb.acls (
ACLName,
UserNames,
Tags,
region
)
SELECT
'{{ ACLName }}' /* required */,
'{{ UserNames }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
acl
;

UPDATE examples

Changes the list of users that belong to the Access Control List.

UPDATE aws.memorydb.acls
SET
ACLName = '{{ ACLName }}',
UserNamesToAdd = '{{ UserNamesToAdd }}',
UserNamesToRemove = '{{ UserNamesToRemove }}'
WHERE
region = '{{ region }}' --required
AND ACLName = '{{ ACLName }}' --required
RETURNING
acl;

DELETE examples

Deletes an Access Control List. The ACL must first be disassociated from the cluster before it can be deleted. For more information, see Authenticating users with Access Contol Lists (ACLs).

DELETE FROM aws.memorydb.acls
WHERE region = '{{ region }}' --required
;