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
Name | multi_region_access_point_policies |
Type | Resource |
Description | The policy to be attached to a Multi Region Access Point |
Id | aws.s3.multi_region_access_point_policies |
Fields
Name | Datatype | Description |
---|---|---|
mrap_name | string | The name of the Multi Region Access Point to apply policy |
policy | object | Policy document to apply to a Multi Region Access Point |
policy_status | object | The Policy Status associated with this Multi Region Access Point |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | Policy, MrapName, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.s3.multi_region_access_point_policies (
MrapName,
Policy,
region
)
SELECT
'{{ MrapName }}',
'{{ Policy }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.s3.multi_region_access_point_policies (
MrapName,
Policy,
region
)
SELECT
'{{ MrapName }}',
'{{ Policy }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: multi_region_access_point_policy
props:
- name: MrapName
value: '{{ MrapName }}'
- name: Policy
value: {}
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