MediaLive.Client.
purchase_offering
(**kwargs)¶Purchase an offering and create a reservation.
See also: AWS API Documentation
Request Syntax
response = client.purchase_offering(
Count=123,
Name='string',
OfferingId='string',
RenewalSettings={
'AutomaticRenewal': 'DISABLED'|'ENABLED'|'UNAVAILABLE',
'RenewalCount': 123
},
RequestId='string',
Start='string',
Tags={
'string': 'string'
}
)
Renewal settings for the reservation
A collection of key-value pairs
dict
Response Syntax
{
'Reservation': {
'Arn': 'string',
'Count': 123,
'CurrencyCode': 'string',
'Duration': 123,
'DurationUnits': 'MONTHS',
'End': 'string',
'FixedPrice': 123.0,
'Name': 'string',
'OfferingDescription': 'string',
'OfferingId': 'string',
'OfferingType': 'NO_UPFRONT',
'Region': 'string',
'RenewalSettings': {
'AutomaticRenewal': 'DISABLED'|'ENABLED'|'UNAVAILABLE',
'RenewalCount': 123
},
'ReservationId': 'string',
'ResourceSpecification': {
'ChannelClass': 'STANDARD'|'SINGLE_PIPELINE',
'Codec': 'MPEG2'|'AVC'|'HEVC'|'AUDIO'|'LINK',
'MaximumBitrate': 'MAX_10_MBPS'|'MAX_20_MBPS'|'MAX_50_MBPS',
'MaximumFramerate': 'MAX_30_FPS'|'MAX_60_FPS',
'Resolution': 'SD'|'HD'|'FHD'|'UHD',
'ResourceType': 'INPUT'|'OUTPUT'|'MULTIPLEX'|'CHANNEL',
'SpecialFeature': 'ADVANCED_AUDIO'|'AUDIO_NORMALIZATION'|'MGHD'|'MGUHD',
'VideoQuality': 'STANDARD'|'ENHANCED'|'PREMIUM'
},
'Start': 'string',
'State': 'ACTIVE'|'EXPIRED'|'CANCELED'|'DELETED',
'Tags': {
'string': 'string'
},
'UsagePrice': 123.0
}
}
Response Structure
Exceptions
MediaLive.Client.exceptions.BadRequestException
MediaLive.Client.exceptions.InternalServerErrorException
MediaLive.Client.exceptions.ForbiddenException
MediaLive.Client.exceptions.BadGatewayException
MediaLive.Client.exceptions.NotFoundException
MediaLive.Client.exceptions.GatewayTimeoutException
MediaLive.Client.exceptions.TooManyRequestsException
MediaLive.Client.exceptions.ConflictException