Module Smaws_Client_WorkSpaces.UpdateWorkspaceImagePermission

Shares or unshares an image with one account in the same Amazon Web Services Region by specifying whether that account has permission to copy the image. If the copy image permission is granted, the image is shared with that account. If the copy image permission is revoked, the image is unshared with the account.

After an image has been shared, the recipient account can copy the image to other Regions as needed.

In the China (Ningxia) Region, you can copy images only within the same Region.

In Amazon Web Services GovCloud (US), to copy images to and from other Regions, contact Amazon Web Services Support.

For more information about sharing images, see Share or Unshare a Custom WorkSpaces Image.

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 | `ResourceNotFoundException of Types.resource_not_found_exception | `ResourceUnavailableException of Types.resource_unavailable_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.update_workspace_image_permission_request -> (Types.update_workspace_image_permission_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 | `ResourceNotFoundException of Types.resource_not_found_exception | `ResourceUnavailableException of Types.resource_unavailable_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.update_workspace_image_permission_request -> (Types.update_workspace_image_permission_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 | `ResourceNotFoundException of Types.resource_not_found_exception | `ResourceUnavailableException of Types.resource_unavailable_exception ] * Smaws_Lib.Response.metadata) Stdlib.result