update_image_permissions

update_image_permissions(**kwargs)

Adds or updates permissions for the specified private image.

See also: AWS API Documentation

Request Syntax

response = client.update_image_permissions(
    Name='string',
    SharedAccountId='string',
    ImagePermissions={
        'allowFleet': True|False,
        'allowImageBuilder': True|False
    }
)
Parameters
  • Name (string) --

    [REQUIRED]

    The name of the private image.

  • SharedAccountId (string) --

    [REQUIRED]

    The 12-digit identifier of the AWS account for which you want add or update image permissions.

  • ImagePermissions (dict) --

    [REQUIRED]

    The permissions for the image.

    • allowFleet (boolean) --

      Indicates whether the image can be used for a fleet.

    • allowImageBuilder (boolean) --

      Indicates whether the image can be used for an image builder.

Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

  • AppStream.Client.exceptions.ResourceNotFoundException
  • AppStream.Client.exceptions.ResourceNotAvailableException
  • AppStream.Client.exceptions.LimitExceededException