S3Control / Client / get_access_grants_instance_resource_policy
get_access_grants_instance_resource_policy#
- S3Control.Client.get_access_grants_instance_resource_policy(**kwargs)#
Returns the resource policy of the S3 Access Grants instance.
Permissions
You must have the
s3:GetAccessGrantsInstanceResourcePolicy
permission to use this operation.See also: AWS API Documentation
Request Syntax
response = client.get_access_grants_instance_resource_policy( AccountId='string' )
- Parameters:
AccountId (string) –
[REQUIRED]
The Amazon Web Services account ID of the S3 Access Grants instance.
- Return type:
dict
- Returns:
Response Syntax
{ 'Policy': 'string', 'Organization': 'string', 'CreatedAt': datetime(2015, 1, 1) }
Response Structure
(dict) –
Policy (string) –
The resource policy of the S3 Access Grants instance.
Organization (string) –
The Organization of the resource policy of the S3 Access Grants instance.
CreatedAt (datetime) –
The date and time when you created the S3 Access Grants instance resource policy.