aws-sdk-costexplorer 1.125.0 → 1.126.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/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-costexplorer/client.rb +473 -1
- data/lib/aws-sdk-costexplorer/client_api.rb +108 -0
- data/lib/aws-sdk-costexplorer/types.rb +636 -0
- data/lib/aws-sdk-costexplorer.rb +1 -1
- data/sig/client.rbs +105 -0
- data/sig/types.rbs +65 -0
- metadata +1 -1
@@ -46,6 +46,8 @@ module Aws::CostExplorer
|
|
46
46
|
BillExpirationException = Shapes::StructureShape.new(name: 'BillExpirationException')
|
47
47
|
BillingViewArn = Shapes::StringShape.new(name: 'BillingViewArn')
|
48
48
|
CommitmentPurchaseAnalysisConfiguration = Shapes::StructureShape.new(name: 'CommitmentPurchaseAnalysisConfiguration')
|
49
|
+
ComparisonMetricValue = Shapes::StructureShape.new(name: 'ComparisonMetricValue')
|
50
|
+
ComparisonMetrics = Shapes::MapShape.new(name: 'ComparisonMetrics')
|
49
51
|
Context = Shapes::StringShape.new(name: 'Context')
|
50
52
|
CostAllocationTag = Shapes::StructureShape.new(name: 'CostAllocationTag')
|
51
53
|
CostAllocationTagBackfillRequest = Shapes::StructureShape.new(name: 'CostAllocationTagBackfillRequest')
|
@@ -58,6 +60,9 @@ module Aws::CostExplorer
|
|
58
60
|
CostAllocationTagStatusList = Shapes::ListShape.new(name: 'CostAllocationTagStatusList')
|
59
61
|
CostAllocationTagType = Shapes::StringShape.new(name: 'CostAllocationTagType')
|
60
62
|
CostAllocationTagsMaxResults = Shapes::IntegerShape.new(name: 'CostAllocationTagsMaxResults')
|
63
|
+
CostAndUsageComparison = Shapes::StructureShape.new(name: 'CostAndUsageComparison')
|
64
|
+
CostAndUsageComparisons = Shapes::ListShape.new(name: 'CostAndUsageComparisons')
|
65
|
+
CostAndUsageComparisonsMaxResults = Shapes::IntegerShape.new(name: 'CostAndUsageComparisonsMaxResults')
|
61
66
|
CostCategory = Shapes::StructureShape.new(name: 'CostCategory')
|
62
67
|
CostCategoryInheritedValueDimension = Shapes::StructureShape.new(name: 'CostCategoryInheritedValueDimension')
|
63
68
|
CostCategoryInheritedValueDimensionName = Shapes::StringShape.new(name: 'CostCategoryInheritedValueDimensionName')
|
@@ -85,6 +90,11 @@ module Aws::CostExplorer
|
|
85
90
|
CostCategoryValue = Shapes::StringShape.new(name: 'CostCategoryValue')
|
86
91
|
CostCategoryValues = Shapes::StructureShape.new(name: 'CostCategoryValues')
|
87
92
|
CostCategoryValuesList = Shapes::ListShape.new(name: 'CostCategoryValuesList')
|
93
|
+
CostComparisonDriver = Shapes::StructureShape.new(name: 'CostComparisonDriver')
|
94
|
+
CostComparisonDrivers = Shapes::ListShape.new(name: 'CostComparisonDrivers')
|
95
|
+
CostComparisonDriversMaxResults = Shapes::IntegerShape.new(name: 'CostComparisonDriversMaxResults')
|
96
|
+
CostDriver = Shapes::StructureShape.new(name: 'CostDriver')
|
97
|
+
CostDrivers = Shapes::ListShape.new(name: 'CostDrivers')
|
88
98
|
Coverage = Shapes::StructureShape.new(name: 'Coverage')
|
89
99
|
CoverageByTime = Shapes::StructureShape.new(name: 'CoverageByTime')
|
90
100
|
CoverageCost = Shapes::StructureShape.new(name: 'CoverageCost')
|
@@ -150,12 +160,16 @@ module Aws::CostExplorer
|
|
150
160
|
GetApproximateUsageRecordsResponse = Shapes::StructureShape.new(name: 'GetApproximateUsageRecordsResponse')
|
151
161
|
GetCommitmentPurchaseAnalysisRequest = Shapes::StructureShape.new(name: 'GetCommitmentPurchaseAnalysisRequest')
|
152
162
|
GetCommitmentPurchaseAnalysisResponse = Shapes::StructureShape.new(name: 'GetCommitmentPurchaseAnalysisResponse')
|
163
|
+
GetCostAndUsageComparisonsRequest = Shapes::StructureShape.new(name: 'GetCostAndUsageComparisonsRequest')
|
164
|
+
GetCostAndUsageComparisonsResponse = Shapes::StructureShape.new(name: 'GetCostAndUsageComparisonsResponse')
|
153
165
|
GetCostAndUsageRequest = Shapes::StructureShape.new(name: 'GetCostAndUsageRequest')
|
154
166
|
GetCostAndUsageResponse = Shapes::StructureShape.new(name: 'GetCostAndUsageResponse')
|
155
167
|
GetCostAndUsageWithResourcesRequest = Shapes::StructureShape.new(name: 'GetCostAndUsageWithResourcesRequest')
|
156
168
|
GetCostAndUsageWithResourcesResponse = Shapes::StructureShape.new(name: 'GetCostAndUsageWithResourcesResponse')
|
157
169
|
GetCostCategoriesRequest = Shapes::StructureShape.new(name: 'GetCostCategoriesRequest')
|
158
170
|
GetCostCategoriesResponse = Shapes::StructureShape.new(name: 'GetCostCategoriesResponse')
|
171
|
+
GetCostComparisonDriversRequest = Shapes::StructureShape.new(name: 'GetCostComparisonDriversRequest')
|
172
|
+
GetCostComparisonDriversResponse = Shapes::StructureShape.new(name: 'GetCostComparisonDriversResponse')
|
159
173
|
GetCostForecastRequest = Shapes::StructureShape.new(name: 'GetCostForecastRequest')
|
160
174
|
GetCostForecastResponse = Shapes::StructureShape.new(name: 'GetCostForecastResponse')
|
161
175
|
GetDimensionValuesRequest = Shapes::StructureShape.new(name: 'GetDimensionValuesRequest')
|
@@ -463,6 +477,15 @@ module Aws::CostExplorer
|
|
463
477
|
CommitmentPurchaseAnalysisConfiguration.add_member(:savings_plans_purchase_analysis_configuration, Shapes::ShapeRef.new(shape: SavingsPlansPurchaseAnalysisConfiguration, location_name: "SavingsPlansPurchaseAnalysisConfiguration"))
|
464
478
|
CommitmentPurchaseAnalysisConfiguration.struct_class = Types::CommitmentPurchaseAnalysisConfiguration
|
465
479
|
|
480
|
+
ComparisonMetricValue.add_member(:baseline_time_period_amount, Shapes::ShapeRef.new(shape: GenericString, location_name: "BaselineTimePeriodAmount"))
|
481
|
+
ComparisonMetricValue.add_member(:comparison_time_period_amount, Shapes::ShapeRef.new(shape: GenericString, location_name: "ComparisonTimePeriodAmount"))
|
482
|
+
ComparisonMetricValue.add_member(:difference, Shapes::ShapeRef.new(shape: GenericString, location_name: "Difference"))
|
483
|
+
ComparisonMetricValue.add_member(:unit, Shapes::ShapeRef.new(shape: GenericString, location_name: "Unit"))
|
484
|
+
ComparisonMetricValue.struct_class = Types::ComparisonMetricValue
|
485
|
+
|
486
|
+
ComparisonMetrics.key = Shapes::ShapeRef.new(shape: MetricName)
|
487
|
+
ComparisonMetrics.value = Shapes::ShapeRef.new(shape: ComparisonMetricValue)
|
488
|
+
|
466
489
|
CostAllocationTag.add_member(:tag_key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "TagKey"))
|
467
490
|
CostAllocationTag.add_member(:type, Shapes::ShapeRef.new(shape: CostAllocationTagType, required: true, location_name: "Type"))
|
468
491
|
CostAllocationTag.add_member(:status, Shapes::ShapeRef.new(shape: CostAllocationTagStatus, required: true, location_name: "Status"))
|
@@ -489,6 +512,12 @@ module Aws::CostExplorer
|
|
489
512
|
|
490
513
|
CostAllocationTagStatusList.member = Shapes::ShapeRef.new(shape: CostAllocationTagStatusEntry)
|
491
514
|
|
515
|
+
CostAndUsageComparison.add_member(:cost_and_usage_selector, Shapes::ShapeRef.new(shape: Expression, location_name: "CostAndUsageSelector"))
|
516
|
+
CostAndUsageComparison.add_member(:metrics, Shapes::ShapeRef.new(shape: ComparisonMetrics, location_name: "Metrics"))
|
517
|
+
CostAndUsageComparison.struct_class = Types::CostAndUsageComparison
|
518
|
+
|
519
|
+
CostAndUsageComparisons.member = Shapes::ShapeRef.new(shape: CostAndUsageComparison)
|
520
|
+
|
492
521
|
CostCategory.add_member(:cost_category_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "CostCategoryArn"))
|
493
522
|
CostCategory.add_member(:effective_start, Shapes::ShapeRef.new(shape: ZonedDateTime, required: true, location_name: "EffectiveStart"))
|
494
523
|
CostCategory.add_member(:effective_end, Shapes::ShapeRef.new(shape: ZonedDateTime, location_name: "EffectiveEnd"))
|
@@ -557,6 +586,20 @@ module Aws::CostExplorer
|
|
557
586
|
|
558
587
|
CostCategoryValuesList.member = Shapes::ShapeRef.new(shape: CostCategoryValue)
|
559
588
|
|
589
|
+
CostComparisonDriver.add_member(:cost_selector, Shapes::ShapeRef.new(shape: Expression, location_name: "CostSelector"))
|
590
|
+
CostComparisonDriver.add_member(:metrics, Shapes::ShapeRef.new(shape: ComparisonMetrics, location_name: "Metrics"))
|
591
|
+
CostComparisonDriver.add_member(:cost_drivers, Shapes::ShapeRef.new(shape: CostDrivers, location_name: "CostDrivers"))
|
592
|
+
CostComparisonDriver.struct_class = Types::CostComparisonDriver
|
593
|
+
|
594
|
+
CostComparisonDrivers.member = Shapes::ShapeRef.new(shape: CostComparisonDriver)
|
595
|
+
|
596
|
+
CostDriver.add_member(:type, Shapes::ShapeRef.new(shape: GenericString, location_name: "Type"))
|
597
|
+
CostDriver.add_member(:name, Shapes::ShapeRef.new(shape: GenericString, location_name: "Name"))
|
598
|
+
CostDriver.add_member(:metrics, Shapes::ShapeRef.new(shape: ComparisonMetrics, location_name: "Metrics"))
|
599
|
+
CostDriver.struct_class = Types::CostDriver
|
600
|
+
|
601
|
+
CostDrivers.member = Shapes::ShapeRef.new(shape: CostDriver)
|
602
|
+
|
560
603
|
Coverage.add_member(:coverage_hours, Shapes::ShapeRef.new(shape: CoverageHours, location_name: "CoverageHours"))
|
561
604
|
Coverage.add_member(:coverage_normalized_units, Shapes::ShapeRef.new(shape: CoverageNormalizedUnits, location_name: "CoverageNormalizedUnits"))
|
562
605
|
Coverage.add_member(:coverage_cost, Shapes::ShapeRef.new(shape: CoverageCost, location_name: "CoverageCost"))
|
@@ -815,6 +858,21 @@ module Aws::CostExplorer
|
|
815
858
|
GetCommitmentPurchaseAnalysisResponse.add_member(:commitment_purchase_analysis_configuration, Shapes::ShapeRef.new(shape: CommitmentPurchaseAnalysisConfiguration, required: true, location_name: "CommitmentPurchaseAnalysisConfiguration"))
|
816
859
|
GetCommitmentPurchaseAnalysisResponse.struct_class = Types::GetCommitmentPurchaseAnalysisResponse
|
817
860
|
|
861
|
+
GetCostAndUsageComparisonsRequest.add_member(:billing_view_arn, Shapes::ShapeRef.new(shape: BillingViewArn, location_name: "BillingViewArn"))
|
862
|
+
GetCostAndUsageComparisonsRequest.add_member(:baseline_time_period, Shapes::ShapeRef.new(shape: DateInterval, required: true, location_name: "BaselineTimePeriod"))
|
863
|
+
GetCostAndUsageComparisonsRequest.add_member(:comparison_time_period, Shapes::ShapeRef.new(shape: DateInterval, required: true, location_name: "ComparisonTimePeriod"))
|
864
|
+
GetCostAndUsageComparisonsRequest.add_member(:metric_for_comparison, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricForComparison"))
|
865
|
+
GetCostAndUsageComparisonsRequest.add_member(:filter, Shapes::ShapeRef.new(shape: Expression, location_name: "Filter"))
|
866
|
+
GetCostAndUsageComparisonsRequest.add_member(:group_by, Shapes::ShapeRef.new(shape: GroupDefinitions, location_name: "GroupBy"))
|
867
|
+
GetCostAndUsageComparisonsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: CostAndUsageComparisonsMaxResults, location_name: "MaxResults", metadata: {"box" => true}))
|
868
|
+
GetCostAndUsageComparisonsRequest.add_member(:next_page_token, Shapes::ShapeRef.new(shape: NextPageToken, location_name: "NextPageToken"))
|
869
|
+
GetCostAndUsageComparisonsRequest.struct_class = Types::GetCostAndUsageComparisonsRequest
|
870
|
+
|
871
|
+
GetCostAndUsageComparisonsResponse.add_member(:cost_and_usage_comparisons, Shapes::ShapeRef.new(shape: CostAndUsageComparisons, location_name: "CostAndUsageComparisons"))
|
872
|
+
GetCostAndUsageComparisonsResponse.add_member(:total_cost_and_usage, Shapes::ShapeRef.new(shape: ComparisonMetrics, location_name: "TotalCostAndUsage"))
|
873
|
+
GetCostAndUsageComparisonsResponse.add_member(:next_page_token, Shapes::ShapeRef.new(shape: NextPageToken, location_name: "NextPageToken"))
|
874
|
+
GetCostAndUsageComparisonsResponse.struct_class = Types::GetCostAndUsageComparisonsResponse
|
875
|
+
|
818
876
|
GetCostAndUsageRequest.add_member(:time_period, Shapes::ShapeRef.new(shape: DateInterval, required: true, location_name: "TimePeriod"))
|
819
877
|
GetCostAndUsageRequest.add_member(:granularity, Shapes::ShapeRef.new(shape: Granularity, required: true, location_name: "Granularity"))
|
820
878
|
GetCostAndUsageRequest.add_member(:filter, Shapes::ShapeRef.new(shape: Expression, location_name: "Filter"))
|
@@ -862,6 +920,20 @@ module Aws::CostExplorer
|
|
862
920
|
GetCostCategoriesResponse.add_member(:total_size, Shapes::ShapeRef.new(shape: PageSize, required: true, location_name: "TotalSize"))
|
863
921
|
GetCostCategoriesResponse.struct_class = Types::GetCostCategoriesResponse
|
864
922
|
|
923
|
+
GetCostComparisonDriversRequest.add_member(:billing_view_arn, Shapes::ShapeRef.new(shape: BillingViewArn, location_name: "BillingViewArn"))
|
924
|
+
GetCostComparisonDriversRequest.add_member(:baseline_time_period, Shapes::ShapeRef.new(shape: DateInterval, required: true, location_name: "BaselineTimePeriod"))
|
925
|
+
GetCostComparisonDriversRequest.add_member(:comparison_time_period, Shapes::ShapeRef.new(shape: DateInterval, required: true, location_name: "ComparisonTimePeriod"))
|
926
|
+
GetCostComparisonDriversRequest.add_member(:metric_for_comparison, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricForComparison"))
|
927
|
+
GetCostComparisonDriversRequest.add_member(:filter, Shapes::ShapeRef.new(shape: Expression, location_name: "Filter"))
|
928
|
+
GetCostComparisonDriversRequest.add_member(:group_by, Shapes::ShapeRef.new(shape: GroupDefinitions, location_name: "GroupBy"))
|
929
|
+
GetCostComparisonDriversRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: CostComparisonDriversMaxResults, location_name: "MaxResults", metadata: {"box" => true}))
|
930
|
+
GetCostComparisonDriversRequest.add_member(:next_page_token, Shapes::ShapeRef.new(shape: NextPageToken, location_name: "NextPageToken"))
|
931
|
+
GetCostComparisonDriversRequest.struct_class = Types::GetCostComparisonDriversRequest
|
932
|
+
|
933
|
+
GetCostComparisonDriversResponse.add_member(:cost_comparison_drivers, Shapes::ShapeRef.new(shape: CostComparisonDrivers, location_name: "CostComparisonDrivers"))
|
934
|
+
GetCostComparisonDriversResponse.add_member(:next_page_token, Shapes::ShapeRef.new(shape: NextPageToken, location_name: "NextPageToken"))
|
935
|
+
GetCostComparisonDriversResponse.struct_class = Types::GetCostComparisonDriversResponse
|
936
|
+
|
865
937
|
GetCostForecastRequest.add_member(:time_period, Shapes::ShapeRef.new(shape: DateInterval, required: true, location_name: "TimePeriod"))
|
866
938
|
GetCostForecastRequest.add_member(:metric, Shapes::ShapeRef.new(shape: Metric, required: true, location_name: "Metric"))
|
867
939
|
GetCostForecastRequest.add_member(:granularity, Shapes::ShapeRef.new(shape: Granularity, required: true, location_name: "Granularity"))
|
@@ -1854,6 +1926,24 @@ module Aws::CostExplorer
|
|
1854
1926
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1855
1927
|
end)
|
1856
1928
|
|
1929
|
+
api.add_operation(:get_cost_and_usage_comparisons, Seahorse::Model::Operation.new.tap do |o|
|
1930
|
+
o.name = "GetCostAndUsageComparisons"
|
1931
|
+
o.http_method = "POST"
|
1932
|
+
o.http_request_uri = "/"
|
1933
|
+
o.input = Shapes::ShapeRef.new(shape: GetCostAndUsageComparisonsRequest)
|
1934
|
+
o.output = Shapes::ShapeRef.new(shape: GetCostAndUsageComparisonsResponse)
|
1935
|
+
o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException)
|
1936
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
1937
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
1938
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1939
|
+
o[:pager] = Aws::Pager.new(
|
1940
|
+
limit_key: "max_results",
|
1941
|
+
tokens: {
|
1942
|
+
"next_page_token" => "next_page_token"
|
1943
|
+
}
|
1944
|
+
)
|
1945
|
+
end)
|
1946
|
+
|
1857
1947
|
api.add_operation(:get_cost_and_usage_with_resources, Seahorse::Model::Operation.new.tap do |o|
|
1858
1948
|
o.name = "GetCostAndUsageWithResources"
|
1859
1949
|
o.http_method = "POST"
|
@@ -1882,6 +1972,24 @@ module Aws::CostExplorer
|
|
1882
1972
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1883
1973
|
end)
|
1884
1974
|
|
1975
|
+
api.add_operation(:get_cost_comparison_drivers, Seahorse::Model::Operation.new.tap do |o|
|
1976
|
+
o.name = "GetCostComparisonDrivers"
|
1977
|
+
o.http_method = "POST"
|
1978
|
+
o.http_request_uri = "/"
|
1979
|
+
o.input = Shapes::ShapeRef.new(shape: GetCostComparisonDriversRequest)
|
1980
|
+
o.output = Shapes::ShapeRef.new(shape: GetCostComparisonDriversResponse)
|
1981
|
+
o.errors << Shapes::ShapeRef.new(shape: DataUnavailableException)
|
1982
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
1983
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
1984
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1985
|
+
o[:pager] = Aws::Pager.new(
|
1986
|
+
limit_key: "max_results",
|
1987
|
+
tokens: {
|
1988
|
+
"next_page_token" => "next_page_token"
|
1989
|
+
}
|
1990
|
+
)
|
1991
|
+
end)
|
1992
|
+
|
1885
1993
|
api.add_operation(:get_cost_forecast, Seahorse::Model::Operation.new.tap do |o|
|
1886
1994
|
o.name = "GetCostForecast"
|
1887
1995
|
o.http_method = "POST"
|