amazonka-workspaces-2.0: Amazon WorkSpaces SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.WorkSpaces.CreateWorkspaceImage

Description

Creates a new WorkSpace image from an existing WorkSpace.

Synopsis

Creating a Request

data CreateWorkspaceImage Source #

See: newCreateWorkspaceImage smart constructor.

Constructors

CreateWorkspaceImage' 

Fields

  • tags :: Maybe [Tag]

    The tags that you want to add to the new WorkSpace image. To add tags when you're creating the image, you must create an IAM policy that grants your IAM user permission to use workspaces:CreateTags.

  • name :: Text

    The name of the new WorkSpace image.

  • description :: Text

    The description of the new WorkSpace image.

  • workspaceId :: Text

    The identifier of the source WorkSpace

Instances

Instances details
ToJSON CreateWorkspaceImage Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaceImage

ToHeaders CreateWorkspaceImage Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaceImage

ToPath CreateWorkspaceImage Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaceImage

ToQuery CreateWorkspaceImage Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaceImage

AWSRequest CreateWorkspaceImage Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaceImage

Associated Types

type AWSResponse CreateWorkspaceImage #

Generic CreateWorkspaceImage Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaceImage

Associated Types

type Rep CreateWorkspaceImage :: Type -> Type #

Read CreateWorkspaceImage Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaceImage

Show CreateWorkspaceImage Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaceImage

NFData CreateWorkspaceImage Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaceImage

Methods

rnf :: CreateWorkspaceImage -> () #

Eq CreateWorkspaceImage Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaceImage

Hashable CreateWorkspaceImage Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaceImage

type AWSResponse CreateWorkspaceImage Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaceImage

type Rep CreateWorkspaceImage Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaceImage

type Rep CreateWorkspaceImage = D1 ('MetaData "CreateWorkspaceImage" "Amazonka.WorkSpaces.CreateWorkspaceImage" "amazonka-workspaces-2.0-EI6zVIh1dgfFziJEJ0Fxkv" 'False) (C1 ('MetaCons "CreateWorkspaceImage'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "workspaceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateWorkspaceImage Source #

Create a value of CreateWorkspaceImage 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:

CreateWorkspaceImage, createWorkspaceImage_tags - The tags that you want to add to the new WorkSpace image. To add tags when you're creating the image, you must create an IAM policy that grants your IAM user permission to use workspaces:CreateTags.

CreateWorkspaceImage, createWorkspaceImage_name - The name of the new WorkSpace image.

CreateWorkspaceImage, createWorkspaceImage_description - The description of the new WorkSpace image.

CreateWorkspaceImage, createWorkspaceImage_workspaceId - The identifier of the source WorkSpace

Request Lenses

createWorkspaceImage_tags :: Lens' CreateWorkspaceImage (Maybe [Tag]) Source #

The tags that you want to add to the new WorkSpace image. To add tags when you're creating the image, you must create an IAM policy that grants your IAM user permission to use workspaces:CreateTags.

createWorkspaceImage_name :: Lens' CreateWorkspaceImage Text Source #

The name of the new WorkSpace image.

createWorkspaceImage_description :: Lens' CreateWorkspaceImage Text Source #

The description of the new WorkSpace image.

createWorkspaceImage_workspaceId :: Lens' CreateWorkspaceImage Text Source #

The identifier of the source WorkSpace

Destructuring the Response

data CreateWorkspaceImageResponse Source #

See: newCreateWorkspaceImageResponse smart constructor.

Constructors

CreateWorkspaceImageResponse' 

Fields

Instances

Instances details
Generic CreateWorkspaceImageResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaceImage

Associated Types

type Rep CreateWorkspaceImageResponse :: Type -> Type #

Read CreateWorkspaceImageResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaceImage

Show CreateWorkspaceImageResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaceImage

NFData CreateWorkspaceImageResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaceImage

Eq CreateWorkspaceImageResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaceImage

type Rep CreateWorkspaceImageResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaceImage

newCreateWorkspaceImageResponse Source #

Create a value of CreateWorkspaceImageResponse 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:

CreateWorkspaceImageResponse, createWorkspaceImageResponse_created - The date when the image was created.

CreateWorkspaceImage, createWorkspaceImageResponse_description - The description of the image.

CreateWorkspaceImageResponse, createWorkspaceImageResponse_imageId - The identifier of the new WorkSpace image.

CreateWorkspaceImage, createWorkspaceImageResponse_name - The name of the image.

CreateWorkspaceImageResponse, createWorkspaceImageResponse_operatingSystem - The operating system that the image is running.

CreateWorkspaceImageResponse, createWorkspaceImageResponse_ownerAccountId - The identifier of the Amazon Web Services account that owns the image.

CreateWorkspaceImageResponse, createWorkspaceImageResponse_requiredTenancy - Specifies whether the image is running on dedicated hardware. When Bring Your Own License (BYOL) is enabled, this value is set to DEDICATED. For more information, see Bring Your Own Windows Desktop Images..

CreateWorkspaceImageResponse, createWorkspaceImageResponse_state - The availability status of the image.

$sel:httpStatus:CreateWorkspaceImageResponse', createWorkspaceImageResponse_httpStatus - The response's http status code.

Response Lenses

createWorkspaceImageResponse_ownerAccountId :: Lens' CreateWorkspaceImageResponse (Maybe Text) Source #

The identifier of the Amazon Web Services account that owns the image.

createWorkspaceImageResponse_requiredTenancy :: Lens' CreateWorkspaceImageResponse (Maybe WorkspaceImageRequiredTenancy) Source #

Specifies whether the image is running on dedicated hardware. When Bring Your Own License (BYOL) is enabled, this value is set to DEDICATED. For more information, see Bring Your Own Windows Desktop Images..