Skip to main content

access_point_scopes

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

Overview

Nameaccess_point_scopes
TypeResource
Idaws.s3control.access_point_scopes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
permissionsstringYou can include one or more API operations as permissions.
prefixesstringYou can specify any amount of prefixes, but the total length of characters of all prefixes must be less than 256 bytes in size.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_access_point_scopeselectx-amz-account-id, name, regionReturns the access point scope for a directory bucket. To use this operation, you must have the permission to perform the s3express:GetAccessPointScope action. For information about REST API errors, see REST error responses.
put_access_point_scopereplacex-amz-account-id, name, region, ScopeCreates or replaces the access point scope for a directory bucket. You can use the access point scope to restrict access to specific prefixes, API operations, or a combination of both. You can specify any amount of prefixes, but the total length of characters of all prefixes must be less than 256 bytes in size. To use this operation, you must have the permission to perform the s3express:PutAccessPointScope action. For information about REST API errors, see REST error responses.
delete_access_point_scopedeletex-amz-account-id, name, regionDeletes an existing access point scope for a directory bucket. When you delete the scope of an access point, all prefixes and permissions are deleted. To use this operation, you must have the permission to perform the s3express:DeleteAccessPointScope 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
namestringThe name of the access point with the scope that you want to delete.
regionstringAWS region (default: us-east-1)
x-amz-account-idstringThe Amazon Web Services account ID that owns the access point with the scope that you want to delete.

SELECT examples

Returns the access point scope for a directory bucket. To use this operation, you must have the permission to perform the s3express:GetAccessPointScope action. For information about REST API errors, see REST error responses.

SELECT
permissions,
prefixes
FROM aws.s3control.access_point_scopes
WHERE `x-amz-account-id` = '{{ x-amz-account-id }}' -- required
AND name = '{{ name }}' -- required
AND region = '{{ region }}' -- required
;

REPLACE examples

Creates or replaces the access point scope for a directory bucket. You can use the access point scope to restrict access to specific prefixes, API operations, or a combination of both. You can specify any amount of prefixes, but the total length of characters of all prefixes must be less than 256 bytes in size. To use this operation, you must have the permission to perform the s3express:PutAccessPointScope action. For information about REST API errors, see REST error responses.

REPLACE aws.s3control.access_point_scopes
SET
Scope = '{{ Scope }}'
WHERE
`x-amz-account-id` = '{{ x-amz-account-id }}' --required
AND name = '{{ name }}' --required
AND region = '{{ region }}' --required
AND Scope = '{{ Scope }}' --required;

DELETE examples

Deletes an existing access point scope for a directory bucket. When you delete the scope of an access point, all prefixes and permissions are deleted. To use this operation, you must have the permission to perform the s3express:DeleteAccessPointScope action. For information about REST API errors, see REST error responses.

DELETE FROM aws.s3control.access_point_scopes
WHERE `x-amz-account-id` = '{{ x-amz-account-id }}' --required
AND name = '{{ name }}' --required
AND region = '{{ region }}' --required
;