S3Control / Client / put_access_grants_instance_resource_policy
put_access_grants_instance_resource_policy#
- S3Control.Client.put_access_grants_instance_resource_policy(**kwargs)#
Updates the resource policy of the S3 Access Grants instance.
Permissions
You must have the
s3:PutAccessGrantsInstanceResourcePolicy
permission to use this operation.See also: AWS API Documentation
Request Syntax
response = client.put_access_grants_instance_resource_policy( AccountId='string', Policy='string', Organization='string' )
- Parameters:
AccountId (string) –
[REQUIRED]
The Amazon Web Services account ID of the S3 Access Grants instance.
Policy (string) –
[REQUIRED]
The resource policy of the S3 Access Grants instance that you are updating.
Organization (string) – The Organization of the resource policy 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 updated 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.