libZSservicesZSamazonka-snowballZSamazonka-snowball
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.Snowball.ListClusters

Description

Returns an array of ClusterListEntry objects of the specified length. Each ClusterListEntry object contains a cluster's state, a cluster's ID, and other important status information.

This operation returns paginated results.

Synopsis

Creating a Request

data ListClusters Source #

See: newListClusters smart constructor.

Constructors

ListClusters' 

Fields

  • nextToken :: Maybe Text

    HTTP requests are stateless. To identify what object comes "next" in the list of ClusterListEntry objects, you have the option of specifying NextToken as the starting point for your returned list.

  • maxResults :: Maybe Natural

    The number of ClusterListEntry objects to return.

Instances

Instances details
Eq ListClusters Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

Read ListClusters Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

Show ListClusters Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

Generic ListClusters Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

Associated Types

type Rep ListClusters :: Type -> Type #

NFData ListClusters Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

Methods

rnf :: ListClusters -> () #

Hashable ListClusters Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

ToJSON ListClusters Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

AWSPager ListClusters Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

AWSRequest ListClusters Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

Associated Types

type AWSResponse ListClusters #

ToHeaders ListClusters Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

ToPath ListClusters Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

ToQuery ListClusters Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

type Rep ListClusters Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

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

Defined in Amazonka.Snowball.ListClusters

newListClusters :: ListClusters Source #

Create a value of ListClusters 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:ListClusters', listClusters_nextToken - HTTP requests are stateless. To identify what object comes "next" in the list of ClusterListEntry objects, you have the option of specifying NextToken as the starting point for your returned list.

$sel:maxResults:ListClusters', listClusters_maxResults - The number of ClusterListEntry objects to return.

Request Lenses

listClusters_nextToken :: Lens' ListClusters (Maybe Text) Source #

HTTP requests are stateless. To identify what object comes "next" in the list of ClusterListEntry objects, you have the option of specifying NextToken as the starting point for your returned list.

listClusters_maxResults :: Lens' ListClusters (Maybe Natural) Source #

The number of ClusterListEntry objects to return.

Destructuring the Response

data ListClustersResponse Source #

See: newListClustersResponse smart constructor.

Constructors

ListClustersResponse' 

Fields

  • clusterListEntries :: Maybe [ClusterListEntry]

    Each ClusterListEntry object contains a cluster's state, a cluster's ID, and other important status information.

  • nextToken :: Maybe Text

    HTTP requests are stateless. If you use the automatically generated NextToken value in your next ClusterListEntry call, your list of returned clusters will start from this point in the array.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListClustersResponse Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

Read ListClustersResponse Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

Show ListClustersResponse Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

Generic ListClustersResponse Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

Associated Types

type Rep ListClustersResponse :: Type -> Type #

NFData ListClustersResponse Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

Methods

rnf :: ListClustersResponse -> () #

type Rep ListClustersResponse Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

type Rep ListClustersResponse = D1 ('MetaData "ListClustersResponse" "Amazonka.Snowball.ListClusters" "libZSservicesZSamazonka-snowballZSamazonka-snowball" 'False) (C1 ('MetaCons "ListClustersResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "clusterListEntries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ClusterListEntry])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListClustersResponse Source #

Create a value of ListClustersResponse 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:clusterListEntries:ListClustersResponse', listClustersResponse_clusterListEntries - Each ClusterListEntry object contains a cluster's state, a cluster's ID, and other important status information.

$sel:nextToken:ListClusters', listClustersResponse_nextToken - HTTP requests are stateless. If you use the automatically generated NextToken value in your next ClusterListEntry call, your list of returned clusters will start from this point in the array.

$sel:httpStatus:ListClustersResponse', listClustersResponse_httpStatus - The response's http status code.

Response Lenses

listClustersResponse_clusterListEntries :: Lens' ListClustersResponse (Maybe [ClusterListEntry]) Source #

Each ClusterListEntry object contains a cluster's state, a cluster's ID, and other important status information.

listClustersResponse_nextToken :: Lens' ListClustersResponse (Maybe Text) Source #

HTTP requests are stateless. If you use the automatically generated NextToken value in your next ClusterListEntry call, your list of returned clusters will start from this point in the array.