Skip to main content

access_grants_locations

Creates, updates, deletes or gets an access_grants_location resource or lists access_grants_locations in a region

Overview

Nameaccess_grants_locations
TypeResource
DescriptionThe AWS::S3::AccessGrantsLocation resource is an Amazon S3 resource type hosted in an access grants instance which can be the target of S3 access grants.
Idawscc.s3.access_grants_locations

Fields

NameDatatypeDescription
access_grants_location_arnstringThe Amazon Resource Name (ARN) of the specified Access Grants location.
access_grants_location_idstringThe unique identifier for the specified Access Grants location.
iam_role_arnstringThe Amazon Resource Name (ARN) of the access grant location's associated IAM role.
location_scopestringDescriptor for where the location actually points
tagsarray
regionstringAWS region.

For more information, see AWS::S3::AccessGrantsLocation.

Methods

NameResourceAccessible byRequired Params
create_resourceaccess_grants_locationsINSERT, region
delete_resourceaccess_grants_locationsDELETEIdentifier, region
update_resourceaccess_grants_locationsUPDATEIdentifier, PatchDocument, region
list_resourcesaccess_grants_locations_list_onlySELECTregion
get_resourceaccess_grants_locationsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual access_grants_location.

SELECT
region,
access_grants_location_arn,
access_grants_location_id,
iam_role_arn,
location_scope,
tags
FROM awscc.s3.access_grants_locations
WHERE
region = 'us-east-1' AND
Identifier = '{{ access_grants_location_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.s3.access_grants_locations (
,
region
)
SELECT
'{{ }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a access_grants_location resource, using stack-deploy.

/*+ update */
UPDATE awscc.s3.access_grants_locations
SET PatchDocument = string('{{ {
"IamRoleArn": iam_role_arn,
"LocationScope": location_scope
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ access_grants_location_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.s3.access_grants_locations
WHERE
Identifier = '{{ access_grants_location_id }}' AND
region = 'us-east-1';

Permissions

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

s3:CreateAccessGrantsLocation,
iam:PassRole,
s3:TagResource