S3Control / Client / get_access_point_policy_status
get_access_point_policy_status¶
- S3Control.Client.get_access_point_policy_status(**kwargs)¶
Note
This operation is not supported by directory buckets.
Indicates whether the specified access point currently has a policy that allows public access. For more information about public access through access points, see Managing Data Access with Amazon S3 access points in the Amazon S3 User Guide.
Warning
You must URL encode any signed header values that contain spaces. For example, if your header value is
my file.txt
, containing two spaces aftermy
, you must URL encode this value tomy%20%20file.txt
.See also: AWS API Documentation
Request Syntax
response = client.get_access_point_policy_status( AccountId='string', Name='string' )
- Parameters:
AccountId (string) –
[REQUIRED]
The account ID for the account that owns the specified access point.
Name (string) –
[REQUIRED]
The name of the access point whose policy status you want to retrieve.
- Return type:
dict
- Returns:
Response Syntax
{ 'PolicyStatus': { 'IsPublic': True|False } }
Response Structure
(dict) –
PolicyStatus (dict) –
Indicates the current policy status of the specified access point.
IsPublic (boolean) –