Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a new updated WorkSpace image based on the specified source image. The new updated WorkSpace image has the latest drivers and other updates required by the Amazon WorkSpaces components.
To determine which WorkSpace images need to be updated with the latest Amazon WorkSpaces requirements, use DescribeWorkspaceImages.
- Only Windows 10 WorkSpace images can be programmatically updated at this time.
- Microsoft Windows updates and other application updates are not included in the update process.
- The source WorkSpace image is not deleted. You can delete the source image after you've verified your new updated image and created a new bundle.
Synopsis
- data CreateUpdatedWorkspaceImage = CreateUpdatedWorkspaceImage' {
- tags :: Maybe [Tag]
- name :: Text
- description :: Text
- sourceImageId :: Text
- newCreateUpdatedWorkspaceImage :: Text -> Text -> Text -> CreateUpdatedWorkspaceImage
- createUpdatedWorkspaceImage_tags :: Lens' CreateUpdatedWorkspaceImage (Maybe [Tag])
- createUpdatedWorkspaceImage_name :: Lens' CreateUpdatedWorkspaceImage Text
- createUpdatedWorkspaceImage_description :: Lens' CreateUpdatedWorkspaceImage Text
- createUpdatedWorkspaceImage_sourceImageId :: Lens' CreateUpdatedWorkspaceImage Text
- data CreateUpdatedWorkspaceImageResponse = CreateUpdatedWorkspaceImageResponse' {
- imageId :: Maybe Text
- httpStatus :: Int
- newCreateUpdatedWorkspaceImageResponse :: Int -> CreateUpdatedWorkspaceImageResponse
- createUpdatedWorkspaceImageResponse_imageId :: Lens' CreateUpdatedWorkspaceImageResponse (Maybe Text)
- createUpdatedWorkspaceImageResponse_httpStatus :: Lens' CreateUpdatedWorkspaceImageResponse Int
Creating a Request
data CreateUpdatedWorkspaceImage Source #
See: newCreateUpdatedWorkspaceImage
smart constructor.
CreateUpdatedWorkspaceImage' | |
|
Instances
newCreateUpdatedWorkspaceImage Source #
:: Text | |
-> Text | |
-> Text | |
-> CreateUpdatedWorkspaceImage |
Create a value of CreateUpdatedWorkspaceImage
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:tags:CreateUpdatedWorkspaceImage'
, createUpdatedWorkspaceImage_tags
- The tags that you want to add to the new updated WorkSpace image.
To add tags at the same time when you're creating the updated image,
you must create an IAM policy that grants your IAM user permissions to
use workspaces:CreateTags
.
$sel:name:CreateUpdatedWorkspaceImage'
, createUpdatedWorkspaceImage_name
- The name of the new updated WorkSpace image.
$sel:description:CreateUpdatedWorkspaceImage'
, createUpdatedWorkspaceImage_description
- A description of whether updates for the WorkSpace image are available.
$sel:sourceImageId:CreateUpdatedWorkspaceImage'
, createUpdatedWorkspaceImage_sourceImageId
- The identifier of the source WorkSpace image.
Request Lenses
createUpdatedWorkspaceImage_tags :: Lens' CreateUpdatedWorkspaceImage (Maybe [Tag]) Source #
The tags that you want to add to the new updated WorkSpace image.
To add tags at the same time when you're creating the updated image,
you must create an IAM policy that grants your IAM user permissions to
use workspaces:CreateTags
.
createUpdatedWorkspaceImage_name :: Lens' CreateUpdatedWorkspaceImage Text Source #
The name of the new updated WorkSpace image.
createUpdatedWorkspaceImage_description :: Lens' CreateUpdatedWorkspaceImage Text Source #
A description of whether updates for the WorkSpace image are available.
createUpdatedWorkspaceImage_sourceImageId :: Lens' CreateUpdatedWorkspaceImage Text Source #
The identifier of the source WorkSpace image.
Destructuring the Response
data CreateUpdatedWorkspaceImageResponse Source #
See: newCreateUpdatedWorkspaceImageResponse
smart constructor.
CreateUpdatedWorkspaceImageResponse' | |
|
Instances
newCreateUpdatedWorkspaceImageResponse Source #
Create a value of CreateUpdatedWorkspaceImageResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:imageId:CreateUpdatedWorkspaceImageResponse'
, createUpdatedWorkspaceImageResponse_imageId
- The identifier of the new updated WorkSpace image.
$sel:httpStatus:CreateUpdatedWorkspaceImageResponse'
, createUpdatedWorkspaceImageResponse_httpStatus
- The response's http status code.
Response Lenses
createUpdatedWorkspaceImageResponse_imageId :: Lens' CreateUpdatedWorkspaceImageResponse (Maybe Text) Source #
The identifier of the new updated WorkSpace image.
createUpdatedWorkspaceImageResponse_httpStatus :: Lens' CreateUpdatedWorkspaceImageResponse Int Source #
The response's http status code.