libZSservicesZSamazonka-ampZSamazonka-amp
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.AMP.ListWorkspaces

Description

Lists all AMP workspaces, including workspaces being created or deleted.

This operation returns paginated results.

Synopsis

Creating a Request

data ListWorkspaces Source #

Represents the input of a ListWorkspaces operation.

See: newListWorkspaces smart constructor.

Constructors

ListWorkspaces' 

Fields

  • alias :: Maybe Text

    Optional filter for workspace alias. Only the workspaces with aliases that begin with this value will be returned.

  • nextToken :: Maybe Text

    Pagination token to request the next page in a paginated list. This token is obtained from the output of the previous ListWorkspaces request.

  • maxResults :: Maybe Natural

    Maximum results to return in response (default=100, maximum=1000).

Instances

Instances details
Eq ListWorkspaces Source # 
Instance details

Defined in Amazonka.AMP.ListWorkspaces

Read ListWorkspaces Source # 
Instance details

Defined in Amazonka.AMP.ListWorkspaces

Show ListWorkspaces Source # 
Instance details

Defined in Amazonka.AMP.ListWorkspaces

Generic ListWorkspaces Source # 
Instance details

Defined in Amazonka.AMP.ListWorkspaces

Associated Types

type Rep ListWorkspaces :: Type -> Type #

NFData ListWorkspaces Source # 
Instance details

Defined in Amazonka.AMP.ListWorkspaces

Methods

rnf :: ListWorkspaces -> () #

Hashable ListWorkspaces Source # 
Instance details

Defined in Amazonka.AMP.ListWorkspaces

AWSPager ListWorkspaces Source # 
Instance details

Defined in Amazonka.AMP.ListWorkspaces

AWSRequest ListWorkspaces Source # 
Instance details

Defined in Amazonka.AMP.ListWorkspaces

Associated Types

type AWSResponse ListWorkspaces #

ToHeaders ListWorkspaces Source # 
Instance details

Defined in Amazonka.AMP.ListWorkspaces

ToPath ListWorkspaces Source # 
Instance details

Defined in Amazonka.AMP.ListWorkspaces

ToQuery ListWorkspaces Source # 
Instance details

Defined in Amazonka.AMP.ListWorkspaces

type Rep ListWorkspaces Source # 
Instance details

Defined in Amazonka.AMP.ListWorkspaces

type Rep ListWorkspaces = D1 ('MetaData "ListWorkspaces" "Amazonka.AMP.ListWorkspaces" "libZSservicesZSamazonka-ampZSamazonka-amp" 'False) (C1 ('MetaCons "ListWorkspaces'" 'PrefixI 'True) (S1 ('MetaSel ('Just "alias") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))
type AWSResponse ListWorkspaces Source # 
Instance details

Defined in Amazonka.AMP.ListWorkspaces

newListWorkspaces :: ListWorkspaces Source #

Create a value of ListWorkspaces 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:alias:ListWorkspaces', listWorkspaces_alias - Optional filter for workspace alias. Only the workspaces with aliases that begin with this value will be returned.

$sel:nextToken:ListWorkspaces', listWorkspaces_nextToken - Pagination token to request the next page in a paginated list. This token is obtained from the output of the previous ListWorkspaces request.

$sel:maxResults:ListWorkspaces', listWorkspaces_maxResults - Maximum results to return in response (default=100, maximum=1000).

Request Lenses

listWorkspaces_alias :: Lens' ListWorkspaces (Maybe Text) Source #

Optional filter for workspace alias. Only the workspaces with aliases that begin with this value will be returned.

listWorkspaces_nextToken :: Lens' ListWorkspaces (Maybe Text) Source #

Pagination token to request the next page in a paginated list. This token is obtained from the output of the previous ListWorkspaces request.

listWorkspaces_maxResults :: Lens' ListWorkspaces (Maybe Natural) Source #

Maximum results to return in response (default=100, maximum=1000).

Destructuring the Response

data ListWorkspacesResponse Source #

Represents the output of a ListWorkspaces operation.

See: newListWorkspacesResponse smart constructor.

Constructors

ListWorkspacesResponse' 

Fields

Instances

Instances details
Eq ListWorkspacesResponse Source # 
Instance details

Defined in Amazonka.AMP.ListWorkspaces

Read ListWorkspacesResponse Source # 
Instance details

Defined in Amazonka.AMP.ListWorkspaces

Show ListWorkspacesResponse Source # 
Instance details

Defined in Amazonka.AMP.ListWorkspaces

Generic ListWorkspacesResponse Source # 
Instance details

Defined in Amazonka.AMP.ListWorkspaces

Associated Types

type Rep ListWorkspacesResponse :: Type -> Type #

NFData ListWorkspacesResponse Source # 
Instance details

Defined in Amazonka.AMP.ListWorkspaces

Methods

rnf :: ListWorkspacesResponse -> () #

type Rep ListWorkspacesResponse Source # 
Instance details

Defined in Amazonka.AMP.ListWorkspaces

type Rep ListWorkspacesResponse = D1 ('MetaData "ListWorkspacesResponse" "Amazonka.AMP.ListWorkspaces" "libZSservicesZSamazonka-ampZSamazonka-amp" 'False) (C1 ('MetaCons "ListWorkspacesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "workspaces") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [WorkspaceSummary]))))

newListWorkspacesResponse Source #

Create a value of ListWorkspacesResponse 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:nextToken:ListWorkspaces', listWorkspacesResponse_nextToken - Pagination token to use when requesting the next page in this list.

$sel:httpStatus:ListWorkspacesResponse', listWorkspacesResponse_httpStatus - The response's http status code.

$sel:workspaces:ListWorkspacesResponse', listWorkspacesResponse_workspaces - The list of existing workspaces, including those undergoing creation or deletion.

Response Lenses

listWorkspacesResponse_nextToken :: Lens' ListWorkspacesResponse (Maybe Text) Source #

Pagination token to use when requesting the next page in this list.

listWorkspacesResponse_workspaces :: Lens' ListWorkspacesResponse [WorkspaceSummary] Source #

The list of existing workspaces, including those undergoing creation or deletion.