libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway
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.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

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

  • marker :: Maybe Text

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

  • limit :: Maybe Natural

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

Instances

Instances details
Eq ListTapePools Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

Read ListTapePools Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

Show ListTapePools Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

Generic ListTapePools Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

Associated Types

type Rep ListTapePools :: Type -> Type #

NFData ListTapePools Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

Methods

rnf :: ListTapePools -> () #

Hashable ListTapePools Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

ToJSON 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 #

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

type Rep ListTapePools Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

type Rep ListTapePools = D1 ('MetaData "ListTapePools" "Amazonka.StorageGateway.ListTapePools" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" 'False) (C1 ('MetaCons "ListTapePools'" 'PrefixI 'True) (S1 ('MetaSel ('Just "poolARNs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))
type AWSResponse ListTapePools Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

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

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

$sel:limit:ListTapePools', listTapePools_limit - An optional number limit for the tape pools in the list returned by this call.

Request Lenses

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.

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

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

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

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

Destructuring the Response

data ListTapePoolsResponse Source #

See: newListTapePoolsResponse smart constructor.

Constructors

ListTapePoolsResponse' 

Fields

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

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListTapePoolsResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

Read ListTapePoolsResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

Show ListTapePoolsResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

Generic ListTapePoolsResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

Associated Types

type Rep ListTapePoolsResponse :: Type -> Type #

NFData ListTapePoolsResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

Methods

rnf :: ListTapePoolsResponse -> () #

type Rep ListTapePoolsResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListTapePools

type Rep ListTapePoolsResponse = D1 ('MetaData "ListTapePoolsResponse" "Amazonka.StorageGateway.ListTapePools" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" 'False) (C1 ('MetaCons "ListTapePoolsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "poolInfos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PoolInfo])) :*: (S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: 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:

$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:marker: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:httpStatus:ListTapePoolsResponse', listTapePoolsResponse_httpStatus - The response's http status code.

Response Lenses

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.

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.