Skip to main content

images

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

Overview

Nameimages
TypeResource
Idaws.appstream.images

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
applicationsarrayThe applications associated with the image.
appstream_agent_versionstringThe version of the WorkSpaces Applications agent to use for instances that are launched from this image.
arnstringThe ARN of the image. (pattern: <code>^arn:aws(?:-cn|-iso-b|-iso|-us-gov)?:[A-Za-z0-9][A-Za-z0-9_/.-]{0,62}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9][A-Za-z0-9:_/+=,@.\-]{0,1023}$</code>)
base_image_arnstringThe ARN of the image from which this image was created. (pattern: <code>^arn:aws(?:-cn|-iso-b|-iso|-us-gov)?:[A-Za-z0-9][A-Za-z0-9_/.-]{0,62}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9][A-Za-z0-9:_/+=,@.\-]{0,1023}$</code>)
created_timestring (date-time)The time the image was created.
descriptionstringThe description to display.
display_namestringThe image name to display.
dynamic_app_providers_enabledstringIndicates whether dynamic app providers are enabled within an WorkSpaces Applications image or not. (ENABLED, DISABLED)
image_builder_namestringThe name of the image builder that was used to create the private image. If the image is shared, copied, or updated by using Managed Image Updates, this value is null.
image_builder_supportedbooleanIndicates whether an image builder can be launched from this image.
image_errorsarrayDescribes the errors that are returned when a new image can't be created.
image_permissionsobjectThe permissions to provide to the destination AWS account for the specified image.
image_shared_with_othersstringIndicates whether the image is shared with another account ID. (TRUE, FALSE)
image_typestringThe type of the image. Images created through AMI import have type "custom", while WorkSpaces Applications provided images have type "native". Custom images support additional instance types including GeneralPurpose, MemoryOptimized, ComputeOptimized, and Accelerated instance families. (CUSTOM, NATIVE, BYOL)
latest_appstream_agent_versionstringIndicates whether the image is using the latest WorkSpaces Applications agent version or not. (TRUE, FALSE)
managed_software_includedbooleanIndicates whether the image includes license-included applications.
namestringThe name of the image.
platformstringThe operating system platform of the image. (WINDOWS, WINDOWS_SERVER_2016, WINDOWS_SERVER_2019, WINDOWS_SERVER_2022, WINDOWS_SERVER_2025, AMAZON_LINUX2, RHEL8, ROCKY_LINUX8, UBUNTU_PRO_2404)
public_base_image_released_datestring (date-time)The release date of the public base image. For private images, this date is the release date of the base image from which the image was created.
statestringThe image starts in the PENDING state. If image creation succeeds, the state is AVAILABLE. If image creation fails, the state is FAILED. (PENDING, AVAILABLE, FAILED, COPYING, DELETING, CREATING, IMPORTING, VALIDATING)
state_change_reasonobjectThe reason why the last state change occurred.
supported_instance_familiesarrayThe supported instances families that determine which image a customer can use when the customer launches a fleet or image builder. The following instances families are supported: General Purpose Compute Optimized Memory Optimized Graphics G4 Graphics G5 Graphics G6
visibilitystringIndicates whether the image is public or private. (PUBLIC, PRIVATE, SHARED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_imagesselectregionRetrieves a list that describes one or more specified images, if the image names or image ARNs are provided. Otherwise, all images in the account are described.
create_updated_imageinsertregion, existingImageName, newImageNameCreates a new image with the latest Windows operating system updates, driver updates, and WorkSpaces Applications agent software. For more information, see the "Update an Image by Using Managed WorkSpaces Applications Image Updates" section in Administer Your WorkSpaces Applications Images, in the Amazon WorkSpaces Applications Administration Guide.
create_imported_imageinsertregionCreates a custom WorkSpaces Applications image by importing an EC2 AMI. This allows you to use your own customized AMI to create WorkSpaces Applications images that support additional instance types beyond the standard stream.* instances.
delete_imagedeleteregionDeletes the specified image. You cannot delete an image when it is in use. After you delete an image, you cannot provision new capacity using the image.
start_image_builderexecregionStarts the specified image builder.
stop_image_builderexecregionStops the specified image builder.

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 one or more specified images, if the image names or image ARNs are provided. Otherwise, all images in the account are described.

SELECT
applications,
appstream_agent_version,
arn,
base_image_arn,
created_time,
description,
display_name,
dynamic_app_providers_enabled,
image_builder_name,
image_builder_supported,
image_errors,
image_permissions,
image_shared_with_others,
image_type,
latest_appstream_agent_version,
managed_software_included,
name,
platform,
public_base_image_released_date,
state,
state_change_reason,
supported_instance_families,
visibility
FROM aws.appstream.images
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new image with the latest Windows operating system updates, driver updates, and WorkSpaces Applications agent software. For more information, see the "Update an Image by Using Managed WorkSpaces Applications Image Updates" section in Administer Your WorkSpaces Applications Images, in the Amazon WorkSpaces Applications Administration Guide.

INSERT INTO aws.appstream.images (
existingImageName,
newImageName,
newImageDescription,
newImageDisplayName,
newImageTags,
dryRun,
region
)
SELECT
'{{ existingImageName }}' /* required */,
'{{ newImageName }}' /* required */,
'{{ newImageDescription }}',
'{{ newImageDisplayName }}',
'{{ newImageTags }}',
{{ dryRun }},
'{{ region }}'
RETURNING
can_update_image,
image
;

DELETE examples

Deletes the specified image. You cannot delete an image when it is in use. After you delete an image, you cannot provision new capacity using the image.

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

Lifecycle Methods

Starts the specified image builder.

EXEC aws.appstream.images.start_image_builder
@region='{{ region }}' --required
@@json=
'{
"Name": "{{ Name }}",
"AppstreamAgentVersion": "{{ AppstreamAgentVersion }}"
}'
;