libZSservicesZSamazonka-mediaconnectZSamazonka-mediaconnect
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.MediaConnect.ListReservations

Description

Displays a list of all reservations that have been purchased by this account in the current AWS Region. This list includes all reservations in all states (such as active and expired).

This operation returns paginated results.

Synopsis

Creating a Request

data ListReservations Source #

See: newListReservations smart constructor.

Constructors

ListReservations' 

Fields

  • nextToken :: Maybe Text

    The token that identifies which batch of results that you want to see. For example, you submit a ListReservations request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListOfferings request a second time and specify the NextToken value.

  • maxResults :: Maybe Natural

    The maximum number of results to return per API request. For example, you submit a ListReservations request with MaxResults set at 5. Although 20 items match your request, the service returns no more than the first 5 items. (The service also returns a NextToken value that you can use to fetch the next batch of results.) The service might return fewer results than the MaxResults value. If MaxResults is not included in the request, the service defaults to pagination with a maximum of 10 results per page.

Instances

Instances details
Eq ListReservations Source # 
Instance details

Defined in Amazonka.MediaConnect.ListReservations

Read ListReservations Source # 
Instance details

Defined in Amazonka.MediaConnect.ListReservations

Show ListReservations Source # 
Instance details

Defined in Amazonka.MediaConnect.ListReservations

Generic ListReservations Source # 
Instance details

Defined in Amazonka.MediaConnect.ListReservations

Associated Types

type Rep ListReservations :: Type -> Type #

NFData ListReservations Source # 
Instance details

Defined in Amazonka.MediaConnect.ListReservations

Methods

rnf :: ListReservations -> () #

Hashable ListReservations Source # 
Instance details

Defined in Amazonka.MediaConnect.ListReservations

AWSPager ListReservations Source # 
Instance details

Defined in Amazonka.MediaConnect.ListReservations

AWSRequest ListReservations Source # 
Instance details

Defined in Amazonka.MediaConnect.ListReservations

Associated Types

type AWSResponse ListReservations #

ToHeaders ListReservations Source # 
Instance details

Defined in Amazonka.MediaConnect.ListReservations

ToPath ListReservations Source # 
Instance details

Defined in Amazonka.MediaConnect.ListReservations

ToQuery ListReservations Source # 
Instance details

Defined in Amazonka.MediaConnect.ListReservations

type Rep ListReservations Source # 
Instance details

Defined in Amazonka.MediaConnect.ListReservations

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

Defined in Amazonka.MediaConnect.ListReservations

newListReservations :: ListReservations Source #

Create a value of ListReservations 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:ListReservations', listReservations_nextToken - The token that identifies which batch of results that you want to see. For example, you submit a ListReservations request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListOfferings request a second time and specify the NextToken value.

$sel:maxResults:ListReservations', listReservations_maxResults - The maximum number of results to return per API request. For example, you submit a ListReservations request with MaxResults set at 5. Although 20 items match your request, the service returns no more than the first 5 items. (The service also returns a NextToken value that you can use to fetch the next batch of results.) The service might return fewer results than the MaxResults value. If MaxResults is not included in the request, the service defaults to pagination with a maximum of 10 results per page.

Request Lenses

listReservations_nextToken :: Lens' ListReservations (Maybe Text) Source #

The token that identifies which batch of results that you want to see. For example, you submit a ListReservations request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListOfferings request a second time and specify the NextToken value.

listReservations_maxResults :: Lens' ListReservations (Maybe Natural) Source #

The maximum number of results to return per API request. For example, you submit a ListReservations request with MaxResults set at 5. Although 20 items match your request, the service returns no more than the first 5 items. (The service also returns a NextToken value that you can use to fetch the next batch of results.) The service might return fewer results than the MaxResults value. If MaxResults is not included in the request, the service defaults to pagination with a maximum of 10 results per page.

Destructuring the Response

data ListReservationsResponse Source #

See: newListReservationsResponse smart constructor.

Constructors

ListReservationsResponse' 

Fields

  • nextToken :: Maybe Text

    The token that identifies which batch of results that you want to see. For example, you submit a ListReservations request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListReservations request a second time and specify the NextToken value.

  • reservations :: Maybe [Reservation]

    A list of all reservations that have been purchased by this account in the current AWS Region.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListReservationsResponse Source # 
Instance details

Defined in Amazonka.MediaConnect.ListReservations

Read ListReservationsResponse Source # 
Instance details

Defined in Amazonka.MediaConnect.ListReservations

Show ListReservationsResponse Source # 
Instance details

Defined in Amazonka.MediaConnect.ListReservations

Generic ListReservationsResponse Source # 
Instance details

Defined in Amazonka.MediaConnect.ListReservations

Associated Types

type Rep ListReservationsResponse :: Type -> Type #

NFData ListReservationsResponse Source # 
Instance details

Defined in Amazonka.MediaConnect.ListReservations

type Rep ListReservationsResponse Source # 
Instance details

Defined in Amazonka.MediaConnect.ListReservations

type Rep ListReservationsResponse = D1 ('MetaData "ListReservationsResponse" "Amazonka.MediaConnect.ListReservations" "libZSservicesZSamazonka-mediaconnectZSamazonka-mediaconnect" 'False) (C1 ('MetaCons "ListReservationsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "reservations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Reservation])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListReservationsResponse Source #

Create a value of ListReservationsResponse 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:ListReservations', listReservationsResponse_nextToken - The token that identifies which batch of results that you want to see. For example, you submit a ListReservations request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListReservations request a second time and specify the NextToken value.

$sel:reservations:ListReservationsResponse', listReservationsResponse_reservations - A list of all reservations that have been purchased by this account in the current AWS Region.

$sel:httpStatus:ListReservationsResponse', listReservationsResponse_httpStatus - The response's http status code.

Response Lenses

listReservationsResponse_nextToken :: Lens' ListReservationsResponse (Maybe Text) Source #

The token that identifies which batch of results that you want to see. For example, you submit a ListReservations request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListReservations request a second time and specify the NextToken value.

listReservationsResponse_reservations :: Lens' ListReservationsResponse (Maybe [Reservation]) Source #

A list of all reservations that have been purchased by this account in the current AWS Region.