libZSservicesZSamazonka-devicefarmZSamazonka-devicefarm
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.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
Eq ListOfferingPromotions Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

Read ListOfferingPromotions Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

Show ListOfferingPromotions Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

Generic ListOfferingPromotions Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

Associated Types

type Rep ListOfferingPromotions :: Type -> Type #

NFData ListOfferingPromotions Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

Methods

rnf :: ListOfferingPromotions -> () #

Hashable ListOfferingPromotions Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

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

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

type Rep ListOfferingPromotions Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

type Rep ListOfferingPromotions = D1 ('MetaData "ListOfferingPromotions" "Amazonka.DeviceFarm.ListOfferingPromotions" "libZSservicesZSamazonka-devicefarmZSamazonka-devicefarm" 'False) (C1 ('MetaCons "ListOfferingPromotions'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))
type AWSResponse ListOfferingPromotions Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

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:

$sel:nextToken: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
Eq ListOfferingPromotionsResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

Read ListOfferingPromotionsResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

Show ListOfferingPromotionsResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

Generic ListOfferingPromotionsResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.ListOfferingPromotions

Associated Types

type Rep ListOfferingPromotionsResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-devicefarmZSamazonka-devicefarm" '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:

$sel:nextToken: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.