Put Access Point Scope
s3control_put_access_point_scope | R Documentation |
Creates or replaces the access point scope for a directory bucket¶
Description¶
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.
Usage¶
s3control_put_access_point_scope(AccountId, Name, Scope)
Arguments¶
AccountId |
[required] The Amazon Web Services account ID that owns the access point with scope that you want to create or replace. |
Name |
[required] The name of the access point with the scope that you want to create or replace. |
Scope |
[required] Object prefixes, API operations, or a combination of both. |
Value¶
An empty list.
Request syntax¶
svc$put_access_point_scope(
AccountId = "string",
Name = "string",
Scope = list(
Prefixes = list(
"string"
),
Permissions = list(
"GetObject"|"GetObjectAttributes"|"ListMultipartUploadParts"|"ListBucket"|"ListBucketMultipartUploads"|"PutObject"|"DeleteObject"|"AbortMultipartUpload"
)
)
)