put_resource_policy
(**kwargs)¶The name of the policy.
See also: AWS API Documentation
Request Syntax
response = client.put_resource_policy(
Policy='string',
RegistryName='string',
RevisionId='string'
)
[REQUIRED]
The resource-based policy.
dict
Response Syntax
{
'Policy': 'string',
'RevisionId': 'string'
}
Response Structure
(dict) --
200 response
Policy (string) --
The resource-based policy.
RevisionId (string) --
The revision ID of the policy.
Exceptions
Schemas.Client.exceptions.BadRequestException
Schemas.Client.exceptions.UnauthorizedException
Schemas.Client.exceptions.PreconditionFailedException
Schemas.Client.exceptions.InternalServerErrorException
Schemas.Client.exceptions.ForbiddenException
Schemas.Client.exceptions.NotFoundException
Schemas.Client.exceptions.ServiceUnavailableException