Skip to main content

multi_region_access_point_policies

Creates, updates, deletes or gets a multi_region_access_point_policy resource or lists multi_region_access_point_policies in a region

Overview

Namemulti_region_access_point_policies
TypeResource
DescriptionThe policy to be attached to a Multi Region Access Point
Idaws.s3.multi_region_access_point_policies

Fields

NameDatatypeDescription
mrap_namestringThe name of the Multi Region Access Point to apply policy
policyobjectPolicy document to apply to a Multi Region Access Point
policy_statusobjectThe Policy Status associated with this Multi Region Access Point
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTPolicy, MrapName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all multi_region_access_point_policies in a region.

SELECT
region,
mrap_name,
policy,
policy_status
FROM aws.s3.multi_region_access_point_policies
WHERE region = 'us-east-1';

Gets all properties from an individual multi_region_access_point_policy.

SELECT
region,
mrap_name,
policy,
policy_status
FROM aws.s3.multi_region_access_point_policies
WHERE region = 'us-east-1' AND data__Identifier = '<MrapName>';

INSERT example

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

/*+ create */
INSERT INTO aws.s3.multi_region_access_point_policies (
MrapName,
Policy,
region
)
SELECT
'{{ MrapName }}',
'{{ Policy }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.s3.multi_region_access_point_policies
WHERE data__Identifier = '<MrapName>'
AND region = 'us-east-1';

Permissions

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

Update

s3:PutMultiRegionAccessPointPolicy,
s3:DescribeMultiRegionAccessPointOperation

Read

s3:GetMultiRegionAccessPointPolicy,
s3:GetMultiRegionAccessPointPolicyStatus

Delete

s3:GetMultiRegionAccessPointPolicy,
s3:GetMultiRegionAccessPoint

Create

s3:PutMultiRegionAccessPointPolicy,
s3:DescribeMultiRegionAccessPointOperation