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.

get_image_policy

get_image_policy(**kwargs)

Gets an image policy.

See also: AWS API Documentation

Request Syntax

response = client.get_image_policy(
    imageArn='string'
)
Parameters
imageArn (string) --

[REQUIRED]

The Amazon Resource Name (ARN) of the image whose policy you want to retrieve.

Return type
dict
Returns
Response Syntax
{
    'requestId': 'string',
    'policy': 'string'
}

Response Structure

  • (dict) --
    • requestId (string) --

      The request ID that uniquely identifies this request.

    • policy (string) --

      The image policy object.

Exceptions

  • imagebuilder.Client.exceptions.ServiceException
  • imagebuilder.Client.exceptions.ServiceUnavailableException
  • imagebuilder.Client.exceptions.ResourceNotFoundException
  • imagebuilder.Client.exceptions.InvalidRequestException
  • imagebuilder.Client.exceptions.ForbiddenException
  • imagebuilder.Client.exceptions.CallRateLimitExceededException