aws-sdk-costexplorer 1.12.0 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-costexplorer.rb +1 -1
- data/lib/aws-sdk-costexplorer/client.rb +126 -1
- data/lib/aws-sdk-costexplorer/client_api.rb +35 -0
- data/lib/aws-sdk-costexplorer/types.rb +139 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb2ad7048395e470aba1a6f2214d17230019a07b
|
4
|
+
data.tar.gz: 0fba670ecb4e492e92132d908d0e03cef07208ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2589fc02bc24f46270f771a5479153050e4eef4dd21ba58a195839bb63095c07e89fe1ba2b3c8f68e4a78f431216176a946edd466b4cdf0d4cf023bb717665d3
|
7
|
+
data.tar.gz: 9e95919dc6f4a670603af07d4ec700a682b9fb9bbd31666d6e34daeb89297b25f9fcc6acf49149f70477435b54791a132f09ed256f2de4c2bc54cac8b529951e
|
data/lib/aws-sdk-costexplorer.rb
CHANGED
@@ -15,6 +15,7 @@ require 'aws-sdk-core/plugins/helpful_socket_errors.rb'
|
|
15
15
|
require 'aws-sdk-core/plugins/retry_errors.rb'
|
16
16
|
require 'aws-sdk-core/plugins/global_configuration.rb'
|
17
17
|
require 'aws-sdk-core/plugins/regional_endpoint.rb'
|
18
|
+
require 'aws-sdk-core/plugins/endpoint_discovery.rb'
|
18
19
|
require 'aws-sdk-core/plugins/response_paging.rb'
|
19
20
|
require 'aws-sdk-core/plugins/stub_responses.rb'
|
20
21
|
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
@@ -45,6 +46,7 @@ module Aws::CostExplorer
|
|
45
46
|
add_plugin(Aws::Plugins::RetryErrors)
|
46
47
|
add_plugin(Aws::Plugins::GlobalConfiguration)
|
47
48
|
add_plugin(Aws::Plugins::RegionalEndpoint)
|
49
|
+
add_plugin(Aws::Plugins::EndpointDiscovery)
|
48
50
|
add_plugin(Aws::Plugins::ResponsePaging)
|
49
51
|
add_plugin(Aws::Plugins::StubResponses)
|
50
52
|
add_plugin(Aws::Plugins::IdempotencyToken)
|
@@ -98,6 +100,10 @@ module Aws::CostExplorer
|
|
98
100
|
#
|
99
101
|
# @option options [String] :access_key_id
|
100
102
|
#
|
103
|
+
# @option options [Boolean] :active_endpoint_cache (false)
|
104
|
+
# When set to `true`, a thread polling for endpoints will be running in
|
105
|
+
# the background every 60 secs (default). Defaults to `false`.
|
106
|
+
#
|
101
107
|
# @option options [Boolean] :client_side_monitoring (false)
|
102
108
|
# When `true`, client-side metrics will be collected for all API requests from
|
103
109
|
# this client.
|
@@ -123,6 +129,21 @@ module Aws::CostExplorer
|
|
123
129
|
# option. You should only configure an `:endpoint` when connecting
|
124
130
|
# to test endpoints. This should be avalid HTTP(S) URI.
|
125
131
|
#
|
132
|
+
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
133
|
+
# Used for the maximum size limit of the LRU cache storing endpoints data
|
134
|
+
# for endpoint discovery enabled operations. Defaults to 1000.
|
135
|
+
#
|
136
|
+
# @option options [Integer] :endpoint_cache_max_threads (10)
|
137
|
+
# Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.
|
138
|
+
#
|
139
|
+
# @option options [Integer] :endpoint_cache_poll_interval (60)
|
140
|
+
# When :endpoint_discovery and :active_endpoint_cache is enabled,
|
141
|
+
# Use this option to config the time interval in seconds for making
|
142
|
+
# requests fetching endpoints information. Defaults to 60 sec.
|
143
|
+
#
|
144
|
+
# @option options [Boolean] :endpoint_discovery (false)
|
145
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
|
146
|
+
#
|
126
147
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
127
148
|
# The log formatter.
|
128
149
|
#
|
@@ -336,6 +357,110 @@ module Aws::CostExplorer
|
|
336
357
|
req.send_request(options)
|
337
358
|
end
|
338
359
|
|
360
|
+
# Retrieves a forecast for how much Amazon Web Services predicts that
|
361
|
+
# you will spend over the forecast time period that you select, based on
|
362
|
+
# your past costs.
|
363
|
+
#
|
364
|
+
# @option params [required, Types::DateInterval] :time_period
|
365
|
+
# The period of time that you want the forecast to cover.
|
366
|
+
#
|
367
|
+
# @option params [required, String] :metric
|
368
|
+
# Which metric Cost Explorer uses to create your forecast. For more
|
369
|
+
# information about blended and unblended rates, see [Why does the
|
370
|
+
# "blended" annotation appear on some line items in my bill?][1].
|
371
|
+
#
|
372
|
+
# Valid values for a `GetCostForecast` call are the following:
|
373
|
+
#
|
374
|
+
# * AmortizedCost
|
375
|
+
#
|
376
|
+
# * BlendedCost
|
377
|
+
#
|
378
|
+
# * NetAmortizedCost
|
379
|
+
#
|
380
|
+
# * NetUnblendedCost
|
381
|
+
#
|
382
|
+
# * UnblendedCost
|
383
|
+
#
|
384
|
+
#
|
385
|
+
#
|
386
|
+
# [1]: https://aws.amazon.com/premiumsupport/knowledge-center/blended-rates-intro/
|
387
|
+
#
|
388
|
+
# @option params [required, String] :granularity
|
389
|
+
# How granular you want the forecast to be. You can get 3 months of
|
390
|
+
# `DAILY` forecasts or 12 months of `MONTHLY` forecasts.
|
391
|
+
#
|
392
|
+
# @option params [Types::Expression] :filter
|
393
|
+
# The filters that you want to use to filter your forecast. Cost
|
394
|
+
# Explorer API supports all of the Cost Explorer filters.
|
395
|
+
#
|
396
|
+
# @option params [Integer] :prediction_interval_level
|
397
|
+
# Cost Explorer always returns the mean forecast as a single point. You
|
398
|
+
# can request a prediction interval around the mean by specifying a
|
399
|
+
# confidence level. The higher the confidence level, the more confident
|
400
|
+
# Cost Explorer is about the actual value falling in the prediction
|
401
|
+
# interval. Higher confidence levels result in wider prediction
|
402
|
+
# intervals.
|
403
|
+
#
|
404
|
+
# @return [Types::GetCostForecastResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
405
|
+
#
|
406
|
+
# * {Types::GetCostForecastResponse#total #total} => Types::MetricValue
|
407
|
+
# * {Types::GetCostForecastResponse#forecast_results_by_time #forecast_results_by_time} => Array<Types::ForecastResult>
|
408
|
+
#
|
409
|
+
# @example Request syntax with placeholder values
|
410
|
+
#
|
411
|
+
# resp = client.get_cost_forecast({
|
412
|
+
# time_period: { # required
|
413
|
+
# start: "YearMonthDay", # required
|
414
|
+
# end: "YearMonthDay", # required
|
415
|
+
# },
|
416
|
+
# metric: "BLENDED_COST", # required, accepts BLENDED_COST, UNBLENDED_COST, AMORTIZED_COST, NET_UNBLENDED_COST, NET_AMORTIZED_COST, USAGE_QUANTITY, NORMALIZED_USAGE_AMOUNT
|
417
|
+
# granularity: "DAILY", # required, accepts DAILY, MONTHLY, HOURLY
|
418
|
+
# filter: {
|
419
|
+
# or: [
|
420
|
+
# {
|
421
|
+
# # recursive Expression
|
422
|
+
# },
|
423
|
+
# ],
|
424
|
+
# and: [
|
425
|
+
# {
|
426
|
+
# # recursive Expression
|
427
|
+
# },
|
428
|
+
# ],
|
429
|
+
# not: {
|
430
|
+
# # recursive Expression
|
431
|
+
# },
|
432
|
+
# dimensions: {
|
433
|
+
# key: "AZ", # accepts AZ, INSTANCE_TYPE, LINKED_ACCOUNT, OPERATION, PURCHASE_TYPE, REGION, SERVICE, USAGE_TYPE, USAGE_TYPE_GROUP, RECORD_TYPE, OPERATING_SYSTEM, TENANCY, SCOPE, PLATFORM, SUBSCRIPTION_ID, LEGAL_ENTITY_NAME, DEPLOYMENT_OPTION, DATABASE_ENGINE, CACHE_ENGINE, INSTANCE_TYPE_FAMILY, BILLING_ENTITY, RESERVATION_ID
|
434
|
+
# values: ["Value"],
|
435
|
+
# },
|
436
|
+
# tags: {
|
437
|
+
# key: "TagKey",
|
438
|
+
# values: ["Value"],
|
439
|
+
# },
|
440
|
+
# },
|
441
|
+
# prediction_interval_level: 1,
|
442
|
+
# })
|
443
|
+
#
|
444
|
+
# @example Response structure
|
445
|
+
#
|
446
|
+
# resp.total.amount #=> String
|
447
|
+
# resp.total.unit #=> String
|
448
|
+
# resp.forecast_results_by_time #=> Array
|
449
|
+
# resp.forecast_results_by_time[0].time_period.start #=> String
|
450
|
+
# resp.forecast_results_by_time[0].time_period.end #=> String
|
451
|
+
# resp.forecast_results_by_time[0].mean_value #=> String
|
452
|
+
# resp.forecast_results_by_time[0].prediction_interval_lower_bound #=> String
|
453
|
+
# resp.forecast_results_by_time[0].prediction_interval_upper_bound #=> String
|
454
|
+
#
|
455
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/GetCostForecast AWS API Documentation
|
456
|
+
#
|
457
|
+
# @overload get_cost_forecast(params = {})
|
458
|
+
# @param [Hash] params ({})
|
459
|
+
def get_cost_forecast(params = {}, options = {})
|
460
|
+
req = build_request(:get_cost_forecast, params)
|
461
|
+
req.send_request(options)
|
462
|
+
end
|
463
|
+
|
339
464
|
# Retrieves all available filter values for a specified filter over a
|
340
465
|
# period of time. You can search the dimension values for an arbitrary
|
341
466
|
# string.
|
@@ -1061,7 +1186,7 @@ module Aws::CostExplorer
|
|
1061
1186
|
params: params,
|
1062
1187
|
config: config)
|
1063
1188
|
context[:gem_name] = 'aws-sdk-costexplorer'
|
1064
|
-
context[:gem_version] = '1.
|
1189
|
+
context[:gem_version] = '1.13.0'
|
1065
1190
|
Seahorse::Client::Request.new(handlers, context)
|
1066
1191
|
end
|
1067
1192
|
|
@@ -39,10 +39,14 @@ module Aws::CostExplorer
|
|
39
39
|
Estimated = Shapes::BooleanShape.new(name: 'Estimated')
|
40
40
|
Expression = Shapes::StructureShape.new(name: 'Expression')
|
41
41
|
Expressions = Shapes::ListShape.new(name: 'Expressions')
|
42
|
+
ForecastResult = Shapes::StructureShape.new(name: 'ForecastResult')
|
43
|
+
ForecastResultsByTime = Shapes::ListShape.new(name: 'ForecastResultsByTime')
|
42
44
|
GenericBoolean = Shapes::BooleanShape.new(name: 'GenericBoolean')
|
43
45
|
GenericString = Shapes::StringShape.new(name: 'GenericString')
|
44
46
|
GetCostAndUsageRequest = Shapes::StructureShape.new(name: 'GetCostAndUsageRequest')
|
45
47
|
GetCostAndUsageResponse = Shapes::StructureShape.new(name: 'GetCostAndUsageResponse')
|
48
|
+
GetCostForecastRequest = Shapes::StructureShape.new(name: 'GetCostForecastRequest')
|
49
|
+
GetCostForecastResponse = Shapes::StructureShape.new(name: 'GetCostForecastResponse')
|
46
50
|
GetDimensionValuesRequest = Shapes::StructureShape.new(name: 'GetDimensionValuesRequest')
|
47
51
|
GetDimensionValuesResponse = Shapes::StructureShape.new(name: 'GetDimensionValuesResponse')
|
48
52
|
GetReservationCoverageRequest = Shapes::StructureShape.new(name: 'GetReservationCoverageRequest')
|
@@ -66,6 +70,7 @@ module Aws::CostExplorer
|
|
66
70
|
Keys = Shapes::ListShape.new(name: 'Keys')
|
67
71
|
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
68
72
|
LookbackPeriodInDays = Shapes::StringShape.new(name: 'LookbackPeriodInDays')
|
73
|
+
Metric = Shapes::StringShape.new(name: 'Metric')
|
69
74
|
MetricAmount = Shapes::StringShape.new(name: 'MetricAmount')
|
70
75
|
MetricName = Shapes::StringShape.new(name: 'MetricName')
|
71
76
|
MetricNames = Shapes::ListShape.new(name: 'MetricNames')
|
@@ -80,6 +85,7 @@ module Aws::CostExplorer
|
|
80
85
|
OnDemandHours = Shapes::StringShape.new(name: 'OnDemandHours')
|
81
86
|
PageSize = Shapes::IntegerShape.new(name: 'PageSize')
|
82
87
|
PaymentOption = Shapes::StringShape.new(name: 'PaymentOption')
|
88
|
+
PredictionIntervalLevel = Shapes::IntegerShape.new(name: 'PredictionIntervalLevel')
|
83
89
|
PurchasedHours = Shapes::StringShape.new(name: 'PurchasedHours')
|
84
90
|
RDSInstanceDetails = Shapes::StructureShape.new(name: 'RDSInstanceDetails')
|
85
91
|
RedshiftInstanceDetails = Shapes::StructureShape.new(name: 'RedshiftInstanceDetails')
|
@@ -188,6 +194,14 @@ module Aws::CostExplorer
|
|
188
194
|
|
189
195
|
Expressions.member = Shapes::ShapeRef.new(shape: Expression)
|
190
196
|
|
197
|
+
ForecastResult.add_member(:time_period, Shapes::ShapeRef.new(shape: DateInterval, location_name: "TimePeriod"))
|
198
|
+
ForecastResult.add_member(:mean_value, Shapes::ShapeRef.new(shape: GenericString, location_name: "MeanValue"))
|
199
|
+
ForecastResult.add_member(:prediction_interval_lower_bound, Shapes::ShapeRef.new(shape: GenericString, location_name: "PredictionIntervalLowerBound"))
|
200
|
+
ForecastResult.add_member(:prediction_interval_upper_bound, Shapes::ShapeRef.new(shape: GenericString, location_name: "PredictionIntervalUpperBound"))
|
201
|
+
ForecastResult.struct_class = Types::ForecastResult
|
202
|
+
|
203
|
+
ForecastResultsByTime.member = Shapes::ShapeRef.new(shape: ForecastResult)
|
204
|
+
|
191
205
|
GetCostAndUsageRequest.add_member(:time_period, Shapes::ShapeRef.new(shape: DateInterval, location_name: "TimePeriod"))
|
192
206
|
GetCostAndUsageRequest.add_member(:granularity, Shapes::ShapeRef.new(shape: Granularity, location_name: "Granularity"))
|
193
207
|
GetCostAndUsageRequest.add_member(:filter, Shapes::ShapeRef.new(shape: Expression, location_name: "Filter"))
|
@@ -201,6 +215,17 @@ module Aws::CostExplorer
|
|
201
215
|
GetCostAndUsageResponse.add_member(:results_by_time, Shapes::ShapeRef.new(shape: ResultsByTime, location_name: "ResultsByTime"))
|
202
216
|
GetCostAndUsageResponse.struct_class = Types::GetCostAndUsageResponse
|
203
217
|
|
218
|
+
GetCostForecastRequest.add_member(:time_period, Shapes::ShapeRef.new(shape: DateInterval, required: true, location_name: "TimePeriod"))
|
219
|
+
GetCostForecastRequest.add_member(:metric, Shapes::ShapeRef.new(shape: Metric, required: true, location_name: "Metric"))
|
220
|
+
GetCostForecastRequest.add_member(:granularity, Shapes::ShapeRef.new(shape: Granularity, required: true, location_name: "Granularity"))
|
221
|
+
GetCostForecastRequest.add_member(:filter, Shapes::ShapeRef.new(shape: Expression, location_name: "Filter"))
|
222
|
+
GetCostForecastRequest.add_member(:prediction_interval_level, Shapes::ShapeRef.new(shape: PredictionIntervalLevel, location_name: "PredictionIntervalLevel"))
|
223
|
+
GetCostForecastRequest.struct_class = Types::GetCostForecastRequest
|
224
|
+
|
225
|
+
GetCostForecastResponse.add_member(:total, Shapes::ShapeRef.new(shape: MetricValue, location_name: "Total"))
|
226
|
+
GetCostForecastResponse.add_member(:forecast_results_by_time, Shapes::ShapeRef.new(shape: ForecastResultsByTime, location_name: "ForecastResultsByTime"))
|
227
|
+
GetCostForecastResponse.struct_class = Types::GetCostForecastResponse
|
228
|
+
|
204
229
|
GetDimensionValuesRequest.add_member(:search_string, Shapes::ShapeRef.new(shape: SearchString, location_name: "SearchString"))
|
205
230
|
GetDimensionValuesRequest.add_member(:time_period, Shapes::ShapeRef.new(shape: DateInterval, required: true, location_name: "TimePeriod"))
|
206
231
|
GetDimensionValuesRequest.add_member(:dimension, Shapes::ShapeRef.new(shape: Dimension, required: true, location_name: "Dimension"))
|
@@ -442,6 +467,16 @@ module Aws::CostExplorer
|
|
442
467
|
o.errors << Shapes::ShapeRef.new(shape: RequestChangedException)
|
443
468
|
end)
|
444
469
|
|
470
|
+
api.add_operation(:get_cost_forecast, Seahorse::Model::Operation.new.tap do |o|
|
471
|
+
o.name = "GetCostForecast"
|
472
|
+
o.http_method = "POST"
|
473
|
+
o.http_request_uri = "/"
|
474
|
+
o.input = Shapes::ShapeRef.new(shape: GetCostForecastRequest)
|
475
|
+
o.output = Shapes::ShapeRef.new(shape: GetCostForecastResponse)
|
476
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
477
|
+
o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException)
|
478
|
+
end)
|
479
|
+
|
445
480
|
api.add_operation(:get_dimension_values, Seahorse::Model::Operation.new.tap do |o|
|
446
481
|
o.name = "GetDimensionValues"
|
447
482
|
o.http_method = "POST"
|
@@ -454,6 +454,34 @@ module Aws::CostExplorer
|
|
454
454
|
include Aws::Structure
|
455
455
|
end
|
456
456
|
|
457
|
+
# The forecast created for your query.
|
458
|
+
#
|
459
|
+
# @!attribute [rw] time_period
|
460
|
+
# The period of time that the forecast covers.
|
461
|
+
# @return [Types::DateInterval]
|
462
|
+
#
|
463
|
+
# @!attribute [rw] mean_value
|
464
|
+
# The mean value of the forecast.
|
465
|
+
# @return [String]
|
466
|
+
#
|
467
|
+
# @!attribute [rw] prediction_interval_lower_bound
|
468
|
+
# The lower limit for the prediction interval.
|
469
|
+
# @return [String]
|
470
|
+
#
|
471
|
+
# @!attribute [rw] prediction_interval_upper_bound
|
472
|
+
# The upper limit for the prediction interval.
|
473
|
+
# @return [String]
|
474
|
+
#
|
475
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/ForecastResult AWS API Documentation
|
476
|
+
#
|
477
|
+
class ForecastResult < Struct.new(
|
478
|
+
:time_period,
|
479
|
+
:mean_value,
|
480
|
+
:prediction_interval_lower_bound,
|
481
|
+
:prediction_interval_upper_bound)
|
482
|
+
include Aws::Structure
|
483
|
+
end
|
484
|
+
|
457
485
|
# @note When making an API call, you may pass GetCostAndUsageRequest
|
458
486
|
# data as a hash:
|
459
487
|
#
|
@@ -602,6 +630,117 @@ module Aws::CostExplorer
|
|
602
630
|
include Aws::Structure
|
603
631
|
end
|
604
632
|
|
633
|
+
# @note When making an API call, you may pass GetCostForecastRequest
|
634
|
+
# data as a hash:
|
635
|
+
#
|
636
|
+
# {
|
637
|
+
# time_period: { # required
|
638
|
+
# start: "YearMonthDay", # required
|
639
|
+
# end: "YearMonthDay", # required
|
640
|
+
# },
|
641
|
+
# metric: "BLENDED_COST", # required, accepts BLENDED_COST, UNBLENDED_COST, AMORTIZED_COST, NET_UNBLENDED_COST, NET_AMORTIZED_COST, USAGE_QUANTITY, NORMALIZED_USAGE_AMOUNT
|
642
|
+
# granularity: "DAILY", # required, accepts DAILY, MONTHLY, HOURLY
|
643
|
+
# filter: {
|
644
|
+
# or: [
|
645
|
+
# {
|
646
|
+
# # recursive Expression
|
647
|
+
# },
|
648
|
+
# ],
|
649
|
+
# and: [
|
650
|
+
# {
|
651
|
+
# # recursive Expression
|
652
|
+
# },
|
653
|
+
# ],
|
654
|
+
# not: {
|
655
|
+
# # recursive Expression
|
656
|
+
# },
|
657
|
+
# dimensions: {
|
658
|
+
# key: "AZ", # accepts AZ, INSTANCE_TYPE, LINKED_ACCOUNT, OPERATION, PURCHASE_TYPE, REGION, SERVICE, USAGE_TYPE, USAGE_TYPE_GROUP, RECORD_TYPE, OPERATING_SYSTEM, TENANCY, SCOPE, PLATFORM, SUBSCRIPTION_ID, LEGAL_ENTITY_NAME, DEPLOYMENT_OPTION, DATABASE_ENGINE, CACHE_ENGINE, INSTANCE_TYPE_FAMILY, BILLING_ENTITY, RESERVATION_ID
|
659
|
+
# values: ["Value"],
|
660
|
+
# },
|
661
|
+
# tags: {
|
662
|
+
# key: "TagKey",
|
663
|
+
# values: ["Value"],
|
664
|
+
# },
|
665
|
+
# },
|
666
|
+
# prediction_interval_level: 1,
|
667
|
+
# }
|
668
|
+
#
|
669
|
+
# @!attribute [rw] time_period
|
670
|
+
# The period of time that you want the forecast to cover.
|
671
|
+
# @return [Types::DateInterval]
|
672
|
+
#
|
673
|
+
# @!attribute [rw] metric
|
674
|
+
# Which metric Cost Explorer uses to create your forecast. For more
|
675
|
+
# information about blended and unblended rates, see [Why does the
|
676
|
+
# "blended" annotation appear on some line items in my bill?][1].
|
677
|
+
#
|
678
|
+
# Valid values for a `GetCostForecast` call are the following:
|
679
|
+
#
|
680
|
+
# * AmortizedCost
|
681
|
+
#
|
682
|
+
# * BlendedCost
|
683
|
+
#
|
684
|
+
# * NetAmortizedCost
|
685
|
+
#
|
686
|
+
# * NetUnblendedCost
|
687
|
+
#
|
688
|
+
# * UnblendedCost
|
689
|
+
#
|
690
|
+
#
|
691
|
+
#
|
692
|
+
# [1]: https://aws.amazon.com/premiumsupport/knowledge-center/blended-rates-intro/
|
693
|
+
# @return [String]
|
694
|
+
#
|
695
|
+
# @!attribute [rw] granularity
|
696
|
+
# How granular you want the forecast to be. You can get 3 months of
|
697
|
+
# `DAILY` forecasts or 12 months of `MONTHLY` forecasts.
|
698
|
+
# @return [String]
|
699
|
+
#
|
700
|
+
# @!attribute [rw] filter
|
701
|
+
# The filters that you want to use to filter your forecast. Cost
|
702
|
+
# Explorer API supports all of the Cost Explorer filters.
|
703
|
+
# @return [Types::Expression]
|
704
|
+
#
|
705
|
+
# @!attribute [rw] prediction_interval_level
|
706
|
+
# Cost Explorer always returns the mean forecast as a single point.
|
707
|
+
# You can request a prediction interval around the mean by specifying
|
708
|
+
# a confidence level. The higher the confidence level, the more
|
709
|
+
# confident Cost Explorer is about the actual value falling in the
|
710
|
+
# prediction interval. Higher confidence levels result in wider
|
711
|
+
# prediction intervals.
|
712
|
+
# @return [Integer]
|
713
|
+
#
|
714
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/GetCostForecastRequest AWS API Documentation
|
715
|
+
#
|
716
|
+
class GetCostForecastRequest < Struct.new(
|
717
|
+
:time_period,
|
718
|
+
:metric,
|
719
|
+
:granularity,
|
720
|
+
:filter,
|
721
|
+
:prediction_interval_level)
|
722
|
+
include Aws::Structure
|
723
|
+
end
|
724
|
+
|
725
|
+
# @!attribute [rw] total
|
726
|
+
# How much you are forecasted to spend over the forecast period, in
|
727
|
+
# `USD`.
|
728
|
+
# @return [Types::MetricValue]
|
729
|
+
#
|
730
|
+
# @!attribute [rw] forecast_results_by_time
|
731
|
+
# The forecasts for your query, in order. For `DAILY` forecasts, this
|
732
|
+
# is a list of days. For `MONTHLY` forecasts, this is a list of
|
733
|
+
# months.
|
734
|
+
# @return [Array<Types::ForecastResult>]
|
735
|
+
#
|
736
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/GetCostForecastResponse AWS API Documentation
|
737
|
+
#
|
738
|
+
class GetCostForecastResponse < Struct.new(
|
739
|
+
:total,
|
740
|
+
:forecast_results_by_time)
|
741
|
+
include Aws::Structure
|
742
|
+
end
|
743
|
+
|
605
744
|
# @note When making an API call, you may pass GetDimensionValuesRequest
|
606
745
|
# data as a hash:
|
607
746
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-costexplorer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.37.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.37.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|