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,
image_validation_mode: Optional[ImageValidationMode] = 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.
-
image_validation_mode(Optional[ImageValidationMode], default:None) –The image validation mode for the WorkSpace image import.
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
6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 | |