aws-sdk-costexplorer 1.6.0 → 1.7.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 +19 -3
- data/lib/aws-sdk-costexplorer/client_api.rb +28 -0
- data/lib/aws-sdk-costexplorer/types.rb +123 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8970e2b72fee452c960ab92a0da508ed53cdf3ac
|
4
|
+
data.tar.gz: 204e880ccb1d0bef4a062f9dc066a836dbd77f48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53347cc7f45bea014a4f62c8fe352c4eedc104444e8a6058a54317d9d900d71eeb0a6dcbc7716e3cf996674fc285a1e5f60c2348776ba14937a569584ceef5c4
|
7
|
+
data.tar.gz: 30885d5762204ec48316b900b15d0714ce5f386ed0db317b4706b5dcc165304cf9bb07ae1dc8867c1b1b40d6d097c9df4ed641d3b4d1b3e8b2704642555bd77f
|
data/lib/aws-sdk-costexplorer.rb
CHANGED
@@ -724,7 +724,7 @@ module Aws::CostExplorer
|
|
724
724
|
# account_scope: "PAYER", # accepts PAYER, LINKED
|
725
725
|
# lookback_period_in_days: "SEVEN_DAYS", # accepts SEVEN_DAYS, THIRTY_DAYS, SIXTY_DAYS
|
726
726
|
# term_in_years: "ONE_YEAR", # accepts ONE_YEAR, THREE_YEARS
|
727
|
-
# payment_option: "NO_UPFRONT", # accepts NO_UPFRONT, PARTIAL_UPFRONT, ALL_UPFRONT
|
727
|
+
# payment_option: "NO_UPFRONT", # accepts NO_UPFRONT, PARTIAL_UPFRONT, ALL_UPFRONT, LIGHT_UTILIZATION, MEDIUM_UTILIZATION, HEAVY_UTILIZATION
|
728
728
|
# service_specification: {
|
729
729
|
# ec2_specification: {
|
730
730
|
# offering_class: "STANDARD", # accepts STANDARD, CONVERTIBLE
|
@@ -742,7 +742,7 @@ module Aws::CostExplorer
|
|
742
742
|
# resp.recommendations[0].account_scope #=> String, one of "PAYER", "LINKED"
|
743
743
|
# resp.recommendations[0].lookback_period_in_days #=> String, one of "SEVEN_DAYS", "THIRTY_DAYS", "SIXTY_DAYS"
|
744
744
|
# resp.recommendations[0].term_in_years #=> String, one of "ONE_YEAR", "THREE_YEARS"
|
745
|
-
# resp.recommendations[0].payment_option #=> String, one of "NO_UPFRONT", "PARTIAL_UPFRONT", "ALL_UPFRONT"
|
745
|
+
# resp.recommendations[0].payment_option #=> String, one of "NO_UPFRONT", "PARTIAL_UPFRONT", "ALL_UPFRONT", "LIGHT_UTILIZATION", "MEDIUM_UTILIZATION", "HEAVY_UTILIZATION"
|
746
746
|
# resp.recommendations[0].service_specification.ec2_specification.offering_class #=> String, one of "STANDARD", "CONVERTIBLE"
|
747
747
|
# resp.recommendations[0].recommendation_details #=> Array
|
748
748
|
# resp.recommendations[0].recommendation_details[0].instance_details.ec2_instance_details.family #=> String
|
@@ -762,6 +762,22 @@ module Aws::CostExplorer
|
|
762
762
|
# resp.recommendations[0].recommendation_details[0].instance_details.rds_instance_details.license_model #=> String
|
763
763
|
# resp.recommendations[0].recommendation_details[0].instance_details.rds_instance_details.current_generation #=> Boolean
|
764
764
|
# resp.recommendations[0].recommendation_details[0].instance_details.rds_instance_details.size_flex_eligible #=> Boolean
|
765
|
+
# resp.recommendations[0].recommendation_details[0].instance_details.redshift_instance_details.family #=> String
|
766
|
+
# resp.recommendations[0].recommendation_details[0].instance_details.redshift_instance_details.node_type #=> String
|
767
|
+
# resp.recommendations[0].recommendation_details[0].instance_details.redshift_instance_details.region #=> String
|
768
|
+
# resp.recommendations[0].recommendation_details[0].instance_details.redshift_instance_details.current_generation #=> Boolean
|
769
|
+
# resp.recommendations[0].recommendation_details[0].instance_details.redshift_instance_details.size_flex_eligible #=> Boolean
|
770
|
+
# resp.recommendations[0].recommendation_details[0].instance_details.elasticache_instance_details.family #=> String
|
771
|
+
# resp.recommendations[0].recommendation_details[0].instance_details.elasticache_instance_details.node_type #=> String
|
772
|
+
# resp.recommendations[0].recommendation_details[0].instance_details.elasticache_instance_details.region #=> String
|
773
|
+
# resp.recommendations[0].recommendation_details[0].instance_details.elasticache_instance_details.product_description #=> String
|
774
|
+
# resp.recommendations[0].recommendation_details[0].instance_details.elasticache_instance_details.current_generation #=> Boolean
|
775
|
+
# resp.recommendations[0].recommendation_details[0].instance_details.elasticache_instance_details.size_flex_eligible #=> Boolean
|
776
|
+
# resp.recommendations[0].recommendation_details[0].instance_details.es_instance_details.instance_class #=> String
|
777
|
+
# resp.recommendations[0].recommendation_details[0].instance_details.es_instance_details.instance_size #=> String
|
778
|
+
# resp.recommendations[0].recommendation_details[0].instance_details.es_instance_details.region #=> String
|
779
|
+
# resp.recommendations[0].recommendation_details[0].instance_details.es_instance_details.current_generation #=> Boolean
|
780
|
+
# resp.recommendations[0].recommendation_details[0].instance_details.es_instance_details.size_flex_eligible #=> Boolean
|
765
781
|
# resp.recommendations[0].recommendation_details[0].recommended_number_of_instances_to_purchase #=> String
|
766
782
|
# resp.recommendations[0].recommendation_details[0].recommended_normalized_units_to_purchase #=> String
|
767
783
|
# resp.recommendations[0].recommendation_details[0].minimum_number_of_instances_used_per_hour #=> String
|
@@ -1021,7 +1037,7 @@ module Aws::CostExplorer
|
|
1021
1037
|
params: params,
|
1022
1038
|
config: config)
|
1023
1039
|
context[:gem_name] = 'aws-sdk-costexplorer'
|
1024
|
-
context[:gem_version] = '1.
|
1040
|
+
context[:gem_version] = '1.7.0'
|
1025
1041
|
Seahorse::Client::Request.new(handlers, context)
|
1026
1042
|
end
|
1027
1043
|
|
@@ -32,6 +32,8 @@ module Aws::CostExplorer
|
|
32
32
|
DimensionValuesWithAttributesList = Shapes::ListShape.new(name: 'DimensionValuesWithAttributesList')
|
33
33
|
EC2InstanceDetails = Shapes::StructureShape.new(name: 'EC2InstanceDetails')
|
34
34
|
EC2Specification = Shapes::StructureShape.new(name: 'EC2Specification')
|
35
|
+
ESInstanceDetails = Shapes::StructureShape.new(name: 'ESInstanceDetails')
|
36
|
+
ElastiCacheInstanceDetails = Shapes::StructureShape.new(name: 'ElastiCacheInstanceDetails')
|
35
37
|
Entity = Shapes::StringShape.new(name: 'Entity')
|
36
38
|
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
37
39
|
Estimated = Shapes::BooleanShape.new(name: 'Estimated')
|
@@ -80,6 +82,7 @@ module Aws::CostExplorer
|
|
80
82
|
PaymentOption = Shapes::StringShape.new(name: 'PaymentOption')
|
81
83
|
PurchasedHours = Shapes::StringShape.new(name: 'PurchasedHours')
|
82
84
|
RDSInstanceDetails = Shapes::StructureShape.new(name: 'RDSInstanceDetails')
|
85
|
+
RedshiftInstanceDetails = Shapes::StructureShape.new(name: 'RedshiftInstanceDetails')
|
83
86
|
RequestChangedException = Shapes::StructureShape.new(name: 'RequestChangedException')
|
84
87
|
ReservationAggregates = Shapes::StructureShape.new(name: 'ReservationAggregates')
|
85
88
|
ReservationCoverageGroup = Shapes::StructureShape.new(name: 'ReservationCoverageGroup')
|
@@ -161,6 +164,21 @@ module Aws::CostExplorer
|
|
161
164
|
EC2Specification.add_member(:offering_class, Shapes::ShapeRef.new(shape: OfferingClass, location_name: "OfferingClass"))
|
162
165
|
EC2Specification.struct_class = Types::EC2Specification
|
163
166
|
|
167
|
+
ESInstanceDetails.add_member(:instance_class, Shapes::ShapeRef.new(shape: GenericString, location_name: "InstanceClass"))
|
168
|
+
ESInstanceDetails.add_member(:instance_size, Shapes::ShapeRef.new(shape: GenericString, location_name: "InstanceSize"))
|
169
|
+
ESInstanceDetails.add_member(:region, Shapes::ShapeRef.new(shape: GenericString, location_name: "Region"))
|
170
|
+
ESInstanceDetails.add_member(:current_generation, Shapes::ShapeRef.new(shape: GenericBoolean, location_name: "CurrentGeneration"))
|
171
|
+
ESInstanceDetails.add_member(:size_flex_eligible, Shapes::ShapeRef.new(shape: GenericBoolean, location_name: "SizeFlexEligible"))
|
172
|
+
ESInstanceDetails.struct_class = Types::ESInstanceDetails
|
173
|
+
|
174
|
+
ElastiCacheInstanceDetails.add_member(:family, Shapes::ShapeRef.new(shape: GenericString, location_name: "Family"))
|
175
|
+
ElastiCacheInstanceDetails.add_member(:node_type, Shapes::ShapeRef.new(shape: GenericString, location_name: "NodeType"))
|
176
|
+
ElastiCacheInstanceDetails.add_member(:region, Shapes::ShapeRef.new(shape: GenericString, location_name: "Region"))
|
177
|
+
ElastiCacheInstanceDetails.add_member(:product_description, Shapes::ShapeRef.new(shape: GenericString, location_name: "ProductDescription"))
|
178
|
+
ElastiCacheInstanceDetails.add_member(:current_generation, Shapes::ShapeRef.new(shape: GenericBoolean, location_name: "CurrentGeneration"))
|
179
|
+
ElastiCacheInstanceDetails.add_member(:size_flex_eligible, Shapes::ShapeRef.new(shape: GenericBoolean, location_name: "SizeFlexEligible"))
|
180
|
+
ElastiCacheInstanceDetails.struct_class = Types::ElastiCacheInstanceDetails
|
181
|
+
|
164
182
|
Expression.add_member(:or, Shapes::ShapeRef.new(shape: Expressions, location_name: "Or"))
|
165
183
|
Expression.add_member(:and, Shapes::ShapeRef.new(shape: Expressions, location_name: "And"))
|
166
184
|
Expression.add_member(:not, Shapes::ShapeRef.new(shape: Expression, location_name: "Not"))
|
@@ -262,6 +280,9 @@ module Aws::CostExplorer
|
|
262
280
|
|
263
281
|
InstanceDetails.add_member(:ec2_instance_details, Shapes::ShapeRef.new(shape: EC2InstanceDetails, location_name: "EC2InstanceDetails"))
|
264
282
|
InstanceDetails.add_member(:rds_instance_details, Shapes::ShapeRef.new(shape: RDSInstanceDetails, location_name: "RDSInstanceDetails"))
|
283
|
+
InstanceDetails.add_member(:redshift_instance_details, Shapes::ShapeRef.new(shape: RedshiftInstanceDetails, location_name: "RedshiftInstanceDetails"))
|
284
|
+
InstanceDetails.add_member(:elasticache_instance_details, Shapes::ShapeRef.new(shape: ElastiCacheInstanceDetails, location_name: "ElastiCacheInstanceDetails"))
|
285
|
+
InstanceDetails.add_member(:es_instance_details, Shapes::ShapeRef.new(shape: ESInstanceDetails, location_name: "ESInstanceDetails"))
|
265
286
|
InstanceDetails.struct_class = Types::InstanceDetails
|
266
287
|
|
267
288
|
Keys.member = Shapes::ShapeRef.new(shape: Key)
|
@@ -286,6 +307,13 @@ module Aws::CostExplorer
|
|
286
307
|
RDSInstanceDetails.add_member(:size_flex_eligible, Shapes::ShapeRef.new(shape: GenericBoolean, location_name: "SizeFlexEligible"))
|
287
308
|
RDSInstanceDetails.struct_class = Types::RDSInstanceDetails
|
288
309
|
|
310
|
+
RedshiftInstanceDetails.add_member(:family, Shapes::ShapeRef.new(shape: GenericString, location_name: "Family"))
|
311
|
+
RedshiftInstanceDetails.add_member(:node_type, Shapes::ShapeRef.new(shape: GenericString, location_name: "NodeType"))
|
312
|
+
RedshiftInstanceDetails.add_member(:region, Shapes::ShapeRef.new(shape: GenericString, location_name: "Region"))
|
313
|
+
RedshiftInstanceDetails.add_member(:current_generation, Shapes::ShapeRef.new(shape: GenericBoolean, location_name: "CurrentGeneration"))
|
314
|
+
RedshiftInstanceDetails.add_member(:size_flex_eligible, Shapes::ShapeRef.new(shape: GenericBoolean, location_name: "SizeFlexEligible"))
|
315
|
+
RedshiftInstanceDetails.struct_class = Types::RedshiftInstanceDetails
|
316
|
+
|
289
317
|
ReservationAggregates.add_member(:utilization_percentage, Shapes::ShapeRef.new(shape: UtilizationPercentage, location_name: "UtilizationPercentage"))
|
290
318
|
ReservationAggregates.add_member(:purchased_hours, Shapes::ShapeRef.new(shape: PurchasedHours, location_name: "PurchasedHours"))
|
291
319
|
ReservationAggregates.add_member(:total_actual_hours, Shapes::ShapeRef.new(shape: TotalActualHours, location_name: "TotalActualHours"))
|
@@ -229,6 +229,78 @@ module Aws::CostExplorer
|
|
229
229
|
include Aws::Structure
|
230
230
|
end
|
231
231
|
|
232
|
+
# Details about the ES instances that AWS recommends that you purchase.
|
233
|
+
#
|
234
|
+
# @!attribute [rw] instance_class
|
235
|
+
# The class of instance that AWS recommends.
|
236
|
+
# @return [String]
|
237
|
+
#
|
238
|
+
# @!attribute [rw] instance_size
|
239
|
+
# The size of instance that AWS recommends.
|
240
|
+
# @return [String]
|
241
|
+
#
|
242
|
+
# @!attribute [rw] region
|
243
|
+
# The AWS Region of the recommended reservation.
|
244
|
+
# @return [String]
|
245
|
+
#
|
246
|
+
# @!attribute [rw] current_generation
|
247
|
+
# Whether the recommendation is for a current generation instance.
|
248
|
+
# @return [Boolean]
|
249
|
+
#
|
250
|
+
# @!attribute [rw] size_flex_eligible
|
251
|
+
# Whether the recommended reservation is size flexible.
|
252
|
+
# @return [Boolean]
|
253
|
+
#
|
254
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/ESInstanceDetails AWS API Documentation
|
255
|
+
#
|
256
|
+
class ESInstanceDetails < Struct.new(
|
257
|
+
:instance_class,
|
258
|
+
:instance_size,
|
259
|
+
:region,
|
260
|
+
:current_generation,
|
261
|
+
:size_flex_eligible)
|
262
|
+
include Aws::Structure
|
263
|
+
end
|
264
|
+
|
265
|
+
# Details about the ElastiCache instances that AWS recommends that you
|
266
|
+
# purchase.
|
267
|
+
#
|
268
|
+
# @!attribute [rw] family
|
269
|
+
# The instance family of the recommended reservation.
|
270
|
+
# @return [String]
|
271
|
+
#
|
272
|
+
# @!attribute [rw] node_type
|
273
|
+
# The type of node that AWS recommends.
|
274
|
+
# @return [String]
|
275
|
+
#
|
276
|
+
# @!attribute [rw] region
|
277
|
+
# The AWS Region of the recommended reservation.
|
278
|
+
# @return [String]
|
279
|
+
#
|
280
|
+
# @!attribute [rw] product_description
|
281
|
+
# The description of the recommended reservation.
|
282
|
+
# @return [String]
|
283
|
+
#
|
284
|
+
# @!attribute [rw] current_generation
|
285
|
+
# Whether the recommendation is for a current generation instance.
|
286
|
+
# @return [Boolean]
|
287
|
+
#
|
288
|
+
# @!attribute [rw] size_flex_eligible
|
289
|
+
# Whether the recommended reservation is size flexible.
|
290
|
+
# @return [Boolean]
|
291
|
+
#
|
292
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/ElastiCacheInstanceDetails AWS API Documentation
|
293
|
+
#
|
294
|
+
class ElastiCacheInstanceDetails < Struct.new(
|
295
|
+
:family,
|
296
|
+
:node_type,
|
297
|
+
:region,
|
298
|
+
:product_description,
|
299
|
+
:current_generation,
|
300
|
+
:size_flex_eligible)
|
301
|
+
include Aws::Structure
|
302
|
+
end
|
303
|
+
|
232
304
|
# Use `Expression` to filter by cost or by usage. There are two
|
233
305
|
# patterns:
|
234
306
|
#
|
@@ -938,7 +1010,7 @@ module Aws::CostExplorer
|
|
938
1010
|
# account_scope: "PAYER", # accepts PAYER, LINKED
|
939
1011
|
# lookback_period_in_days: "SEVEN_DAYS", # accepts SEVEN_DAYS, THIRTY_DAYS, SIXTY_DAYS
|
940
1012
|
# term_in_years: "ONE_YEAR", # accepts ONE_YEAR, THREE_YEARS
|
941
|
-
# payment_option: "NO_UPFRONT", # accepts NO_UPFRONT, PARTIAL_UPFRONT, ALL_UPFRONT
|
1013
|
+
# payment_option: "NO_UPFRONT", # accepts NO_UPFRONT, PARTIAL_UPFRONT, ALL_UPFRONT, LIGHT_UTILIZATION, MEDIUM_UTILIZATION, HEAVY_UTILIZATION
|
942
1014
|
# service_specification: {
|
943
1015
|
# ec2_specification: {
|
944
1016
|
# offering_class: "STANDARD", # accepts STANDARD, CONVERTIBLE
|
@@ -1293,11 +1365,26 @@ module Aws::CostExplorer
|
|
1293
1365
|
# The RDS instances that AWS recommends that you purchase.
|
1294
1366
|
# @return [Types::RDSInstanceDetails]
|
1295
1367
|
#
|
1368
|
+
# @!attribute [rw] redshift_instance_details
|
1369
|
+
# The Amazon Redshift instances that AWS recommends that you purchase.
|
1370
|
+
# @return [Types::RedshiftInstanceDetails]
|
1371
|
+
#
|
1372
|
+
# @!attribute [rw] elasticache_instance_details
|
1373
|
+
# The ElastiCache instances that AWS recommends that you purchase.
|
1374
|
+
# @return [Types::ElastiCacheInstanceDetails]
|
1375
|
+
#
|
1376
|
+
# @!attribute [rw] es_instance_details
|
1377
|
+
# The Amazon ES instances that AWS recommends that you purchase.
|
1378
|
+
# @return [Types::ESInstanceDetails]
|
1379
|
+
#
|
1296
1380
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/InstanceDetails AWS API Documentation
|
1297
1381
|
#
|
1298
1382
|
class InstanceDetails < Struct.new(
|
1299
1383
|
:ec2_instance_details,
|
1300
|
-
:rds_instance_details
|
1384
|
+
:rds_instance_details,
|
1385
|
+
:redshift_instance_details,
|
1386
|
+
:elasticache_instance_details,
|
1387
|
+
:es_instance_details)
|
1301
1388
|
include Aws::Structure
|
1302
1389
|
end
|
1303
1390
|
|
@@ -1374,6 +1461,40 @@ module Aws::CostExplorer
|
|
1374
1461
|
include Aws::Structure
|
1375
1462
|
end
|
1376
1463
|
|
1464
|
+
# Details about the Amazon Redshift instances that AWS recommends that
|
1465
|
+
# you purchase.
|
1466
|
+
#
|
1467
|
+
# @!attribute [rw] family
|
1468
|
+
# The instance family of the recommended reservation.
|
1469
|
+
# @return [String]
|
1470
|
+
#
|
1471
|
+
# @!attribute [rw] node_type
|
1472
|
+
# The type of node that AWS recommends.
|
1473
|
+
# @return [String]
|
1474
|
+
#
|
1475
|
+
# @!attribute [rw] region
|
1476
|
+
# The AWS Region of the recommended reservation.
|
1477
|
+
# @return [String]
|
1478
|
+
#
|
1479
|
+
# @!attribute [rw] current_generation
|
1480
|
+
# Whether the recommendation is for a current generation instance.
|
1481
|
+
# @return [Boolean]
|
1482
|
+
#
|
1483
|
+
# @!attribute [rw] size_flex_eligible
|
1484
|
+
# Whether the recommended reservation is size flexible.
|
1485
|
+
# @return [Boolean]
|
1486
|
+
#
|
1487
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/RedshiftInstanceDetails AWS API Documentation
|
1488
|
+
#
|
1489
|
+
class RedshiftInstanceDetails < Struct.new(
|
1490
|
+
:family,
|
1491
|
+
:node_type,
|
1492
|
+
:region,
|
1493
|
+
:current_generation,
|
1494
|
+
:size_flex_eligible)
|
1495
|
+
include Aws::Structure
|
1496
|
+
end
|
1497
|
+
|
1377
1498
|
# The aggregated numbers for your Reserved Instance (RI) usage.
|
1378
1499
|
#
|
1379
1500
|
# @!attribute [rw] utilization_percentage
|
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.7.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-07-
|
11
|
+
date: 2018-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|