amazonka-mediaconnect-2.0: Amazon MediaConnect 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.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

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

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

Instances

Instances details
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

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 #

Generic ListReservations Source # 
Instance details

Defined in Amazonka.MediaConnect.ListReservations

Associated Types

type Rep ListReservations :: Type -> Type #

Read ListReservations Source # 
Instance details

Defined in Amazonka.MediaConnect.ListReservations

Show ListReservations Source # 
Instance details

Defined in Amazonka.MediaConnect.ListReservations

NFData ListReservations Source # 
Instance details

Defined in Amazonka.MediaConnect.ListReservations

Methods

rnf :: ListReservations -> () #

Eq ListReservations Source # 
Instance details

Defined in Amazonka.MediaConnect.ListReservations

Hashable ListReservations Source # 
Instance details

Defined in Amazonka.MediaConnect.ListReservations

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

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

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.

Request Lenses

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.

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.

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

Defined in Amazonka.MediaConnect.ListReservations

Associated Types

type Rep ListReservationsResponse :: Type -> Type #

Read ListReservationsResponse Source # 
Instance details

Defined in Amazonka.MediaConnect.ListReservations

Show ListReservationsResponse Source # 
Instance details

Defined in Amazonka.MediaConnect.ListReservations

NFData ListReservationsResponse Source # 
Instance details

Defined in Amazonka.MediaConnect.ListReservations

Eq 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" "amazonka-mediaconnect-2.0-KNF7B97aPsN1PZ2vBYFgux" '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:

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.