Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

put_resource_policy

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