Skip to main content

image_permissions

Creates, updates, deletes, gets or lists an image_permissions resource.

Overview

Nameimage_permissions
TypeResource
Idaws.appstream.image_permissions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the private image. (pattern: <code>^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,100}$</code>)
next_tokenstringThe pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
shared_image_permissions_listarrayThe permissions for a private image that you own.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_image_permissionsselectregionRetrieves a list that describes the permissions for shared AWS account IDs on a private image that you own.
update_image_permissionsupdateregion, SharedAccountId, ImagePermissionsAdds or updates permissions for the specified private image.
delete_image_permissionsdeleteregionDeletes permissions for the specified private image. After you delete permissions for an image, AWS accounts to which you previously granted these permissions can no longer use the image.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves a list that describes the permissions for shared AWS account IDs on a private image that you own.

SELECT
name,
next_token,
shared_image_permissions_list
FROM aws.appstream.image_permissions
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Adds or updates permissions for the specified private image.

UPDATE aws.appstream.image_permissions
SET
Name = '{{ Name }}',
SharedAccountId = '{{ SharedAccountId }}',
ImagePermissions = '{{ ImagePermissions }}'
WHERE
region = '{{ region }}' --required
AND SharedAccountId = '{{ SharedAccountId }}' --required
AND ImagePermissions = '{{ ImagePermissions }}' --required;

DELETE examples

Deletes permissions for the specified private image. After you delete permissions for an image, AWS accounts to which you previously granted these permissions can no longer use the image.

DELETE FROM aws.appstream.image_permissions
WHERE region = '{{ region }}' --required
;