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
Idawscc.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.

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

Methods

NameAccessible byRequired Params
create_resourceINSERTPolicy, MrapName, region
delete_resourceDELETEIdentifier, region
update_resourceUPDATEIdentifier, PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTIdentifier, region

SELECT examples

Gets all properties from an individual multi_region_access_point_policy.

SELECT
region,
mrap_name,
policy,
policy_status
FROM awscc.s3.multi_region_access_point_policies
WHERE
region = '{{ region }}' AND
Identifier = '{{ mrap_name }}';

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 awscc.s3.multi_region_access_point_policies (
MrapName,
Policy,
region
)
SELECT
'{{ mrap_name }}',
'{{ policy }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.s3.multi_region_access_point_policies
SET PatchDocument = string('{{ {
"Policy": policy
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ mrap_name }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.s3.multi_region_access_point_policies
WHERE
Identifier = '{{ mrap_name }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

s3:PutMultiRegionAccessPointPolicy,
s3:DescribeMultiRegionAccessPointOperation