amazonka-snowball-2.0: Amazon Import/Export Snowball SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

  • maxResults :: Maybe Natural

    The number of ClusterListEntry objects to return.

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

Instances

Instances details
ToJSON ListClusters Source # 
Instance details

Defined in Amazonka.Snowball.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

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 #

Generic ListClusters Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

Associated Types

type Rep ListClusters :: Type -> Type #

Read ListClusters Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

Show ListClusters Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

NFData ListClusters Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

Methods

rnf :: ListClusters -> () #

Eq ListClusters Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

Hashable ListClusters Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

type AWSResponse 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" "amazonka-snowball-2.0-6vnXQdr1CFv4zLyXDWX7zH" 'False) (C1 ('MetaCons "ListClusters'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

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:maxResults:ListClusters', listClusters_maxResults - The number of ClusterListEntry objects to return.

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.

Request Lenses

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

The number of ClusterListEntry objects to return.

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.

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
Generic ListClustersResponse Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

Associated Types

type Rep ListClustersResponse :: Type -> Type #

Read ListClustersResponse Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

Show ListClustersResponse Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

NFData ListClustersResponse Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

Methods

rnf :: ListClustersResponse -> () #

Eq ListClustersResponse Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

type Rep ListClustersResponse Source # 
Instance details

Defined in Amazonka.Snowball.ListClusters

type Rep ListClustersResponse = D1 ('MetaData "ListClustersResponse" "Amazonka.Snowball.ListClusters" "amazonka-snowball-2.0-6vnXQdr1CFv4zLyXDWX7zH" '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.

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.