libZSservicesZSamazonka-medialiveZSamazonka-medialive
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.MediaLive.PurchaseOffering

Description

Purchase an offering and create a reservation.

Synopsis

Creating a Request

data PurchaseOffering' Source #

Placeholder documentation for PurchaseOfferingRequest

See: newPurchaseOffering' smart constructor.

Constructors

PurchaseOffering'' 

Fields

  • requestId :: Maybe Text

    Unique request ID to be specified. This is needed to prevent retries from creating multiple resources.

  • start :: Maybe Text

    Requested reservation start time (UTC) in ISO-8601 format. The specified time must be between the first day of the current month and one year from now. If no value is given, the default is now.

  • name :: Maybe Text

    Name for the new reservation

  • tags :: Maybe (HashMap Text Text)

    A collection of key-value pairs

  • offeringId :: Text

    Offering to purchase, e.g. '87654321'

  • count :: Natural

    Number of resources

Instances

Instances details
Eq PurchaseOffering' Source # 
Instance details

Defined in Amazonka.MediaLive.PurchaseOffering

Read PurchaseOffering' Source # 
Instance details

Defined in Amazonka.MediaLive.PurchaseOffering

Show PurchaseOffering' Source # 
Instance details

Defined in Amazonka.MediaLive.PurchaseOffering

Generic PurchaseOffering' Source # 
Instance details

Defined in Amazonka.MediaLive.PurchaseOffering

Associated Types

type Rep PurchaseOffering' :: Type -> Type #

NFData PurchaseOffering' Source # 
Instance details

Defined in Amazonka.MediaLive.PurchaseOffering

Methods

rnf :: PurchaseOffering' -> () #

Hashable PurchaseOffering' Source # 
Instance details

Defined in Amazonka.MediaLive.PurchaseOffering

ToJSON PurchaseOffering' Source # 
Instance details

Defined in Amazonka.MediaLive.PurchaseOffering

AWSRequest PurchaseOffering' Source # 
Instance details

Defined in Amazonka.MediaLive.PurchaseOffering

Associated Types

type AWSResponse PurchaseOffering' #

ToHeaders PurchaseOffering' Source # 
Instance details

Defined in Amazonka.MediaLive.PurchaseOffering

ToPath PurchaseOffering' Source # 
Instance details

Defined in Amazonka.MediaLive.PurchaseOffering

ToQuery PurchaseOffering' Source # 
Instance details

Defined in Amazonka.MediaLive.PurchaseOffering

type Rep PurchaseOffering' Source # 
Instance details

Defined in Amazonka.MediaLive.PurchaseOffering

type Rep PurchaseOffering' = D1 ('MetaData "PurchaseOffering'" "Amazonka.MediaLive.PurchaseOffering" "libZSservicesZSamazonka-medialiveZSamazonka-medialive" 'False) (C1 ('MetaCons "PurchaseOffering''" 'PrefixI 'True) ((S1 ('MetaSel ('Just "requestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "start") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "offeringId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural)))))
type AWSResponse PurchaseOffering' Source # 
Instance details

Defined in Amazonka.MediaLive.PurchaseOffering

newPurchaseOffering' Source #

Create a value of PurchaseOffering' 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:requestId:PurchaseOffering'', purchaseOffering'_requestId - Unique request ID to be specified. This is needed to prevent retries from creating multiple resources.

$sel:start:PurchaseOffering'', purchaseOffering'_start - Requested reservation start time (UTC) in ISO-8601 format. The specified time must be between the first day of the current month and one year from now. If no value is given, the default is now.

$sel:name:PurchaseOffering'', purchaseOffering'_name - Name for the new reservation

$sel:tags:PurchaseOffering'', purchaseOffering'_tags - A collection of key-value pairs

$sel:offeringId:PurchaseOffering'', purchaseOffering'_offeringId - Offering to purchase, e.g. '87654321'

$sel:count:PurchaseOffering'', purchaseOffering'_count - Number of resources

Request Lenses

purchaseOffering'_requestId :: Lens' PurchaseOffering' (Maybe Text) Source #

Unique request ID to be specified. This is needed to prevent retries from creating multiple resources.

purchaseOffering'_start :: Lens' PurchaseOffering' (Maybe Text) Source #

Requested reservation start time (UTC) in ISO-8601 format. The specified time must be between the first day of the current month and one year from now. If no value is given, the default is now.

purchaseOffering'_offeringId :: Lens' PurchaseOffering' Text Source #

Offering to purchase, e.g. '87654321'

Destructuring the Response

data PurchaseOfferingResponse Source #

Placeholder documentation for PurchaseOfferingResponse

See: newPurchaseOfferingResponse smart constructor.

Constructors

PurchaseOfferingResponse' 

Fields

Instances

Instances details
Eq PurchaseOfferingResponse Source # 
Instance details

Defined in Amazonka.MediaLive.PurchaseOffering

Read PurchaseOfferingResponse Source # 
Instance details

Defined in Amazonka.MediaLive.PurchaseOffering

Show PurchaseOfferingResponse Source # 
Instance details

Defined in Amazonka.MediaLive.PurchaseOffering

Generic PurchaseOfferingResponse Source # 
Instance details

Defined in Amazonka.MediaLive.PurchaseOffering

Associated Types

type Rep PurchaseOfferingResponse :: Type -> Type #

NFData PurchaseOfferingResponse Source # 
Instance details

Defined in Amazonka.MediaLive.PurchaseOffering

type Rep PurchaseOfferingResponse Source # 
Instance details

Defined in Amazonka.MediaLive.PurchaseOffering

type Rep PurchaseOfferingResponse = D1 ('MetaData "PurchaseOfferingResponse" "Amazonka.MediaLive.PurchaseOffering" "libZSservicesZSamazonka-medialiveZSamazonka-medialive" 'False) (C1 ('MetaCons "PurchaseOfferingResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "reservation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Reservation)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newPurchaseOfferingResponse Source #

Create a value of PurchaseOfferingResponse 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:reservation:PurchaseOfferingResponse', purchaseOfferingResponse_reservation - Undocumented member.

$sel:httpStatus:PurchaseOfferingResponse', purchaseOfferingResponse_httpStatus - The response's http status code.

Response Lenses