Skip to main content

access_points_for_directory_buckets

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

Overview

Nameaccess_points_for_directory_buckets
TypeResource
Idaws.s3control.access_points_for_directory_buckets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
access_point_arnstringThe ARN for the access point.
aliasstringThe name or alias of the access point.
bucketstringThe name of the bucket associated with this access point.
bucket_account_idstringThe Amazon Web Services account ID associated with the S3 bucket associated with this access point.
data_source_idstringA unique identifier for the data source of the access point.
data_source_typestringThe type of the data source that the access point is attached to.
namestringThe name of this access point.
network_originstringIndicates whether this access point allows access from the public internet. If VpcConfiguration is specified for this access point, then NetworkOrigin is VPC, and the access point doesn't allow access from the public internet. Otherwise, NetworkOrigin is Internet, and the access point allows access from the public internet, subject to the access point and bucket access policies.
vpc_configurationstringThe virtual private cloud (VPC) configuration for this access point, if one exists. This element is empty if this access point is an Amazon S3 on Outposts access point that is used by other Amazon Web Services services.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_access_points_for_directory_bucketsselectx-amz-account-id, regiondirectoryBucket, nextToken, maxResultsReturns a list of the access points that are owned by the Amazon Web Services account and that are associated with the specified directory bucket. To list access points for general purpose buckets, see ListAccesspoints. To use this operation, you must have the permission to perform the s3express:ListAccessPointsForDirectoryBuckets action. For information about REST API errors, see REST error responses.

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
regionstringAWS region (default: us-east-1)
x-amz-account-idstringThe Amazon Web Services account ID that owns the access points.
directoryBucketstringThe name of the directory bucket associated with the access points you want to list.
maxResultsintegerThe maximum number of access points that you would like returned in the ListAccessPointsForDirectoryBuckets response. If the directory bucket is associated with more than this number of access points, the results include the pagination token NextToken. Make another call using the NextToken to retrieve more results.
nextTokenstringIf NextToken is returned, there are more access points available than requested in the maxResults value. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours.

SELECT examples

Returns a list of the access points that are owned by the Amazon Web Services account and that are associated with the specified directory bucket. To list access points for general purpose buckets, see ListAccesspoints. To use this operation, you must have the permission to perform the s3express:ListAccessPointsForDirectoryBuckets action. For information about REST API errors, see REST error responses.

SELECT
access_point_arn,
alias,
bucket,
bucket_account_id,
data_source_id,
data_source_type,
name,
network_origin,
vpc_configuration
FROM aws.s3control.access_points_for_directory_buckets
WHERE `x-amz-account-id` = '{{ x-amz-account-id }}' -- required
AND region = '{{ region }}' -- required
AND directoryBucket = '{{ directoryBucket }}'
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;