Skip to main content

access_points

Creates, updates, deletes or gets an access_point resource or lists access_points in a region

Overview

Nameaccess_points
TypeResource
DescriptionResource Type Definition for AWS::S3Outposts::AccessPoint
Idawscc.s3outposts.access_points

Fields

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the specified AccessPoint.
bucketstringThe Amazon Resource Name (ARN) of the bucket you want to associate this AccessPoint with.
namestringA name for the AccessPoint.
vpc_configurationobjectVirtual Private Cloud (VPC) from which requests can be made to the AccessPoint.
policyobjectThe access point policy associated with this access point.
regionstringAWS region.

For more information, see AWS::S3Outposts::AccessPoint.

Methods

NameResourceAccessible byRequired Params
create_resourceaccess_pointsINSERTBucket, Name, VpcConfiguration, region
delete_resourceaccess_pointsDELETEIdentifier, region
update_resourceaccess_pointsUPDATEIdentifier, PatchDocument, region
list_resourcesaccess_points_list_onlySELECTregion
get_resourceaccess_pointsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual access_point.

SELECT
region,
arn,
bucket,
name,
vpc_configuration,
policy
FROM awscc.s3outposts.access_points
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.s3outposts.access_points (
Bucket,
Name,
VpcConfiguration,
region
)
SELECT
'{{ bucket }}',
'{{ name }}',
'{{ vpc_configuration }}',
'{{ 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 access_point resource, using stack-deploy.

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

DELETE example

/*+ delete */
DELETE FROM awscc.s3outposts.access_points
WHERE
Identifier = '{{ arn }}' 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 access_points resource, the following permissions are required:

s3-outposts:CreateAccessPoint,
s3-outposts:GetAccessPoint,
s3-outposts:PutAccessPointPolicy,
s3-outposts:GetAccessPointPolicy