amazonka-storagegateway-2.0: Amazon Storage Gateway 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.StorageGateway.ListTapePools

Description

Lists custom tape pools. You specify custom tape pools to list by specifying one or more custom tape pool Amazon Resource Names (ARNs). If you don't specify a custom tape pool ARN, the operation lists all custom tape pools.

This operation supports pagination. You can optionally specify the Limit parameter in the body to limit the number of tape pools in the response. If the number of tape pools returned in the response is truncated, the response includes a Marker element that you can use in your subsequent request to retrieve the next set of tape pools.

This operation returns paginated results.

Synopsis

Creating a Request

data ListTapePools Source #

See: newListTapePools smart constructor.

Constructors

ListTapePools' 

Fields

  • limit :: Maybe Natural

    An optional number limit for the tape pools in the list returned by this call.

  • marker :: Maybe Text

    A string that indicates the position at which to begin the returned list of tape pools.

  • poolARNs :: Maybe [Text]

    The Amazon Resource Name (ARN) of each of the custom tape pools you want to list. If you don't specify a custom tape pool ARN, the response lists all custom tape pools.

Instances

Instances details
ToJSON ListTapePools Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

ToHeaders ListTapePools Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

ToPath ListTapePools Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

ToQuery ListTapePools Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

AWSPager ListTapePools Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

AWSRequest ListTapePools Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

Associated Types

type AWSResponse ListTapePools #

Generic ListTapePools Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

Associated Types

type Rep ListTapePools :: Type -> Type #

Read ListTapePools Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

Show ListTapePools Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

NFData ListTapePools Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

Methods

rnf :: ListTapePools -> () #

Eq ListTapePools Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

Hashable ListTapePools Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

type AWSResponse ListTapePools Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

type Rep ListTapePools Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

type Rep ListTapePools = D1 ('MetaData "ListTapePools" "Amazonka.StorageGateway.ListTapePools" "amazonka-storagegateway-2.0-A8x7b0LCNm33wkCZlwgcSL" 'False) (C1 ('MetaCons "ListTapePools'" 'PrefixI 'True) (S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "poolARNs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))))

newListTapePools :: ListTapePools Source #

Create a value of ListTapePools 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:limit:ListTapePools', listTapePools_limit - An optional number limit for the tape pools in the list returned by this call.

ListTapePools, listTapePools_marker - A string that indicates the position at which to begin the returned list of tape pools.

$sel:poolARNs:ListTapePools', listTapePools_poolARNs - The Amazon Resource Name (ARN) of each of the custom tape pools you want to list. If you don't specify a custom tape pool ARN, the response lists all custom tape pools.

Request Lenses

listTapePools_limit :: Lens' ListTapePools (Maybe Natural) Source #

An optional number limit for the tape pools in the list returned by this call.

listTapePools_marker :: Lens' ListTapePools (Maybe Text) Source #

A string that indicates the position at which to begin the returned list of tape pools.

listTapePools_poolARNs :: Lens' ListTapePools (Maybe [Text]) Source #

The Amazon Resource Name (ARN) of each of the custom tape pools you want to list. If you don't specify a custom tape pool ARN, the response lists all custom tape pools.

Destructuring the Response

data ListTapePoolsResponse Source #

See: newListTapePoolsResponse smart constructor.

Constructors

ListTapePoolsResponse' 

Fields

  • marker :: Maybe Text

    A string that indicates the position at which to begin the returned list of tape pools. Use the marker in your next request to continue pagination of tape pools. If there are no more tape pools to list, this element does not appear in the response body.

  • poolInfos :: Maybe [PoolInfo]

    An array of PoolInfo objects, where each object describes a single custom tape pool. If there are no custom tape pools, the PoolInfos is an empty array.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListTapePoolsResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

Associated Types

type Rep ListTapePoolsResponse :: Type -> Type #

Read ListTapePoolsResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

Show ListTapePoolsResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

NFData ListTapePoolsResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

Methods

rnf :: ListTapePoolsResponse -> () #

Eq ListTapePoolsResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

type Rep ListTapePoolsResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

type Rep ListTapePoolsResponse = D1 ('MetaData "ListTapePoolsResponse" "Amazonka.StorageGateway.ListTapePools" "amazonka-storagegateway-2.0-A8x7b0LCNm33wkCZlwgcSL" 'False) (C1 ('MetaCons "ListTapePoolsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "poolInfos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PoolInfo])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListTapePoolsResponse Source #

Create a value of ListTapePoolsResponse 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:

ListTapePools, listTapePoolsResponse_marker - A string that indicates the position at which to begin the returned list of tape pools. Use the marker in your next request to continue pagination of tape pools. If there are no more tape pools to list, this element does not appear in the response body.

$sel:poolInfos:ListTapePoolsResponse', listTapePoolsResponse_poolInfos - An array of PoolInfo objects, where each object describes a single custom tape pool. If there are no custom tape pools, the PoolInfos is an empty array.

$sel:httpStatus:ListTapePoolsResponse', listTapePoolsResponse_httpStatus - The response's http status code.

Response Lenses

listTapePoolsResponse_marker :: Lens' ListTapePoolsResponse (Maybe Text) Source #

A string that indicates the position at which to begin the returned list of tape pools. Use the marker in your next request to continue pagination of tape pools. If there are no more tape pools to list, this element does not appear in the response body.

listTapePoolsResponse_poolInfos :: Lens' ListTapePoolsResponse (Maybe [PoolInfo]) Source #

An array of PoolInfo objects, where each object describes a single custom tape pool. If there are no custom tape pools, the PoolInfos is an empty array.