2020/08/10 - AWS Savings Plans - 2 updated api methods
Changes Update savingsplans client to latest version
{'searchResults': {'serviceCode': {'AmazonEKS'}}}
Describes the specified Savings Plans rates.
See also: AWS API Documentation
Request Syntax
client.describe_savings_plan_rates( savingsPlanId='string', filters=[ { 'name': 'region'|'instanceType'|'productDescription'|'tenancy'|'productType'|'serviceCode'|'usageType'|'operation', 'values': [ 'string', ] }, ], nextToken='string', maxResults=123 )
string
[REQUIRED]
The ID of the Savings Plan.
list
The filters.
(dict) --
Information about a filter.
name (string) --
The filter name.
values (list) --
The filter values.
(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.
dict
Response Syntax
{ 'savingsPlanId': 'string', 'searchResults': [ { 'rate': 'string', 'currency': 'CNY'|'USD', 'unit': 'Hrs'|'Lambda-GB-Second'|'Request', 'productType': 'EC2'|'Fargate'|'Lambda', 'serviceCode': 'AmazonEC2'|'AmazonECS'|'AmazonEKS'|'AWSLambda', 'usageType': 'string', 'operation': 'string', 'properties': [ { 'name': 'region'|'instanceType'|'instanceFamily'|'productDescription'|'tenancy', 'value': 'string' }, ] }, ], 'nextToken': 'string' }
Response Structure
(dict) --
savingsPlanId (string) --
The ID of the Savings Plan.
searchResults (list) --
Information about the Savings Plans rates.
(dict) --
Information about a Savings Plan rate.
rate (string) --
The rate.
currency (string) --
The currency.
unit (string) --
The unit.
productType (string) --
The product type.
serviceCode (string) --
The service.
usageType (string) --
The usage details of the line item in the billing report.
operation (string) --
The specific AWS operation for the line item in the billing report.
properties (list) --
The properties.
(dict) --
Information about a property.
name (string) --
The property name.
value (string) --
The property value.
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.
{'serviceCodes': {'AmazonEKS'}}Response
{'searchResults': {'serviceCode': {'AmazonEKS'}}}
Describes the specified Savings Plans offering rates.
See also: AWS API Documentation
Request Syntax
client.describe_savings_plans_offering_rates( savingsPlanOfferingIds=[ 'string', ], savingsPlanPaymentOptions=[ 'All Upfront'|'Partial Upfront'|'No Upfront', ], savingsPlanTypes=[ 'Compute'|'EC2Instance', ], products=[ 'EC2'|'Fargate'|'Lambda', ], serviceCodes=[ 'AmazonEC2'|'AmazonECS'|'AmazonEKS'|'AWSLambda', ], usageTypes=[ 'string', ], operations=[ 'string', ], filters=[ { 'name': 'region'|'instanceFamily'|'instanceType'|'productDescription'|'tenancy'|'productId', 'values': [ 'string', ] }, ], nextToken='string', maxResults=123 )
list
The IDs of the offerings.
(string) --
list
The payment options.
(string) --
list
The plan types.
(string) --
list
The AWS products.
(string) --
list
The services.
(string) --
list
The usage details of the line item in the billing report.
(string) --
list
The specific AWS operation for the line item in the billing report.
(string) --
list
The filters.
(dict) --
Information about a filter.
name (string) --
The filter name.
values (list) --
The filter values.
(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.
dict
Response Syntax
{ 'searchResults': [ { 'savingsPlanOffering': { 'offeringId': 'string', 'paymentOption': 'All Upfront'|'Partial Upfront'|'No Upfront', 'planType': 'Compute'|'EC2Instance', 'durationSeconds': 123, 'currency': 'CNY'|'USD', 'planDescription': 'string' }, 'rate': 'string', 'unit': 'Hrs'|'Lambda-GB-Second'|'Request', 'productType': 'EC2'|'Fargate'|'Lambda', 'serviceCode': 'AmazonEC2'|'AmazonECS'|'AmazonEKS'|'AWSLambda', 'usageType': 'string', 'operation': 'string', 'properties': [ { 'name': 'string', 'value': 'string' }, ] }, ], 'nextToken': 'string' }
Response Structure
(dict) --
searchResults (list) --
Information about the Savings Plans offering rates.
(dict) --
Information about a Savings Plan offering rate.
savingsPlanOffering (dict) --
The Savings Plan offering.
offeringId (string) --
The ID of the offering.
paymentOption (string) --
The payment option.
planType (string) --
The plan type.
durationSeconds (integer) --
The duration, in seconds.
currency (string) --
The currency.
planDescription (string) --
The description.
rate (string) --
The Savings Plan rate.
unit (string) --
The unit.
productType (string) --
The product type.
serviceCode (string) --
The service.
usageType (string) --
The usage details of the line item in the billing report.
operation (string) --
The specific AWS operation for the line item in the billing report.
properties (list) --
The properties.
(dict) --
Information about a property.
name (string) --
The property name.
value (string) --
The property value.
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.