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

Description

Submits a request to purchase an offering. If you already have an active reservation, you can't purchase another offering.

Synopsis

Creating a Request

data PurchaseOffering Source #

A request to purchase a offering.

See: newPurchaseOffering smart constructor.

Constructors

PurchaseOffering' 

Fields

  • offeringArn :: Text

    The Amazon Resource Name (ARN) of the offering.

  • start :: Text

    The date and time that you want the reservation to begin, in Coordinated Universal Time (UTC). You can specify any date and time between 12:00am on the first day of the current month to the current time on today's date, inclusive. Specify the start in a 24-hour notation. Use the following format: YYYY-MM-DDTHH:mm:SSZ, where T and Z are literal characters. For example, to specify 11:30pm on March 5, 2020, enter 2020-03-05T23:30:00Z.

  • reservationName :: Text

    The name that you want to use for the reservation.

Instances

Instances details
Eq PurchaseOffering Source # 
Instance details

Defined in Amazonka.MediaConnect.PurchaseOffering

Read PurchaseOffering Source # 
Instance details

Defined in Amazonka.MediaConnect.PurchaseOffering

Show PurchaseOffering Source # 
Instance details

Defined in Amazonka.MediaConnect.PurchaseOffering

Generic PurchaseOffering Source # 
Instance details

Defined in Amazonka.MediaConnect.PurchaseOffering

Associated Types

type Rep PurchaseOffering :: Type -> Type #

NFData PurchaseOffering Source # 
Instance details

Defined in Amazonka.MediaConnect.PurchaseOffering

Methods

rnf :: PurchaseOffering -> () #

Hashable PurchaseOffering Source # 
Instance details

Defined in Amazonka.MediaConnect.PurchaseOffering

ToJSON PurchaseOffering Source # 
Instance details

Defined in Amazonka.MediaConnect.PurchaseOffering

AWSRequest PurchaseOffering Source # 
Instance details

Defined in Amazonka.MediaConnect.PurchaseOffering

Associated Types

type AWSResponse PurchaseOffering #

ToHeaders PurchaseOffering Source # 
Instance details

Defined in Amazonka.MediaConnect.PurchaseOffering

ToPath PurchaseOffering Source # 
Instance details

Defined in Amazonka.MediaConnect.PurchaseOffering

ToQuery PurchaseOffering Source # 
Instance details

Defined in Amazonka.MediaConnect.PurchaseOffering

type Rep PurchaseOffering Source # 
Instance details

Defined in Amazonka.MediaConnect.PurchaseOffering

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

Defined in Amazonka.MediaConnect.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:offeringArn:PurchaseOffering', purchaseOffering_offeringArn - The Amazon Resource Name (ARN) of the offering.

$sel:start:PurchaseOffering', purchaseOffering_start - The date and time that you want the reservation to begin, in Coordinated Universal Time (UTC). You can specify any date and time between 12:00am on the first day of the current month to the current time on today's date, inclusive. Specify the start in a 24-hour notation. Use the following format: YYYY-MM-DDTHH:mm:SSZ, where T and Z are literal characters. For example, to specify 11:30pm on March 5, 2020, enter 2020-03-05T23:30:00Z.

$sel:reservationName:PurchaseOffering', purchaseOffering_reservationName - The name that you want to use for the reservation.

Request Lenses

purchaseOffering_offeringArn :: Lens' PurchaseOffering Text Source #

The Amazon Resource Name (ARN) of the offering.

purchaseOffering_start :: Lens' PurchaseOffering Text Source #

The date and time that you want the reservation to begin, in Coordinated Universal Time (UTC). You can specify any date and time between 12:00am on the first day of the current month to the current time on today's date, inclusive. Specify the start in a 24-hour notation. Use the following format: YYYY-MM-DDTHH:mm:SSZ, where T and Z are literal characters. For example, to specify 11:30pm on March 5, 2020, enter 2020-03-05T23:30:00Z.

purchaseOffering_reservationName :: Lens' PurchaseOffering Text Source #

The name that you want to use for the reservation.

Destructuring the Response

data PurchaseOfferingResponse Source #

See: newPurchaseOfferingResponse smart constructor.

Constructors

PurchaseOfferingResponse' 

Fields

Instances

Instances details
Eq PurchaseOfferingResponse Source # 
Instance details

Defined in Amazonka.MediaConnect.PurchaseOffering

Read PurchaseOfferingResponse Source # 
Instance details

Defined in Amazonka.MediaConnect.PurchaseOffering

Show PurchaseOfferingResponse Source # 
Instance details

Defined in Amazonka.MediaConnect.PurchaseOffering

Generic PurchaseOfferingResponse Source # 
Instance details

Defined in Amazonka.MediaConnect.PurchaseOffering

Associated Types

type Rep PurchaseOfferingResponse :: Type -> Type #

NFData PurchaseOfferingResponse Source # 
Instance details

Defined in Amazonka.MediaConnect.PurchaseOffering

type Rep PurchaseOfferingResponse Source # 
Instance details

Defined in Amazonka.MediaConnect.PurchaseOffering

type Rep PurchaseOfferingResponse = D1 ('MetaData "PurchaseOfferingResponse" "Amazonka.MediaConnect.PurchaseOffering" "libZSservicesZSamazonka-mediaconnectZSamazonka-mediaconnect" '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