aws-sdk-costoptimizationhub 1.9.0 → 1.11.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-costoptimizationhub/client.rb +22 -6
- data/lib/aws-sdk-costoptimizationhub/client_api.rb +10 -0
- data/lib/aws-sdk-costoptimizationhub/types.rb +37 -4
- data/lib/aws-sdk-costoptimizationhub.rb +1 -1
- data/sig/client.rbs +3 -0
- data/sig/resource.rbs +1 -0
- data/sig/types.rbs +7 -0
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 32e5ed167b979230b9c9aa6ac376982480f3987ab60d4c934d07a20e513c28f5
|
|
4
|
+
data.tar.gz: 130e1fef533831d292f5cbebc73bcbddb0e7f319ea2d3642bce1e1e5226709fe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 418b88825ce2accab7807643fd9f7b55080025ccb84a014bb111746e9ddb93b68211d333256ed6cbe8fcc6c0d71ead87f7209d879e81d5cf90e7c7b4ed4c2ec6
|
|
7
|
+
data.tar.gz: 7a9c7dbfa837f43a9e02cfe3dd152c19cf7db03c5f671cb39b002f564325e90fac5e4e11be5d452407e16e71d09f66c5ec704623669d8b2297ad723859363096
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.11.0 (2024-08-06)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - This release adds savings percentage support to the ListRecommendationSummaries API.
|
|
8
|
+
|
|
9
|
+
1.10.0 (2024-07-02)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
13
|
+
|
|
4
14
|
1.9.0 (2024-06-25)
|
|
5
15
|
------------------
|
|
6
16
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.11.0
|
|
@@ -312,6 +312,15 @@ module Aws::CostOptimizationHub
|
|
|
312
312
|
#
|
|
313
313
|
# @option options [String] :session_token
|
|
314
314
|
#
|
|
315
|
+
# @option options [Array] :sigv4a_signing_region_set
|
|
316
|
+
# A list of regions that should be signed with SigV4a signing. When
|
|
317
|
+
# not passed, a default `:sigv4a_signing_region_set` is searched for
|
|
318
|
+
# in the following locations:
|
|
319
|
+
#
|
|
320
|
+
# * `Aws.config[:sigv4a_signing_region_set]`
|
|
321
|
+
# * `ENV['AWS_SIGV4A_SIGNING_REGION_SET']`
|
|
322
|
+
# * `~/.aws/config`
|
|
323
|
+
#
|
|
315
324
|
# @option options [Boolean] :simple_json (false)
|
|
316
325
|
# Disables request parameter conversion, validation, and formatting.
|
|
317
326
|
# Also disables response data type conversions. The request parameters
|
|
@@ -1036,8 +1045,11 @@ module Aws::CostOptimizationHub
|
|
|
1036
1045
|
# The grouping of recommendations by a dimension.
|
|
1037
1046
|
#
|
|
1038
1047
|
# @option params [Integer] :max_results
|
|
1039
|
-
# The maximum number of recommendations
|
|
1040
|
-
#
|
|
1048
|
+
# The maximum number of recommendations to be returned for the request.
|
|
1049
|
+
#
|
|
1050
|
+
# @option params [Array<String>] :metrics
|
|
1051
|
+
# Additional metrics to be returned for the request. The only valid
|
|
1052
|
+
# value is `savingsPercentage`.
|
|
1041
1053
|
#
|
|
1042
1054
|
# @option params [String] :next_token
|
|
1043
1055
|
# The token to retrieve the next set of results.
|
|
@@ -1048,6 +1060,7 @@ module Aws::CostOptimizationHub
|
|
|
1048
1060
|
# * {Types::ListRecommendationSummariesResponse#items #items} => Array<Types::RecommendationSummary>
|
|
1049
1061
|
# * {Types::ListRecommendationSummariesResponse#group_by #data.group_by} => String (This method conflicts with a method on Response, call it through the data member)
|
|
1050
1062
|
# * {Types::ListRecommendationSummariesResponse#currency_code #currency_code} => String
|
|
1063
|
+
# * {Types::ListRecommendationSummariesResponse#metrics #metrics} => Types::SummaryMetricsResult
|
|
1051
1064
|
# * {Types::ListRecommendationSummariesResponse#next_token #next_token} => String
|
|
1052
1065
|
#
|
|
1053
1066
|
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
@@ -1075,6 +1088,7 @@ module Aws::CostOptimizationHub
|
|
|
1075
1088
|
# },
|
|
1076
1089
|
# group_by: "String", # required
|
|
1077
1090
|
# max_results: 1,
|
|
1091
|
+
# metrics: ["SavingsPercentage"], # accepts SavingsPercentage
|
|
1078
1092
|
# next_token: "String",
|
|
1079
1093
|
# })
|
|
1080
1094
|
#
|
|
@@ -1087,6 +1101,7 @@ module Aws::CostOptimizationHub
|
|
|
1087
1101
|
# resp.items[0].recommendation_count #=> Integer
|
|
1088
1102
|
# resp.data.group_by #=> String
|
|
1089
1103
|
# resp.currency_code #=> String
|
|
1104
|
+
# resp.metrics.savings_percentage #=> String
|
|
1090
1105
|
# resp.next_token #=> String
|
|
1091
1106
|
#
|
|
1092
1107
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/ListRecommendationSummaries AWS API Documentation
|
|
@@ -1194,8 +1209,9 @@ module Aws::CostOptimizationHub
|
|
|
1194
1209
|
# Updates the enrollment (opt in and opt out) status of an account to
|
|
1195
1210
|
# the Cost Optimization Hub service.
|
|
1196
1211
|
#
|
|
1197
|
-
# If the account is a management account
|
|
1198
|
-
# can also be used to enroll member
|
|
1212
|
+
# If the account is a management account or delegated administrator of
|
|
1213
|
+
# an organization, this action can also be used to enroll member
|
|
1214
|
+
# accounts of the organization.
|
|
1199
1215
|
#
|
|
1200
1216
|
# You must have the appropriate permissions to opt in to Cost
|
|
1201
1217
|
# Optimization Hub and to view its recommendations. When you opt in,
|
|
@@ -1207,7 +1223,7 @@ module Aws::CostOptimizationHub
|
|
|
1207
1223
|
#
|
|
1208
1224
|
# @option params [Boolean] :include_member_accounts
|
|
1209
1225
|
# Indicates whether to enroll member accounts of the organization if the
|
|
1210
|
-
# account is the management account.
|
|
1226
|
+
# account is the management account or delegated administrator.
|
|
1211
1227
|
#
|
|
1212
1228
|
# @return [Types::UpdateEnrollmentStatusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1213
1229
|
#
|
|
@@ -1282,7 +1298,7 @@ module Aws::CostOptimizationHub
|
|
|
1282
1298
|
params: params,
|
|
1283
1299
|
config: config)
|
|
1284
1300
|
context[:gem_name] = 'aws-sdk-costoptimizationhub'
|
|
1285
|
-
context[:gem_version] = '1.
|
|
1301
|
+
context[:gem_version] = '1.11.0'
|
|
1286
1302
|
Seahorse::Client::Request.new(handlers, context)
|
|
1287
1303
|
end
|
|
1288
1304
|
|
|
@@ -103,6 +103,9 @@ module Aws::CostOptimizationHub
|
|
|
103
103
|
Source = Shapes::StringShape.new(name: 'Source')
|
|
104
104
|
StorageConfiguration = Shapes::StructureShape.new(name: 'StorageConfiguration')
|
|
105
105
|
String = Shapes::StringShape.new(name: 'String')
|
|
106
|
+
SummaryMetrics = Shapes::StringShape.new(name: 'SummaryMetrics')
|
|
107
|
+
SummaryMetricsList = Shapes::ListShape.new(name: 'SummaryMetricsList')
|
|
108
|
+
SummaryMetricsResult = Shapes::StructureShape.new(name: 'SummaryMetricsResult')
|
|
106
109
|
Tag = Shapes::StructureShape.new(name: 'Tag')
|
|
107
110
|
TagList = Shapes::ListShape.new(name: 'TagList')
|
|
108
111
|
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
|
@@ -320,6 +323,7 @@ module Aws::CostOptimizationHub
|
|
|
320
323
|
ListRecommendationSummariesRequest.add_member(:filter, Shapes::ShapeRef.new(shape: Filter, location_name: "filter"))
|
|
321
324
|
ListRecommendationSummariesRequest.add_member(:group_by, Shapes::ShapeRef.new(shape: String, required: true, location_name: "groupBy"))
|
|
322
325
|
ListRecommendationSummariesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListRecommendationSummariesRequestMaxResultsInteger, location_name: "maxResults"))
|
|
326
|
+
ListRecommendationSummariesRequest.add_member(:metrics, Shapes::ShapeRef.new(shape: SummaryMetricsList, location_name: "metrics"))
|
|
323
327
|
ListRecommendationSummariesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
|
324
328
|
ListRecommendationSummariesRequest.struct_class = Types::ListRecommendationSummariesRequest
|
|
325
329
|
|
|
@@ -327,6 +331,7 @@ module Aws::CostOptimizationHub
|
|
|
327
331
|
ListRecommendationSummariesResponse.add_member(:items, Shapes::ShapeRef.new(shape: RecommendationSummariesList, location_name: "items"))
|
|
328
332
|
ListRecommendationSummariesResponse.add_member(:group_by, Shapes::ShapeRef.new(shape: String, location_name: "groupBy"))
|
|
329
333
|
ListRecommendationSummariesResponse.add_member(:currency_code, Shapes::ShapeRef.new(shape: String, location_name: "currencyCode"))
|
|
334
|
+
ListRecommendationSummariesResponse.add_member(:metrics, Shapes::ShapeRef.new(shape: SummaryMetricsResult, location_name: "metrics"))
|
|
330
335
|
ListRecommendationSummariesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
|
331
336
|
ListRecommendationSummariesResponse.struct_class = Types::ListRecommendationSummariesResponse
|
|
332
337
|
|
|
@@ -544,6 +549,11 @@ module Aws::CostOptimizationHub
|
|
|
544
549
|
StorageConfiguration.add_member(:size_in_gb, Shapes::ShapeRef.new(shape: Double, location_name: "sizeInGb"))
|
|
545
550
|
StorageConfiguration.struct_class = Types::StorageConfiguration
|
|
546
551
|
|
|
552
|
+
SummaryMetricsList.member = Shapes::ShapeRef.new(shape: SummaryMetrics)
|
|
553
|
+
|
|
554
|
+
SummaryMetricsResult.add_member(:savings_percentage, Shapes::ShapeRef.new(shape: String, location_name: "savingsPercentage"))
|
|
555
|
+
SummaryMetricsResult.struct_class = Types::SummaryMetricsResult
|
|
556
|
+
|
|
547
557
|
Tag.add_member(:key, Shapes::ShapeRef.new(shape: String, location_name: "key"))
|
|
548
558
|
Tag.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "value"))
|
|
549
559
|
Tag.struct_class = Types::Tag
|
|
@@ -944,7 +944,7 @@ module Aws::CostOptimizationHub
|
|
|
944
944
|
#
|
|
945
945
|
# @!attribute [rw] include_member_accounts
|
|
946
946
|
# The enrollment status of all member accounts in the organization if
|
|
947
|
-
# the account is the management account.
|
|
947
|
+
# the account is the management account or delegated administrator.
|
|
948
948
|
# @return [Boolean]
|
|
949
949
|
#
|
|
950
950
|
# @!attribute [rw] next_token
|
|
@@ -971,10 +971,15 @@ module Aws::CostOptimizationHub
|
|
|
971
971
|
# @return [String]
|
|
972
972
|
#
|
|
973
973
|
# @!attribute [rw] max_results
|
|
974
|
-
# The maximum number of recommendations
|
|
974
|
+
# The maximum number of recommendations to be returned for the
|
|
975
975
|
# request.
|
|
976
976
|
# @return [Integer]
|
|
977
977
|
#
|
|
978
|
+
# @!attribute [rw] metrics
|
|
979
|
+
# Additional metrics to be returned for the request. The only valid
|
|
980
|
+
# value is `savingsPercentage`.
|
|
981
|
+
# @return [Array<String>]
|
|
982
|
+
#
|
|
978
983
|
# @!attribute [rw] next_token
|
|
979
984
|
# The token to retrieve the next set of results.
|
|
980
985
|
# @return [String]
|
|
@@ -985,6 +990,7 @@ module Aws::CostOptimizationHub
|
|
|
985
990
|
:filter,
|
|
986
991
|
:group_by,
|
|
987
992
|
:max_results,
|
|
993
|
+
:metrics,
|
|
988
994
|
:next_token)
|
|
989
995
|
SENSITIVE = []
|
|
990
996
|
include Aws::Structure
|
|
@@ -995,7 +1001,7 @@ module Aws::CostOptimizationHub
|
|
|
995
1001
|
# @return [Float]
|
|
996
1002
|
#
|
|
997
1003
|
# @!attribute [rw] items
|
|
998
|
-
#
|
|
1004
|
+
# A list of all savings recommendations.
|
|
999
1005
|
# @return [Array<Types::RecommendationSummary>]
|
|
1000
1006
|
#
|
|
1001
1007
|
# @!attribute [rw] group_by
|
|
@@ -1006,6 +1012,11 @@ module Aws::CostOptimizationHub
|
|
|
1006
1012
|
# The currency code used for the recommendation.
|
|
1007
1013
|
# @return [String]
|
|
1008
1014
|
#
|
|
1015
|
+
# @!attribute [rw] metrics
|
|
1016
|
+
# The results or descriptions for the additional metrics, based on
|
|
1017
|
+
# whether the metrics were or were not requested.
|
|
1018
|
+
# @return [Types::SummaryMetricsResult]
|
|
1019
|
+
#
|
|
1009
1020
|
# @!attribute [rw] next_token
|
|
1010
1021
|
# The token to retrieve the next set of results.
|
|
1011
1022
|
# @return [String]
|
|
@@ -1017,6 +1028,7 @@ module Aws::CostOptimizationHub
|
|
|
1017
1028
|
:items,
|
|
1018
1029
|
:group_by,
|
|
1019
1030
|
:currency_code,
|
|
1031
|
+
:metrics,
|
|
1020
1032
|
:next_token)
|
|
1021
1033
|
SENSITIVE = []
|
|
1022
1034
|
include Aws::Structure
|
|
@@ -1961,6 +1973,27 @@ module Aws::CostOptimizationHub
|
|
|
1961
1973
|
include Aws::Structure
|
|
1962
1974
|
end
|
|
1963
1975
|
|
|
1976
|
+
# The results or descriptions for the additional metrics, based on
|
|
1977
|
+
# whether the metrics were or were not requested.
|
|
1978
|
+
#
|
|
1979
|
+
# @!attribute [rw] savings_percentage
|
|
1980
|
+
# The savings percentage based on your Amazon Web Services spend over
|
|
1981
|
+
# the past 30 days.
|
|
1982
|
+
#
|
|
1983
|
+
# <note markdown="1"> Savings percentage is only supported when filtering by Region,
|
|
1984
|
+
# account ID, or tags.
|
|
1985
|
+
#
|
|
1986
|
+
# </note>
|
|
1987
|
+
# @return [String]
|
|
1988
|
+
#
|
|
1989
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/SummaryMetricsResult AWS API Documentation
|
|
1990
|
+
#
|
|
1991
|
+
class SummaryMetricsResult < Struct.new(
|
|
1992
|
+
:savings_percentage)
|
|
1993
|
+
SENSITIVE = []
|
|
1994
|
+
include Aws::Structure
|
|
1995
|
+
end
|
|
1996
|
+
|
|
1964
1997
|
# The tag structure that contains a tag key and value.
|
|
1965
1998
|
#
|
|
1966
1999
|
# @!attribute [rw] key
|
|
@@ -1999,7 +2032,7 @@ module Aws::CostOptimizationHub
|
|
|
1999
2032
|
#
|
|
2000
2033
|
# @!attribute [rw] include_member_accounts
|
|
2001
2034
|
# Indicates whether to enroll member accounts of the organization if
|
|
2002
|
-
# the account is the management account.
|
|
2035
|
+
# the account is the management account or delegated administrator.
|
|
2003
2036
|
# @return [Boolean]
|
|
2004
2037
|
#
|
|
2005
2038
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/UpdateEnrollmentStatusRequest AWS API Documentation
|
data/sig/client.rbs
CHANGED
|
@@ -48,6 +48,7 @@ module Aws
|
|
|
48
48
|
?sdk_ua_app_id: String,
|
|
49
49
|
?secret_access_key: String,
|
|
50
50
|
?session_token: String,
|
|
51
|
+
?sigv4a_signing_region_set: Array[String],
|
|
51
52
|
?simple_json: bool,
|
|
52
53
|
?stub_responses: untyped,
|
|
53
54
|
?token_provider: untyped,
|
|
@@ -136,6 +137,7 @@ module Aws
|
|
|
136
137
|
def items: () -> ::Array[Types::RecommendationSummary]
|
|
137
138
|
def group_by: () -> ::String
|
|
138
139
|
def currency_code: () -> ::String
|
|
140
|
+
def metrics: () -> Types::SummaryMetricsResult
|
|
139
141
|
def next_token: () -> ::String
|
|
140
142
|
end
|
|
141
143
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostOptimizationHub/Client.html#list_recommendation_summaries-instance_method
|
|
@@ -160,6 +162,7 @@ module Aws
|
|
|
160
162
|
},
|
|
161
163
|
group_by: ::String,
|
|
162
164
|
?max_results: ::Integer,
|
|
165
|
+
?metrics: Array[("SavingsPercentage")],
|
|
163
166
|
?next_token: ::String
|
|
164
167
|
) -> _ListRecommendationSummariesResponseSuccess
|
|
165
168
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListRecommendationSummariesResponseSuccess
|
data/sig/resource.rbs
CHANGED
data/sig/types.rbs
CHANGED
|
@@ -268,6 +268,7 @@ module Aws::CostOptimizationHub
|
|
|
268
268
|
attr_accessor filter: Types::Filter
|
|
269
269
|
attr_accessor group_by: ::String
|
|
270
270
|
attr_accessor max_results: ::Integer
|
|
271
|
+
attr_accessor metrics: ::Array[("SavingsPercentage")]
|
|
271
272
|
attr_accessor next_token: ::String
|
|
272
273
|
SENSITIVE: []
|
|
273
274
|
end
|
|
@@ -277,6 +278,7 @@ module Aws::CostOptimizationHub
|
|
|
277
278
|
attr_accessor items: ::Array[Types::RecommendationSummary]
|
|
278
279
|
attr_accessor group_by: ::String
|
|
279
280
|
attr_accessor currency_code: ::String
|
|
281
|
+
attr_accessor metrics: Types::SummaryMetricsResult
|
|
280
282
|
attr_accessor next_token: ::String
|
|
281
283
|
SENSITIVE: []
|
|
282
284
|
end
|
|
@@ -550,6 +552,11 @@ module Aws::CostOptimizationHub
|
|
|
550
552
|
SENSITIVE: []
|
|
551
553
|
end
|
|
552
554
|
|
|
555
|
+
class SummaryMetricsResult
|
|
556
|
+
attr_accessor savings_percentage: ::String
|
|
557
|
+
SENSITIVE: []
|
|
558
|
+
end
|
|
559
|
+
|
|
553
560
|
class Tag
|
|
554
561
|
attr_accessor key: ::String
|
|
555
562
|
attr_accessor value: ::String
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-sdk-costoptimizationhub
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.11.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: 2024-06
|
|
11
|
+
date: 2024-08-06 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.201.0
|
|
23
23
|
type: :runtime
|
|
24
24
|
prerelease: false
|
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -29,21 +29,21 @@ dependencies:
|
|
|
29
29
|
version: '3'
|
|
30
30
|
- - ">="
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 3.
|
|
32
|
+
version: 3.201.0
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
34
|
name: aws-sigv4
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: '1.
|
|
39
|
+
version: '1.5'
|
|
40
40
|
type: :runtime
|
|
41
41
|
prerelease: false
|
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
|
43
43
|
requirements:
|
|
44
44
|
- - "~>"
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: '1.
|
|
46
|
+
version: '1.5'
|
|
47
47
|
description: Official AWS Ruby gem for Cost Optimization Hub. This gem is part of
|
|
48
48
|
the AWS SDK for Ruby.
|
|
49
49
|
email:
|