Skip to main content

policy_attachments

Creates, updates, deletes, gets or lists a policy_attachments resource.

Overview

Namepolicy_attachments
TypeResource
Idaws.clouddirectory.policy_attachments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
object_identifierstringA list of ObjectIdentifiers to which the policy is attached.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_policy_attachmentsselectx-amz-data-partition, regionx-amz-consistency-levelReturns all of the ObjectIdentifiers to which a given policy is attached.

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)
x-amz-data-partitionstringThe Amazon Resource Name (ARN) that is associated with the Directory where objects reside. For more information, see arns.
x-amz-consistency-levelstringRepresents the manner and timing in which the successful write or update of an object is reflected in a subsequent read operation of that same object.

SELECT examples

Returns all of the ObjectIdentifiers to which a given policy is attached.

SELECT
object_identifier
FROM aws.clouddirectory.policy_attachments
WHERE `x-amz-data-partition` = '{{ x-amz-data-partition }}' -- required
AND region = '{{ region }}' -- required
AND `x-amz-consistency-level` = '{{ x-amz-consistency-level }}'
;