Skip to main content

access_points

Creates, updates, deletes, gets or lists an access_points resource.

Overview

Nameaccess_points
TypeResource
Idaws.s3files.access_points

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the access point. (pattern: <code>([\p{L}\p{Z}\p{N}_.:/=+-@]*)</code>)
access_point_arnstringThe Amazon Resource Name (ARN) of the access point. (pattern: <code>arn:aws[-a-z]*:s3files:[0-9a-z-:]+:file-system/fs-[0-9a-f]{17,40}/access-point/fsap-[0-9a-f]{17,40}</code>)
access_point_idstringThe ID of the access point. (pattern: <code>(arn:aws[-a-z]*:s3files:[0-9a-z-:]+:file-system/fs-[0-9a-f]{17,40}/access-point/fsap-[0-9a-f]{17,40}|fsap-[0-9a-f]{17,40})</code>)
file_system_idstringThe ID of the S3 File System. (pattern: <code>(arn:aws[-a-z]*:s3files:[0-9a-z-:]+:file-system/fs-[0-9a-f]{17,40}|fs-[0-9a-f]{17,40})</code>)
owner_idstringThe Amazon Web Services account ID of the access point owner. (pattern: <code>(\d{12})|(\d{4}-{4}-\d{4})</code>)
posix_userobjectSpecifies the POSIX identity with uid, gid, and secondary group IDs for user enforcement.
root_directoryobjectSpecifies the root directory path and optional creation permissions for newly created directories.
statusstringThe current status of the access point. (available, creating, deleting, deleted, error, updating)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_access_pointsselectfileSystemId, regionmaxResults, nextTokenReturns resource information for all S3 File System Access Points associated with the specified S3 File System.
get_access_pointselectaccess_point_id, regionReturns resource information for an S3 File System Access Point.
create_access_pointinsertregion, fileSystemIdCreates an S3 File System Access Point for application-specific access with POSIX user identity and root directory enforcement. Access points provide a way to manage access to shared datasets in multi-tenant scenarios.
delete_access_pointdeleteaccess_point_id, regionDeletes an S3 File System Access Point. This operation is irreversible.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
access_point_idstringThe ID or Amazon Resource Name (ARN) of the access point to delete.
fileSystemIdstringThe ID or Amazon Resource Name (ARN) of the S3 File System to list access points for.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of access points to return in a single response.
nextTokenstringA pagination token returned from a previous call to continue listing access points.

SELECT examples

Returns resource information for all S3 File System Access Points associated with the specified S3 File System.

SELECT
name,
access_point_arn,
access_point_id,
file_system_id,
owner_id,
posix_user,
root_directory,
status
FROM aws.s3files.access_points
WHERE fileSystemId = '{{ fileSystemId }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;

INSERT examples

Creates an S3 File System Access Point for application-specific access with POSIX user identity and root directory enforcement. Access points provide a way to manage access to shared datasets in multi-tenant scenarios.

INSERT INTO aws.s3files.access_points (
clientToken,
tags,
fileSystemId,
posixUser,
rootDirectory,
region
)
SELECT
'{{ clientToken }}',
'{{ tags }}',
'{{ fileSystemId }}' /* required */,
'{{ posixUser }}',
'{{ rootDirectory }}',
'{{ region }}'
RETURNING
name,
access_point_arn,
access_point_id,
client_token,
file_system_id,
owner_id,
posix_user,
root_directory,
status,
tags
;

DELETE examples

Deletes an S3 File System Access Point. This operation is irreversible.

DELETE FROM aws.s3files.access_points
WHERE access_point_id = '{{ access_point_id }}' --required
AND region = '{{ region }}' --required
;