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

Description

Creates one or more WorkSpaces.

This operation is asynchronous and returns before the WorkSpaces are created.

Synopsis

Creating a Request

data CreateWorkspaces Source #

See: newCreateWorkspaces smart constructor.

Constructors

CreateWorkspaces' 

Fields

Instances

Instances details
Eq CreateWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaces

Read CreateWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaces

Show CreateWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaces

Generic CreateWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaces

Associated Types

type Rep CreateWorkspaces :: Type -> Type #

NFData CreateWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaces

Methods

rnf :: CreateWorkspaces -> () #

Hashable CreateWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaces

ToJSON CreateWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaces

AWSRequest CreateWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaces

Associated Types

type AWSResponse CreateWorkspaces #

ToHeaders CreateWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaces

ToPath CreateWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaces

ToQuery CreateWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaces

type Rep CreateWorkspaces Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaces

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

Defined in Amazonka.WorkSpaces.CreateWorkspaces

newCreateWorkspaces Source #

Create a value of CreateWorkspaces 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:workspaces:CreateWorkspaces', createWorkspaces_workspaces - The WorkSpaces to create. You can specify up to 25 WorkSpaces.

Request Lenses

createWorkspaces_workspaces :: Lens' CreateWorkspaces (NonEmpty WorkspaceRequest) Source #

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

Destructuring the Response

data CreateWorkspacesResponse Source #

See: newCreateWorkspacesResponse smart constructor.

Constructors

CreateWorkspacesResponse' 

Fields

  • failedRequests :: Maybe [FailedCreateWorkspaceRequest]

    Information about the WorkSpaces that could not be created.

  • pendingRequests :: Maybe [Workspace]

    Information about the WorkSpaces that were created.

    Because this operation is asynchronous, the identifier returned is not immediately available for use with other operations. For example, if you call DescribeWorkspaces before the WorkSpace is created, the information returned can be incomplete.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq CreateWorkspacesResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaces

Read CreateWorkspacesResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaces

Show CreateWorkspacesResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaces

Generic CreateWorkspacesResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaces

Associated Types

type Rep CreateWorkspacesResponse :: Type -> Type #

NFData CreateWorkspacesResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaces

type Rep CreateWorkspacesResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.CreateWorkspaces

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

newCreateWorkspacesResponse Source #

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

$sel:pendingRequests:CreateWorkspacesResponse', createWorkspacesResponse_pendingRequests - Information about the WorkSpaces that were created.

Because this operation is asynchronous, the identifier returned is not immediately available for use with other operations. For example, if you call DescribeWorkspaces before the WorkSpace is created, the information returned can be incomplete.

$sel:httpStatus:CreateWorkspacesResponse', createWorkspacesResponse_httpStatus - The response's http status code.

Response Lenses

createWorkspacesResponse_failedRequests :: Lens' CreateWorkspacesResponse (Maybe [FailedCreateWorkspaceRequest]) Source #

Information about the WorkSpaces that could not be created.

createWorkspacesResponse_pendingRequests :: Lens' CreateWorkspacesResponse (Maybe [Workspace]) Source #

Information about the WorkSpaces that were created.

Because this operation is asynchronous, the identifier returned is not immediately available for use with other operations. For example, if you call DescribeWorkspaces before the WorkSpace is created, the information returned can be incomplete.