2020/09/24 - AWS Savings Plans - 1 new 2 updated api methods
Changes Introducing Queued SavingsPlans that will enable customers to queue their purchase request of Savings Plans for future dates.
Deletes the queued purchase for the specified Savings Plan.
See also: AWS API Documentation
Request Syntax
client.delete_queued_savings_plan( savingsPlanId='string' )
string
[REQUIRED]
The ID of the Savings Plan.
dict
Response Syntax
{}
Response Structure
(dict) --
{'purchaseTime': 'timestamp'}
Creates a Savings Plan.
See also: AWS API Documentation
Request Syntax
client.create_savings_plan( savingsPlanOfferingId='string', commitment='string', upfrontPaymentAmount='string', purchaseTime=datetime(2015, 1, 1), clientToken='string', tags={ 'string': 'string' } )
string
[REQUIRED]
The ID of the offering.
string
[REQUIRED]
The hourly commitment, in USD. This is a value between 0.001 and 1 million. You cannot specify more than three digits after the decimal point.
string
The up-front payment amount. This is a whole number between 50 and 99 percent of the total value of the Savings Plan. This parameter is supported only if the payment option is Partial Upfront .
datetime
The time at which to purchase the Savings Plan, in UTC format (YYYY-MM-DDTHH:MM:SSZ).
string
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
This field is autopopulated if not provided.
dict
One or more tags.
(string) --
(string) --
dict
Response Syntax
{ 'savingsPlanId': 'string' }
Response Structure
(dict) --
savingsPlanId (string) --
The ID of the Savings Plan.
{'states': {'queued', 'queued-deleted'}}Response
{'savingsPlans': {'state': {'queued', 'queued-deleted'}}}
Describes the specified Savings Plans.
See also: AWS API Documentation
Request Syntax
client.describe_savings_plans( savingsPlanArns=[ 'string', ], savingsPlanIds=[ 'string', ], nextToken='string', maxResults=123, states=[ 'payment-pending'|'payment-failed'|'active'|'retired'|'queued'|'queued-deleted', ], filters=[ { 'name': 'region'|'ec2-instance-family'|'commitment'|'upfront'|'term'|'savings-plan-type'|'payment-option'|'start'|'end', 'values': [ 'string', ] }, ] )
list
The Amazon Resource Names (ARN) of the Savings Plans.
(string) --
list
The IDs of the Savings Plans.
(string) --
string
The token for the next page of results.
integer
The maximum number of results to return with a single call. To retrieve additional results, make another call with the returned token value.
list
The states.
(string) --
list
The filters.
(dict) --
Information about a filter.
name (string) --
The filter name.
values (list) --
The filter value.
(string) --
dict
Response Syntax
{ 'savingsPlans': [ { 'offeringId': 'string', 'savingsPlanId': 'string', 'savingsPlanArn': 'string', 'description': 'string', 'start': 'string', 'end': 'string', 'state': 'payment-pending'|'payment-failed'|'active'|'retired'|'queued'|'queued-deleted', 'region': 'string', 'ec2InstanceFamily': 'string', 'savingsPlanType': 'Compute'|'EC2Instance', 'paymentOption': 'All Upfront'|'Partial Upfront'|'No Upfront', 'productTypes': [ 'EC2'|'Fargate'|'Lambda', ], 'currency': 'CNY'|'USD', 'commitment': 'string', 'upfrontPaymentAmount': 'string', 'recurringPaymentAmount': 'string', 'termDurationInSeconds': 123, 'tags': { 'string': 'string' } }, ], 'nextToken': 'string' }
Response Structure
(dict) --
savingsPlans (list) --
Information about the Savings Plans.
(dict) --
Information about a Savings Plan.
offeringId (string) --
The ID of the offering.
savingsPlanId (string) --
The ID of the Savings Plan.
savingsPlanArn (string) --
The Amazon Resource Name (ARN) of the Savings Plan.
description (string) --
The description.
start (string) --
The start time.
end (string) --
The end time.
state (string) --
The state.
region (string) --
The AWS Region.
ec2InstanceFamily (string) --
The EC2 instance family.
savingsPlanType (string) --
The plan type.
paymentOption (string) --
The payment option.
productTypes (list) --
The product types.
(string) --
currency (string) --
The currency.
commitment (string) --
The hourly commitment, in USD.
upfrontPaymentAmount (string) --
The up-front payment amount.
recurringPaymentAmount (string) --
The recurring payment amount.
termDurationInSeconds (integer) --
The duration of the term, in seconds.
tags (dict) --
One or more tags.
(string) --
(string) --
nextToken (string) --
The token to use to retrieve the next page of results. This value is null when there are no more results to return.