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

Description

Terminates the specified WorkSpaces.

Terminating a WorkSpace is a permanent action and cannot be undone. The user's data is destroyed. If you need to archive any user data, contact Amazon Web Services Support before terminating the WorkSpace.

You can terminate a WorkSpace that is in any state except SUSPENDED.

This operation is asynchronous and returns before the WorkSpaces have been completely terminated. After a WorkSpace is terminated, the TERMINATED state is returned only briefly before the WorkSpace directory metadata is cleaned up, so this state is rarely returned. To confirm that a WorkSpace is terminated, check for the WorkSpace ID by using DescribeWorkSpaces. If the WorkSpace ID isn't returned, then the WorkSpace has been successfully terminated.

Simple AD and AD Connector are made available to you free of charge to use with WorkSpaces. If there are no WorkSpaces being used with your Simple AD or AD Connector directory for 30 consecutive days, this directory will be automatically deregistered for use with Amazon WorkSpaces, and you will be charged for this directory as per the Directory Service pricing terms.

To delete empty directories, see Delete the Directory for Your WorkSpaces. If you delete your Simple AD or AD Connector directory, you can always create a new one when you want to start using WorkSpaces again.

Synopsis

Creating a Request

data TerminateWorkspaces Source #

See: newTerminateWorkspaces smart constructor.

Constructors

TerminateWorkspaces' 

Fields

Instances

Instances details
Eq TerminateWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.TerminateWorkspaces

Read TerminateWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.TerminateWorkspaces

Show TerminateWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.TerminateWorkspaces

Generic TerminateWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.TerminateWorkspaces

Associated Types

type Rep TerminateWorkspaces :: Type -> Type #

NFData TerminateWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.TerminateWorkspaces

Methods

rnf :: TerminateWorkspaces -> () #

Hashable TerminateWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.TerminateWorkspaces

ToJSON TerminateWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.TerminateWorkspaces

AWSRequest TerminateWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.TerminateWorkspaces

Associated Types

type AWSResponse TerminateWorkspaces #

ToHeaders TerminateWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.TerminateWorkspaces

ToPath TerminateWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.TerminateWorkspaces

ToQuery TerminateWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.TerminateWorkspaces

type Rep TerminateWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.TerminateWorkspaces

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

Defined in Amazonka.WorkSpaces.TerminateWorkspaces

newTerminateWorkspaces Source #

Create a value of TerminateWorkspaces 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:terminateWorkspaceRequests:TerminateWorkspaces', terminateWorkspaces_terminateWorkspaceRequests - The WorkSpaces to terminate. You can specify up to 25 WorkSpaces.

Request Lenses

terminateWorkspaces_terminateWorkspaceRequests :: Lens' TerminateWorkspaces (NonEmpty TerminateRequest) Source #

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

Destructuring the Response

data TerminateWorkspacesResponse Source #

See: newTerminateWorkspacesResponse smart constructor.

Constructors

TerminateWorkspacesResponse' 

Fields

Instances

Instances details
Eq TerminateWorkspacesResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.TerminateWorkspaces

Read TerminateWorkspacesResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.TerminateWorkspaces

Show TerminateWorkspacesResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.TerminateWorkspaces

Generic TerminateWorkspacesResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.TerminateWorkspaces

Associated Types

type Rep TerminateWorkspacesResponse :: Type -> Type #

NFData TerminateWorkspacesResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.TerminateWorkspaces

type Rep TerminateWorkspacesResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.TerminateWorkspaces

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

newTerminateWorkspacesResponse Source #

Create a value of TerminateWorkspacesResponse 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:TerminateWorkspacesResponse', terminateWorkspacesResponse_failedRequests - Information about the WorkSpaces that could not be terminated.

$sel:httpStatus:TerminateWorkspacesResponse', terminateWorkspacesResponse_httpStatus - The response's http status code.

Response Lenses