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.StopWorkspaces

Description

Stops the specified WorkSpaces.

You cannot stop a WorkSpace unless it has a running mode of AutoStop and a state of AVAILABLE, IMPAIRED, UNHEALTHY, or ERROR.

Synopsis

Creating a Request

data StopWorkspaces Source #

See: newStopWorkspaces smart constructor.

Constructors

StopWorkspaces' 

Fields

Instances

Instances details
Eq StopWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.StopWorkspaces

Read StopWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.StopWorkspaces

Show StopWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.StopWorkspaces

Generic StopWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.StopWorkspaces

Associated Types

type Rep StopWorkspaces :: Type -> Type #

NFData StopWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.StopWorkspaces

Methods

rnf :: StopWorkspaces -> () #

Hashable StopWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.StopWorkspaces

ToJSON StopWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.StopWorkspaces

AWSRequest StopWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.StopWorkspaces

Associated Types

type AWSResponse StopWorkspaces #

ToHeaders StopWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.StopWorkspaces

ToPath StopWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.StopWorkspaces

ToQuery StopWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.StopWorkspaces

type Rep StopWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.StopWorkspaces

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

Defined in Amazonka.WorkSpaces.StopWorkspaces

newStopWorkspaces Source #

Create a value of StopWorkspaces 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:stopWorkspaceRequests:StopWorkspaces', stopWorkspaces_stopWorkspaceRequests - The WorkSpaces to stop. You can specify up to 25 WorkSpaces.

Request Lenses

stopWorkspaces_stopWorkspaceRequests :: Lens' StopWorkspaces (NonEmpty StopRequest) Source #

The WorkSpaces to stop. You can specify up to 25 WorkSpaces.

Destructuring the Response

data StopWorkspacesResponse Source #

See: newStopWorkspacesResponse smart constructor.

Constructors

StopWorkspacesResponse' 

Fields

Instances

Instances details
Eq StopWorkspacesResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.StopWorkspaces

Read StopWorkspacesResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.StopWorkspaces

Show StopWorkspacesResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.StopWorkspaces

Generic StopWorkspacesResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.StopWorkspaces

Associated Types

type Rep StopWorkspacesResponse :: Type -> Type #

NFData StopWorkspacesResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.StopWorkspaces

Methods

rnf :: StopWorkspacesResponse -> () #

type Rep StopWorkspacesResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.StopWorkspaces

type Rep StopWorkspacesResponse = D1 ('MetaData "StopWorkspacesResponse" "Amazonka.WorkSpaces.StopWorkspaces" "libZSservicesZSamazonka-workspacesZSamazonka-workspaces" 'False) (C1 ('MetaCons "StopWorkspacesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "failedRequests") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [FailedWorkspaceChangeRequest])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newStopWorkspacesResponse Source #

Create a value of StopWorkspacesResponse 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:failedRequests:StopWorkspacesResponse', stopWorkspacesResponse_failedRequests - Information about the WorkSpaces that could not be stopped.

$sel:httpStatus:StopWorkspacesResponse', stopWorkspacesResponse_httpStatus - The response's http status code.

Response Lenses

stopWorkspacesResponse_failedRequests :: Lens' StopWorkspacesResponse (Maybe [FailedWorkspaceChangeRequest]) Source #

Information about the WorkSpaces that could not be stopped.