libZSservicesZSamazonka-workspacesZSamazonka-workspaces
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.WorkSpaces.RestoreWorkspace

Description

Restores the specified WorkSpace to its last known healthy state.

You cannot restore a WorkSpace unless its state is AVAILABLE, ERROR, UNHEALTHY, or STOPPED.

Restoring a WorkSpace is a potentially destructive action that can result in the loss of data. For more information, see Restore a WorkSpace.

This operation is asynchronous and returns before the WorkSpace is completely restored.

Synopsis

Creating a Request

data RestoreWorkspace Source #

See: newRestoreWorkspace smart constructor.

Constructors

RestoreWorkspace' 

Fields

Instances

Instances details
Eq RestoreWorkspace Source # 
Instance details

Defined in Amazonka.WorkSpaces.RestoreWorkspace

Read RestoreWorkspace Source # 
Instance details

Defined in Amazonka.WorkSpaces.RestoreWorkspace

Show RestoreWorkspace Source # 
Instance details

Defined in Amazonka.WorkSpaces.RestoreWorkspace

Generic RestoreWorkspace Source # 
Instance details

Defined in Amazonka.WorkSpaces.RestoreWorkspace

Associated Types

type Rep RestoreWorkspace :: Type -> Type #

NFData RestoreWorkspace Source # 
Instance details

Defined in Amazonka.WorkSpaces.RestoreWorkspace

Methods

rnf :: RestoreWorkspace -> () #

Hashable RestoreWorkspace Source # 
Instance details

Defined in Amazonka.WorkSpaces.RestoreWorkspace

ToJSON RestoreWorkspace Source # 
Instance details

Defined in Amazonka.WorkSpaces.RestoreWorkspace

AWSRequest RestoreWorkspace Source # 
Instance details

Defined in Amazonka.WorkSpaces.RestoreWorkspace

Associated Types

type AWSResponse RestoreWorkspace #

ToHeaders RestoreWorkspace Source # 
Instance details

Defined in Amazonka.WorkSpaces.RestoreWorkspace

ToPath RestoreWorkspace Source # 
Instance details

Defined in Amazonka.WorkSpaces.RestoreWorkspace

ToQuery RestoreWorkspace Source # 
Instance details

Defined in Amazonka.WorkSpaces.RestoreWorkspace

type Rep RestoreWorkspace Source # 
Instance details

Defined in Amazonka.WorkSpaces.RestoreWorkspace

type Rep RestoreWorkspace = D1 ('MetaData "RestoreWorkspace" "Amazonka.WorkSpaces.RestoreWorkspace" "libZSservicesZSamazonka-workspacesZSamazonka-workspaces" 'False) (C1 ('MetaCons "RestoreWorkspace'" 'PrefixI 'True) (S1 ('MetaSel ('Just "workspaceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse RestoreWorkspace Source # 
Instance details

Defined in Amazonka.WorkSpaces.RestoreWorkspace

newRestoreWorkspace Source #

Create a value of RestoreWorkspace 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:workspaceId:RestoreWorkspace', restoreWorkspace_workspaceId - The identifier of the WorkSpace.

Request Lenses

restoreWorkspace_workspaceId :: Lens' RestoreWorkspace Text Source #

The identifier of the WorkSpace.

Destructuring the Response

data RestoreWorkspaceResponse Source #

See: newRestoreWorkspaceResponse smart constructor.

Constructors

RestoreWorkspaceResponse' 

Fields

Instances

Instances details
Eq RestoreWorkspaceResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.RestoreWorkspace

Read RestoreWorkspaceResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.RestoreWorkspace

Show RestoreWorkspaceResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.RestoreWorkspace

Generic RestoreWorkspaceResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.RestoreWorkspace

Associated Types

type Rep RestoreWorkspaceResponse :: Type -> Type #

NFData RestoreWorkspaceResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.RestoreWorkspace

type Rep RestoreWorkspaceResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.RestoreWorkspace

type Rep RestoreWorkspaceResponse = D1 ('MetaData "RestoreWorkspaceResponse" "Amazonka.WorkSpaces.RestoreWorkspace" "libZSservicesZSamazonka-workspacesZSamazonka-workspaces" 'False) (C1 ('MetaCons "RestoreWorkspaceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newRestoreWorkspaceResponse Source #

Create a value of RestoreWorkspaceResponse 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:httpStatus:RestoreWorkspaceResponse', restoreWorkspaceResponse_httpStatus - The response's http status code.

Response Lenses