aws-sdk-costexplorer 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-costexplorer.rb +1 -1
- data/lib/aws-sdk-costexplorer/client.rb +15 -7
- data/lib/aws-sdk-costexplorer/client_api.rb +1 -0
- data/lib/aws-sdk-costexplorer/types.rb +26 -15
- 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: 73d5735bc13bbd395ad3ff28833d03cb60c0d30c
|
|
4
|
+
data.tar.gz: 7570c5d01a6566c627b881a6b6e5ace93d7dc8f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 63856c3c7993cb75f593561afd4568e6456bba8aea8f5713f5266da35b1c0258de2075f83dd5e79882eb137d9fd78f61bd1f343938d34d865e2789fc15f73811
|
|
7
|
+
data.tar.gz: 1fe8ffaa13aaed7c0898fd813f6e0d1e7c05e34460783cb4d3f4b37f8808db03b0e05c4ff54f8462ab48ac4623a2d6b468c5b3a94bd1187b1ffa9d068ae76d44
|
data/lib/aws-sdk-costexplorer.rb
CHANGED
|
@@ -203,7 +203,8 @@ module Aws::CostExplorer
|
|
|
203
203
|
# blended and unblended rates, see [Why does the "blended" annotation
|
|
204
204
|
# appear on some line items in my bill?][1].
|
|
205
205
|
#
|
|
206
|
-
# Valid values are `BlendedCost`, `UnblendedCost`, and
|
|
206
|
+
# Valid values are `AmortizedCost`, `BlendedCost`, `UnblendedCost`, and
|
|
207
|
+
# `UsageQuantity`.
|
|
207
208
|
#
|
|
208
209
|
# <note markdown="1"> If you return the `UsageQuantity` metric, the service aggregates all
|
|
209
210
|
# usage numbers without taking into account the units. For example, if
|
|
@@ -567,6 +568,9 @@ module Aws::CostExplorer
|
|
|
567
568
|
# You can nest only one level deep. If there are multiple values for a
|
|
568
569
|
# dimension, they are OR'd together.
|
|
569
570
|
#
|
|
571
|
+
# If you don't provide a `SERVICE` filter, Cost Explorer defaults to
|
|
572
|
+
# EC2.
|
|
573
|
+
#
|
|
570
574
|
# @option params [String] :next_page_token
|
|
571
575
|
# The token to retrieve the next set of results. AWS provides the token
|
|
572
576
|
# when the response from a previous call has more results than the
|
|
@@ -677,9 +681,12 @@ module Aws::CostExplorer
|
|
|
677
681
|
# The specific service that you want recommendations for.
|
|
678
682
|
#
|
|
679
683
|
# @option params [String] :account_scope
|
|
680
|
-
# The account scope that you want recommendations for.
|
|
681
|
-
#
|
|
682
|
-
#
|
|
684
|
+
# The account scope that you want recommendations for. `PAYER` means
|
|
685
|
+
# that AWS includes the master account and any member accounts when it
|
|
686
|
+
# calculates its recommendations. `LINKED` means that AWS includes only
|
|
687
|
+
# member accounts when it calculates its recommendations.
|
|
688
|
+
#
|
|
689
|
+
# Valid values are `PAYER` and `LINKED`.
|
|
683
690
|
#
|
|
684
691
|
# @option params [String] :lookback_period_in_days
|
|
685
692
|
# The number of previous days that you want AWS to consider when it
|
|
@@ -714,7 +721,7 @@ module Aws::CostExplorer
|
|
|
714
721
|
# resp = client.get_reservation_purchase_recommendation({
|
|
715
722
|
# account_id: "GenericString",
|
|
716
723
|
# service: "GenericString", # required
|
|
717
|
-
# account_scope: "PAYER", # accepts PAYER
|
|
724
|
+
# account_scope: "PAYER", # accepts PAYER, LINKED
|
|
718
725
|
# lookback_period_in_days: "SEVEN_DAYS", # accepts SEVEN_DAYS, THIRTY_DAYS, SIXTY_DAYS
|
|
719
726
|
# term_in_years: "ONE_YEAR", # accepts ONE_YEAR, THREE_YEARS
|
|
720
727
|
# payment_option: "NO_UPFRONT", # accepts NO_UPFRONT, PARTIAL_UPFRONT, ALL_UPFRONT
|
|
@@ -732,7 +739,7 @@ module Aws::CostExplorer
|
|
|
732
739
|
# resp.metadata.recommendation_id #=> String
|
|
733
740
|
# resp.metadata.generation_timestamp #=> String
|
|
734
741
|
# resp.recommendations #=> Array
|
|
735
|
-
# resp.recommendations[0].account_scope #=> String, one of "PAYER"
|
|
742
|
+
# resp.recommendations[0].account_scope #=> String, one of "PAYER", "LINKED"
|
|
736
743
|
# resp.recommendations[0].lookback_period_in_days #=> String, one of "SEVEN_DAYS", "THIRTY_DAYS", "SIXTY_DAYS"
|
|
737
744
|
# resp.recommendations[0].term_in_years #=> String, one of "ONE_YEAR", "THREE_YEARS"
|
|
738
745
|
# resp.recommendations[0].payment_option #=> String, one of "NO_UPFRONT", "PARTIAL_UPFRONT", "ALL_UPFRONT"
|
|
@@ -750,6 +757,7 @@ module Aws::CostExplorer
|
|
|
750
757
|
# resp.recommendations[0].recommendation_details[0].instance_details.rds_instance_details.instance_type #=> String
|
|
751
758
|
# resp.recommendations[0].recommendation_details[0].instance_details.rds_instance_details.region #=> String
|
|
752
759
|
# resp.recommendations[0].recommendation_details[0].instance_details.rds_instance_details.database_engine #=> String
|
|
760
|
+
# resp.recommendations[0].recommendation_details[0].instance_details.rds_instance_details.database_edition #=> String
|
|
753
761
|
# resp.recommendations[0].recommendation_details[0].instance_details.rds_instance_details.deployment_option #=> String
|
|
754
762
|
# resp.recommendations[0].recommendation_details[0].instance_details.rds_instance_details.license_model #=> String
|
|
755
763
|
# resp.recommendations[0].recommendation_details[0].instance_details.rds_instance_details.current_generation #=> Boolean
|
|
@@ -1013,7 +1021,7 @@ module Aws::CostExplorer
|
|
|
1013
1021
|
params: params,
|
|
1014
1022
|
config: config)
|
|
1015
1023
|
context[:gem_name] = 'aws-sdk-costexplorer'
|
|
1016
|
-
context[:gem_version] = '1.
|
|
1024
|
+
context[:gem_version] = '1.6.0'
|
|
1017
1025
|
Seahorse::Client::Request.new(handlers, context)
|
|
1018
1026
|
end
|
|
1019
1027
|
|
|
@@ -279,6 +279,7 @@ module Aws::CostExplorer
|
|
|
279
279
|
RDSInstanceDetails.add_member(:instance_type, Shapes::ShapeRef.new(shape: GenericString, location_name: "InstanceType"))
|
|
280
280
|
RDSInstanceDetails.add_member(:region, Shapes::ShapeRef.new(shape: GenericString, location_name: "Region"))
|
|
281
281
|
RDSInstanceDetails.add_member(:database_engine, Shapes::ShapeRef.new(shape: GenericString, location_name: "DatabaseEngine"))
|
|
282
|
+
RDSInstanceDetails.add_member(:database_edition, Shapes::ShapeRef.new(shape: GenericString, location_name: "DatabaseEdition"))
|
|
282
283
|
RDSInstanceDetails.add_member(:deployment_option, Shapes::ShapeRef.new(shape: GenericString, location_name: "DeploymentOption"))
|
|
283
284
|
RDSInstanceDetails.add_member(:license_model, Shapes::ShapeRef.new(shape: GenericString, location_name: "LicenseModel"))
|
|
284
285
|
RDSInstanceDetails.add_member(:current_generation, Shapes::ShapeRef.new(shape: GenericBoolean, location_name: "CurrentGeneration"))
|
|
@@ -450,8 +450,8 @@ module Aws::CostExplorer
|
|
|
450
450
|
# blended and unblended rates, see [Why does the "blended"
|
|
451
451
|
# annotation appear on some line items in my bill?][1].
|
|
452
452
|
#
|
|
453
|
-
# Valid values are `BlendedCost`, `UnblendedCost`,
|
|
454
|
-
# `UsageQuantity`.
|
|
453
|
+
# Valid values are `AmortizedCost`, `BlendedCost`, `UnblendedCost`,
|
|
454
|
+
# and `UsageQuantity`.
|
|
455
455
|
#
|
|
456
456
|
# <note markdown="1"> If you return the `UsageQuantity` metric, the service aggregates all
|
|
457
457
|
# usage numbers without taking into account the units. For example, if
|
|
@@ -884,6 +884,9 @@ module Aws::CostExplorer
|
|
|
884
884
|
# other operations, but only `AND` is supported among each dimension.
|
|
885
885
|
# You can nest only one level deep. If there are multiple values for a
|
|
886
886
|
# dimension, they are OR'd together.
|
|
887
|
+
#
|
|
888
|
+
# If you don't provide a `SERVICE` filter, Cost Explorer defaults to
|
|
889
|
+
# EC2.
|
|
887
890
|
# @return [Types::Expression]
|
|
888
891
|
#
|
|
889
892
|
# @!attribute [rw] next_page_token
|
|
@@ -932,7 +935,7 @@ module Aws::CostExplorer
|
|
|
932
935
|
# {
|
|
933
936
|
# account_id: "GenericString",
|
|
934
937
|
# service: "GenericString", # required
|
|
935
|
-
# account_scope: "PAYER", # accepts PAYER
|
|
938
|
+
# account_scope: "PAYER", # accepts PAYER, LINKED
|
|
936
939
|
# lookback_period_in_days: "SEVEN_DAYS", # accepts SEVEN_DAYS, THIRTY_DAYS, SIXTY_DAYS
|
|
937
940
|
# term_in_years: "ONE_YEAR", # accepts ONE_YEAR, THREE_YEARS
|
|
938
941
|
# payment_option: "NO_UPFRONT", # accepts NO_UPFRONT, PARTIAL_UPFRONT, ALL_UPFRONT
|
|
@@ -954,9 +957,12 @@ module Aws::CostExplorer
|
|
|
954
957
|
# @return [String]
|
|
955
958
|
#
|
|
956
959
|
# @!attribute [rw] account_scope
|
|
957
|
-
# The account scope that you want recommendations for.
|
|
958
|
-
#
|
|
959
|
-
#
|
|
960
|
+
# The account scope that you want recommendations for. `PAYER` means
|
|
961
|
+
# that AWS includes the master account and any member accounts when it
|
|
962
|
+
# calculates its recommendations. `LINKED` means that AWS includes
|
|
963
|
+
# only member accounts when it calculates its recommendations.
|
|
964
|
+
#
|
|
965
|
+
# Valid values are `PAYER` and `LINKED`.
|
|
960
966
|
# @return [String]
|
|
961
967
|
#
|
|
962
968
|
# @!attribute [rw] lookback_period_in_days
|
|
@@ -1331,10 +1337,14 @@ module Aws::CostExplorer
|
|
|
1331
1337
|
# The database engine that the recommended reservation supports.
|
|
1332
1338
|
# @return [String]
|
|
1333
1339
|
#
|
|
1340
|
+
# @!attribute [rw] database_edition
|
|
1341
|
+
# The database edition that the recommended reservation supports.
|
|
1342
|
+
# @return [String]
|
|
1343
|
+
#
|
|
1334
1344
|
# @!attribute [rw] deployment_option
|
|
1335
1345
|
# Whether the recommendation is for a reservation in a single
|
|
1336
|
-
#
|
|
1337
|
-
#
|
|
1346
|
+
# Availability Zone or a reservation with a backup in a second
|
|
1347
|
+
# Availability Zone.
|
|
1338
1348
|
# @return [String]
|
|
1339
1349
|
#
|
|
1340
1350
|
# @!attribute [rw] license_model
|
|
@@ -1356,6 +1366,7 @@ module Aws::CostExplorer
|
|
|
1356
1366
|
:instance_type,
|
|
1357
1367
|
:region,
|
|
1358
1368
|
:database_engine,
|
|
1369
|
+
:database_edition,
|
|
1359
1370
|
:deployment_option,
|
|
1360
1371
|
:license_model,
|
|
1361
1372
|
:current_generation,
|
|
@@ -1363,7 +1374,7 @@ module Aws::CostExplorer
|
|
|
1363
1374
|
include Aws::Structure
|
|
1364
1375
|
end
|
|
1365
1376
|
|
|
1366
|
-
# The aggregated numbers for your RI usage.
|
|
1377
|
+
# The aggregated numbers for your Reserved Instance (RI) usage.
|
|
1367
1378
|
#
|
|
1368
1379
|
# @!attribute [rw] utilization_percentage
|
|
1369
1380
|
# The percentage of RI time that you used.
|
|
@@ -1386,8 +1397,8 @@ module Aws::CostExplorer
|
|
|
1386
1397
|
# @return [String]
|
|
1387
1398
|
#
|
|
1388
1399
|
# @!attribute [rw] net_ri_savings
|
|
1389
|
-
# How much you saved due to purchasing and utilizing RIs.
|
|
1390
|
-
#
|
|
1400
|
+
# How much you saved due to purchasing and utilizing RIs. AWS
|
|
1401
|
+
# calculates this by subtracting `TotalAmortizedFee` from
|
|
1391
1402
|
# `OnDemandCostOfRIHoursUsed`.
|
|
1392
1403
|
# @return [String]
|
|
1393
1404
|
#
|
|
@@ -1450,8 +1461,8 @@ module Aws::CostExplorer
|
|
|
1450
1461
|
# @return [String]
|
|
1451
1462
|
#
|
|
1452
1463
|
# @!attribute [rw] lookback_period_in_days
|
|
1453
|
-
# How many days of previous usage that AWS
|
|
1454
|
-
#
|
|
1464
|
+
# How many days of previous usage that AWS considers when making this
|
|
1465
|
+
# recommendation.
|
|
1455
1466
|
# @return [String]
|
|
1456
1467
|
#
|
|
1457
1468
|
# @!attribute [rw] term_in_years
|
|
@@ -1628,7 +1639,7 @@ module Aws::CostExplorer
|
|
|
1628
1639
|
end
|
|
1629
1640
|
|
|
1630
1641
|
# A summary about this recommendation, such as the currency code, the
|
|
1631
|
-
# amount that AWS estimates you could save, and the total amount of
|
|
1642
|
+
# amount that AWS estimates that you could save, and the total amount of
|
|
1632
1643
|
# reservation to purchase.
|
|
1633
1644
|
#
|
|
1634
1645
|
# @!attribute [rw] total_estimated_monthly_savings_amount
|
|
@@ -1654,7 +1665,7 @@ module Aws::CostExplorer
|
|
|
1654
1665
|
include Aws::Structure
|
|
1655
1666
|
end
|
|
1656
1667
|
|
|
1657
|
-
# A group of RIs that share a set of attributes.
|
|
1668
|
+
# A group of Reserved Instances (RIs) that share a set of attributes.
|
|
1658
1669
|
#
|
|
1659
1670
|
# @!attribute [rw] key
|
|
1660
1671
|
# The key for a specific RI attribute.
|
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.6.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
|
+
date: 2018-07-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-core
|