import_custom_workspace_image
¶
import_custom_workspace_image(
image_name: WorkspaceImageName,
image_description: WorkspaceImageDescription,
compute_type: ImageComputeType,
protocol: CustomImageProtocol,
image_source: ImageSourceIdentifier,
infrastructure_configuration_arn: InfrastructureConfigurationArn,
platform: Platform,
os_version: OSVersion,
*,
config_overrides: Optional[WorkSpacesClientConfig] = None,
tags: Optional[TagList] = None,
) -> ImportCustomWorkspaceImageResult
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.
Parameters:
-
image_name(WorkspaceImageName) –The name of the WorkSpace image.
-
image_description(WorkspaceImageDescription) –The description of the WorkSpace image.
-
compute_type(ImageComputeType) –The supported compute type for the WorkSpace image.
-
protocol(CustomImageProtocol) –The supported protocol for the WorkSpace image. Windows 11 does not support PCOIP protocol.
-
image_source(ImageSourceIdentifier) –The options for image import source.
-
infrastructure_configuration_arn(InfrastructureConfigurationArn) –The infrastructure configuration ARN that specifies how the WorkSpace image is built.
-
platform(Platform) –The platform for the WorkSpace image source.
-
os_version(OSVersion) –The OS version for the WorkSpace image source.
-
tags(Optional[TagList], default:None) –The resource tags. Each WorkSpaces resource can have a maximum of 50 tags.
Raises:
-
AccessDeniedException–The user is not authorized to access a resource.
-
InvalidParameterValuesException–One or more parameter values are not valid.
-
OperationNotSupportedException–This operation is not supported.
-
ResourceAlreadyExistsException–The specified resource already exists.
-
ResourceLimitExceededException–Your resource limits have been exceeded.
-
ResourceNotFoundException–The resource could not be found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_workspaces/_services/work_spaces.py
3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 | |