Skip to content

Commit

Permalink
Updates SDK to v2.489.0
Browse files Browse the repository at this point in the history
  • Loading branch information
awstools committed Jul 8, 2019
1 parent 01424ab commit c86437f
Show file tree
Hide file tree
Showing 12 changed files with 293 additions and 101 deletions.
7 changes: 7 additions & 0 deletions .changes/2.489.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"type": "feature",
"category": "CostExplorer",
"description": "This release introduces a new operation called GetUsageForecast, which allows you to programmatically access AWS Cost Explorer's forecasting engine on usage data (running hours, data transfer, etc)."
}
]
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Changelog for AWS SDK for JavaScript
<!--LATEST=2.488.0-->
<!--LATEST=2.489.0-->
<!--ENTRYINSERT-->

## 2.489.0
* feature: CostExplorer: This release introduces a new operation called GetUsageForecast, which allows you to programmatically access AWS Cost Explorer's forecasting engine on usage data (running hours, data transfer, etc).

## 2.488.0
* feature: EC2: AssignPrivateIpAddresses response includes two new fields: AssignedPrivateIpAddresses, NetworkInterfaceId
* feature: RDS: This release supports Cross-Account Cloning for Amazon Aurora clusters.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ version.
To use the SDK in the browser, simply add the following script tag to your
HTML pages:

<script src="https://sdk.amazonaws.com/js/aws-sdk-2.488.0.min.js"></script>
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.489.0.min.js"></script>

You can also build a custom browser SDK with your specified set of AWS services.
This can allow you to reduce the SDK's size, specify different API versions of
Expand Down
61 changes: 49 additions & 12 deletions apis/ce-2017-10-25.min.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,18 +108,7 @@
"shape": "So"
},
"ForecastResultsByTime": {
"type": "list",
"member": {
"type": "structure",
"members": {
"TimePeriod": {
"shape": "S2"
},
"MeanValue": {},
"PredictionIntervalLowerBound": {},
"PredictionIntervalUpperBound": {}
}
}
"shape": "S10"
}
}
}
Expand Down Expand Up @@ -502,6 +491,40 @@
}
}
}
},
"GetUsageForecast": {
"input": {
"type": "structure",
"required": [
"TimePeriod",
"Metric",
"Granularity"
],
"members": {
"TimePeriod": {
"shape": "S2"
},
"Metric": {},
"Granularity": {},
"Filter": {
"shape": "S5"
},
"PredictionIntervalLevel": {
"type": "integer"
}
}
},
"output": {
"type": "structure",
"members": {
"Total": {
"shape": "So"
},
"ForecastResultsByTime": {
"shape": "S10"
}
}
}
}
},
"shapes": {
Expand Down Expand Up @@ -586,6 +609,20 @@
"Unit": {}
}
},
"S10": {
"type": "list",
"member": {
"type": "structure",
"members": {
"TimePeriod": {
"shape": "S2"
},
"MeanValue": {},
"PredictionIntervalLowerBound": {},
"PredictionIntervalUpperBound": {}
}
}
},
"S19": {
"type": "map",
"key": {},
Expand Down
70 changes: 69 additions & 1 deletion apis/ce-2017-10-25.normal.json
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,31 @@
}
],
"documentation": "<p>Queries for available tag keys and tag values for a specified period. You can search the tag values for an arbitrary string. </p>"
},
"GetUsageForecast": {
"name": "GetUsageForecast",
"http": {
"method": "POST",
"requestUri": "/"
},
"input": {
"shape": "GetUsageForecastRequest"
},
"output": {
"shape": "GetUsageForecastResponse"
},
"errors": [
{
"shape": "LimitExceededException"
},
{
"shape": "DataUnavailableException"
},
{
"shape": "UnresolvableUsageUnitException"
}
],
"documentation": "<p>Retrieves a forecast for how much Amazon Web Services predicts that you will use over the forecast time period that you select, based on your past usage. </p>"
}
},
"shapes": {
Expand Down Expand Up @@ -661,7 +686,7 @@
},
"Metric": {
"shape": "Metric",
"documentation": "<p>Which metric Cost Explorer uses to create your forecast. For more information about blended and unblended rates, see <a href=\"https://aws.amazon.com/premiumsupport/knowledge-center/blended-rates-intro/\">Why does the \"blended\" annotation appear on some line items in my bill?</a>. </p> <p>Valid values for a <code>GetCostForecast</code> call are the following:</p> <ul> <li> <p>AmortizedCost</p> </li> <li> <p>BlendedCost</p> </li> <li> <p>NetAmortizedCost</p> </li> <li> <p>NetUnblendedCost</p> </li> <li> <p>UnblendedCost</p> </li> </ul>"
"documentation": "<p>Which metric Cost Explorer uses to create your forecast. For more information about blended and unblended rates, see <a href=\"https://aws.amazon.com/premiumsupport/knowledge-center/blended-rates-intro/\">Why does the \"blended\" annotation appear on some line items in my bill?</a>. </p> <p>Valid values for a <code>GetCostForecast</code> call are the following:</p> <ul> <li> <p>AMORTIZED_COST</p> </li> <li> <p>BLENDED_COST</p> </li> <li> <p>NET_AMORTIZED_COST</p> </li> <li> <p>NET_UNBLENDED_COST</p> </li> <li> <p>UNBLENDED_COST</p> </li> </ul>"
},
"Granularity": {
"shape": "Granularity",
Expand Down Expand Up @@ -957,6 +982,49 @@
}
}
},
"GetUsageForecastRequest": {
"type": "structure",
"required": [
"TimePeriod",
"Metric",
"Granularity"
],
"members": {
"TimePeriod": {
"shape": "DateInterval",
"documentation": "<p>The start and end dates of the period that you want to retrieve usage forecast for. The start date is inclusive, but the end date is exclusive. For example, if <code>start</code> is <code>2017-01-01</code> and <code>end</code> is <code>2017-05-01</code>, then the cost and usage data is retrieved from <code>2017-01-01</code> up to and including <code>2017-04-30</code> but not including <code>2017-05-01</code>.</p>"
},
"Metric": {
"shape": "Metric",
"documentation": "<p>Which metric Cost Explorer uses to create your forecast.</p> <p>Valid values for a <code>GetUsageForecast</code> call are the following:</p> <ul> <li> <p>USAGE_QUANTITY</p> </li> <li> <p>NORMALIZED_USAGE_AMOUNT</p> </li> </ul>"
},
"Granularity": {
"shape": "Granularity",
"documentation": "<p>How granular you want the forecast to be. You can get 3 months of <code>DAILY</code> forecasts or 12 months of <code>MONTHLY</code> forecasts.</p> <p>The <code>GetUsageForecast</code> operation supports only <code>DAILY</code> and <code>MONTHLY</code> granularities.</p>"
},
"Filter": {
"shape": "Expression",
"documentation": "<p>The filters that you want to use to filter your forecast. Cost Explorer API supports all of the Cost Explorer filters.</p>"
},
"PredictionIntervalLevel": {
"shape": "PredictionIntervalLevel",
"documentation": "<p>Cost Explorer always returns the mean forecast as a single point. You can request a prediction interval around the mean by specifying a confidence level. The higher the confidence level, the more confident Cost Explorer is about the actual value falling in the prediction interval. Higher confidence levels result in wider prediction intervals.</p>"
}
}
},
"GetUsageForecastResponse": {
"type": "structure",
"members": {
"Total": {
"shape": "MetricValue",
"documentation": "<p>How much you're forecasted to use over the forecast period.</p>"
},
"ForecastResultsByTime": {
"shape": "ForecastResultsByTime",
"documentation": "<p>The forecasts for your query, in order. For <code>DAILY</code> forecasts, this is a list of days. For <code>MONTHLY</code> forecasts, this is a list of months.</p>"
}
}
},
"Granularity": {
"type": "string",
"enum": [
Expand Down
42 changes: 41 additions & 1 deletion clients/costexplorer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ declare class CostExplorer extends Service {
* Queries for available tag keys and tag values for a specified period. You can search the tag values for an arbitrary string.
*/
getTags(callback?: (err: AWSError, data: CostExplorer.Types.GetTagsResponse) => void): Request<CostExplorer.Types.GetTagsResponse, AWSError>;
/**
* Retrieves a forecast for how much Amazon Web Services predicts that you will use over the forecast time period that you select, based on your past usage.
*/
getUsageForecast(params: CostExplorer.Types.GetUsageForecastRequest, callback?: (err: AWSError, data: CostExplorer.Types.GetUsageForecastResponse) => void): Request<CostExplorer.Types.GetUsageForecastResponse, AWSError>;
/**
* Retrieves a forecast for how much Amazon Web Services predicts that you will use over the forecast time period that you select, based on your past usage.
*/
getUsageForecast(callback?: (err: AWSError, data: CostExplorer.Types.GetUsageForecastResponse) => void): Request<CostExplorer.Types.GetUsageForecastResponse, AWSError>;
}
declare namespace CostExplorer {
export type AccountScope = "PAYER"|"LINKED"|string;
Expand Down Expand Up @@ -361,7 +369,7 @@ declare namespace CostExplorer {
*/
TimePeriod: DateInterval;
/**
* Which metric Cost Explorer uses to create your forecast. For more information about blended and unblended rates, see Why does the "blended" annotation appear on some line items in my bill?. Valid values for a GetCostForecast call are the following: AmortizedCost BlendedCost NetAmortizedCost NetUnblendedCost UnblendedCost
* Which metric Cost Explorer uses to create your forecast. For more information about blended and unblended rates, see Why does the "blended" annotation appear on some line items in my bill?. Valid values for a GetCostForecast call are the following: AMORTIZED_COST BLENDED_COST NET_AMORTIZED_COST NET_UNBLENDED_COST UNBLENDED_COST
*/
Metric: Metric;
/**
Expand Down Expand Up @@ -591,6 +599,38 @@ declare namespace CostExplorer {
*/
TotalSize: PageSize;
}
export interface GetUsageForecastRequest {
/**
* The start and end dates of the period that you want to retrieve usage forecast for. The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.
*/
TimePeriod: DateInterval;
/**
* Which metric Cost Explorer uses to create your forecast. Valid values for a GetUsageForecast call are the following: USAGE_QUANTITY NORMALIZED_USAGE_AMOUNT
*/
Metric: Metric;
/**
* How granular you want the forecast to be. You can get 3 months of DAILY forecasts or 12 months of MONTHLY forecasts. The GetUsageForecast operation supports only DAILY and MONTHLY granularities.
*/
Granularity: Granularity;
/**
* The filters that you want to use to filter your forecast. Cost Explorer API supports all of the Cost Explorer filters.
*/
Filter?: Expression;
/**
* Cost Explorer always returns the mean forecast as a single point. You can request a prediction interval around the mean by specifying a confidence level. The higher the confidence level, the more confident Cost Explorer is about the actual value falling in the prediction interval. Higher confidence levels result in wider prediction intervals.
*/
PredictionIntervalLevel?: PredictionIntervalLevel;
}
export interface GetUsageForecastResponse {
/**
* How much you're forecasted to use over the forecast period.
*/
Total?: MetricValue;
/**
* The forecasts for your query, in order. For DAILY forecasts, this is a list of days. For MONTHLY forecasts, this is a list of months.
*/
ForecastResultsByTime?: ForecastResultsByTime;
}
export type Granularity = "DAILY"|"MONTHLY"|"HOURLY"|string;
export interface Group {
/**
Expand Down
2 changes: 1 addition & 1 deletion dist/aws-sdk-core-react-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ return /******/ (function(modules) { // webpackBootstrap
/**
* @constant
*/
VERSION: '2.488.0',
VERSION: '2.489.0',

/**
* @api private
Expand Down
Loading

0 comments on commit c86437f

Please sign in to comment.