Amazon WorkSpaces

2026/10/19 - Amazon WorkSpaces - 1 updated api methods

Changes  Adds optional imageValidationMode enum to ImportCustomWorkspaceImageRequest. This allows customers to opt-in to having prevalidation run in the service account instead of customer account.

ImportCustomWorkspaceImage (updated) Link ΒΆ
Changes (request)
{'ImageValidationMode': 'CUSTOMER_MANAGED | SERVICE_MANAGED'}

Imports the specified Windows 10 or 11 Bring Your Own License (BYOL) image into Amazon WorkSpaces using EC2 Image Builder. The image must be an already licensed image that is in your Amazon Web Services account, and you must own the image. For more information about creating BYOL images, see Bring Your Own Windows Desktop Licenses.

See also: AWS API Documentation

Request Syntax

client.import_custom_workspace_image(
    ImageName='string',
    ImageDescription='string',
    ComputeType='BASE'|'GRAPHICS_G4DN'|'GRAPHICS_G6'|'GRAPHICS_G7',
    Protocol='PCOIP'|'DCV'|'BYOP',
    ImageSource={
        'Ec2ImportTaskId': 'string',
        'ImageBuildVersionArn': 'string',
        'Ec2ImageId': 'string'
    },
    InfrastructureConfigurationArn='string',
    Platform='WINDOWS',
    OsVersion='Windows_10'|'Windows_11',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ],
    ImageValidationMode='CUSTOMER_MANAGED'|'SERVICE_MANAGED'
)
type ImageName:

string

param ImageName:

[REQUIRED]

The name of the WorkSpace image.

type ImageDescription:

string

param ImageDescription:

[REQUIRED]

The description of the WorkSpace image.

type ComputeType:

string

param ComputeType:

[REQUIRED]

The supported compute type for the WorkSpace image.

type Protocol:

string

param Protocol:

[REQUIRED]

The supported protocol for the WorkSpace image. Windows 11 does not support PCOIP protocol.

type ImageSource:

dict

param ImageSource:

[REQUIRED]

The options for image import source.

  • Ec2ImportTaskId (string) --

    The EC2 import task ID to import the image from the Amazon EC2 VM import process.

  • ImageBuildVersionArn (string) --

    The ARN of the EC2 Image Builder image.

  • Ec2ImageId (string) --

    The identifier of the EC2 image.

type InfrastructureConfigurationArn:

string

param InfrastructureConfigurationArn:

[REQUIRED]

The infrastructure configuration ARN that specifies how the WorkSpace image is built.

type Platform:

string

param Platform:

[REQUIRED]

The platform for the WorkSpace image source.

type OsVersion:

string

param OsVersion:

[REQUIRED]

The OS version for the WorkSpace image source.

type Tags:

list

param Tags:

The resource tags. Each WorkSpaces resource can have a maximum of 50 tags.

  • (dict) --

    Describes a tag.

    • Key (string) -- [REQUIRED]

      The key of the tag.

    • Value (string) --

      The value of the tag.

type ImageValidationMode:

string

param ImageValidationMode:

The image validation mode for the WorkSpace image import.

rtype:

dict

returns:

Response Syntax

{
    'ImageId': 'string',
    'State': 'PENDING'|'IN_PROGRESS'|'PROCESSING_SOURCE_IMAGE'|'IMAGE_TESTING_START'|'UPDATING_OPERATING_SYSTEM'|'IMAGE_COMPATIBILITY_CHECKING'|'IMAGE_TESTING_GENERALIZATION'|'CREATING_TEST_INSTANCE'|'INSTALLING_COMPONENTS'|'GENERALIZING'|'VALIDATING'|'PUBLISHING'|'COMPLETED'|'ERROR'
}

Response Structure

  • (dict) --

    • ImageId (string) --

      The identifier of the WorkSpace image.

    • State (string) --

      The state of the WorkSpace image.