Schemas / Client / put_resource_policy

put_resource_policy#

Schemas.Client.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'
)
Parameters:
  • Policy (string) –

    [REQUIRED]

    The resource-based policy.

  • RegistryName (string) – The name of the registry.

  • RevisionId (string) – The revision ID of the policy.

Return type:

dict

Returns:

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