amazonka-devicefarm-2.0: Amazon Device Farm 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.DeviceFarm.ListOfferingPromotions

Description

Returns a list of offering promotions. Each offering promotion record contains the ID and description of the promotion. The API returns a NotEligible error if the caller is not permitted to invoke the operation. Contact aws-devicefarm-support@amazon.com if you must be able to invoke this operation.

This operation returns paginated results.

Synopsis

Creating a Request

data ListOfferingPromotions Source #

See: newListOfferingPromotions smart constructor.

Constructors

ListOfferingPromotions' 

Fields

  • nextToken :: Maybe Text

    An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

Instances

Instances details
ToJSON ListOfferingPromotions Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

ToHeaders ListOfferingPromotions Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

ToPath ListOfferingPromotions Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

ToQuery ListOfferingPromotions Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

AWSPager ListOfferingPromotions Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

AWSRequest ListOfferingPromotions Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

Associated Types

type AWSResponse ListOfferingPromotions #

Generic ListOfferingPromotions Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

Associated Types

type Rep ListOfferingPromotions :: Type -> Type #

Read ListOfferingPromotions Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

Show ListOfferingPromotions Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

NFData ListOfferingPromotions Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

Methods

rnf :: ListOfferingPromotions -> () #

Eq ListOfferingPromotions Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

Hashable ListOfferingPromotions Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

type AWSResponse ListOfferingPromotions Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

type Rep ListOfferingPromotions Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

type Rep ListOfferingPromotions = D1 ('MetaData "ListOfferingPromotions" "Amazonka.DeviceFarm.ListOfferingPromotions" "amazonka-devicefarm-2.0-2e4KvZvQ9bT8TNjEPvmW9Q" 'False) (C1 ('MetaCons "ListOfferingPromotions'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newListOfferingPromotions :: ListOfferingPromotions Source #

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

ListOfferingPromotions, listOfferingPromotions_nextToken - An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

Request Lenses

listOfferingPromotions_nextToken :: Lens' ListOfferingPromotions (Maybe Text) Source #

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

Destructuring the Response

data ListOfferingPromotionsResponse Source #

See: newListOfferingPromotionsResponse smart constructor.

Constructors

ListOfferingPromotionsResponse' 

Fields

Instances

Instances details
Generic ListOfferingPromotionsResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

Associated Types

type Rep ListOfferingPromotionsResponse :: Type -> Type #

Read ListOfferingPromotionsResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

Show ListOfferingPromotionsResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

NFData ListOfferingPromotionsResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

Eq ListOfferingPromotionsResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

type Rep ListOfferingPromotionsResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

type Rep ListOfferingPromotionsResponse = D1 ('MetaData "ListOfferingPromotionsResponse" "Amazonka.DeviceFarm.ListOfferingPromotions" "amazonka-devicefarm-2.0-2e4KvZvQ9bT8TNjEPvmW9Q" 'False) (C1 ('MetaCons "ListOfferingPromotionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "offeringPromotions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [OfferingPromotion])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListOfferingPromotionsResponse Source #

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

ListOfferingPromotions, listOfferingPromotionsResponse_nextToken - An identifier to be used in the next call to this operation, to return the next set of items in the list.

$sel:offeringPromotions:ListOfferingPromotionsResponse', listOfferingPromotionsResponse_offeringPromotions - Information about the offering promotions.

$sel:httpStatus:ListOfferingPromotionsResponse', listOfferingPromotionsResponse_httpStatus - The response's http status code.

Response Lenses

listOfferingPromotionsResponse_nextToken :: Lens' ListOfferingPromotionsResponse (Maybe Text) Source #

An identifier to be used in the next call to this operation, to return the next set of items in the list.