Skip to main content

access_grants_instance_for_prefixes

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

Overview​

Nameaccess_grants_instance_for_prefixes
TypeResource
Idaws.s3control.access_grants_instance_for_prefixes

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
access_grants_instance_arnstringThe Amazon Resource Name (ARN) of the S3 Access Grants instance.
access_grants_instance_idstringThe ID of the S3 Access Grants instance. The ID is default. You can have one S3 Access Grants instance per Region per account.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_access_grants_instance_for_prefixselectx-amz-account-id, s3prefix, regionRetrieve the S3 Access Grants instance that contains a particular prefix. Permissions You must have the s3:GetAccessGrantsInstanceForPrefix permission for the caller account to use this operation. Additional Permissions The prefix owner account must grant you the following permissions to their S3 Access Grants instance: s3:GetAccessGrantsInstanceForPrefix.

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)
s3prefixstringThe S3 prefix of the access grants that you would like to retrieve.
x-amz-account-idstringThe ID of the Amazon Web Services account that is making this request.

SELECT examples​

Retrieve the S3 Access Grants instance that contains a particular prefix. Permissions You must have the s3:GetAccessGrantsInstanceForPrefix permission for the caller account to use this operation. Additional Permissions The prefix owner account must grant you the following permissions to their S3 Access Grants instance: s3:GetAccessGrantsInstanceForPrefix.

SELECT
access_grants_instance_arn,
access_grants_instance_id
FROM aws.s3control.access_grants_instance_for_prefixes
WHERE `x-amz-account-id` = '{{ x-amz-account-id }}' -- required
AND s3prefix = '{{ s3prefix }}' -- required
AND region = '{{ region }}' -- required
;