Smaws_Client_WorkSpaces.ImportCustomWorkspaceImageImports 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.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `InvalidParameterValuesException of
Types.invalid_parameter_values_exception
| `OperationNotSupportedException of Types.operation_not_supported_exception
| `ResourceAlreadyExistsException of Types.resource_already_exists_exception
| `ResourceLimitExceededException of Types.resource_limit_exceeded_exception
| `ResourceNotFoundException of Types.resource_not_found_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.import_custom_workspace_image_request ->
(Types.import_custom_workspace_image_result,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `InvalidParameterValuesException of
Types.invalid_parameter_values_exception
| `OperationNotSupportedException of
Types.operation_not_supported_exception
| `ResourceAlreadyExistsException of
Types.resource_already_exists_exception
| `ResourceLimitExceededException of
Types.resource_limit_exceeded_exception
| `ResourceNotFoundException of Types.resource_not_found_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.import_custom_workspace_image_request ->
(Types.import_custom_workspace_image_result Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `InvalidParameterValuesException of
Types.invalid_parameter_values_exception
| `OperationNotSupportedException of
Types.operation_not_supported_exception
| `ResourceAlreadyExistsException of
Types.resource_already_exists_exception
| `ResourceLimitExceededException of
Types.resource_limit_exceeded_exception
| `ResourceNotFoundException of Types.resource_not_found_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result