aws-sdk-costoptimizationhub 1.1.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bba3da1dece777ec2b94aba6a4f3a2284bf94f8ac292bafe4cc26b988c9f79b7
4
- data.tar.gz: 37d1e0f83cdf4fb9ed77cd5f85a52d982b9a85a52bf7a624a4174e816eec3e23
3
+ metadata.gz: 4a3e120af72cd12ab497ccd3601f327da6a0d5c773573dd6e63a46d234c4f533
4
+ data.tar.gz: d3eb04c3e3391292e0a69f50bb900666c2e084c9891c79f38e3863eabdc13651
5
5
  SHA512:
6
- metadata.gz: fb3c93cb4933f343b4a054774292f5d91831924f2223850919c37c0c0a9a447be482a5fc58c32b9df9495b71cfa2b761ab383eaa96eb256f19b608a39e35f6ce
7
- data.tar.gz: aa8bf2dfb67b2905b86bcb0df14fd53a37dd0347e945546bab9897f1a57b700d01316dde268bbf27e5e12cb0440a8ca320cb30d1a9a324c614b95ff38f306325
6
+ metadata.gz: 234ee5278efe4bbda7c77e68052240e7b0f960bfd27b307f270524b3c7bee28bf4a81d21ccc0adf52bf03a54db19daa73c21817874bf0f0cb369037d0d4590c6
7
+ data.tar.gz: ef186dd6ba65bea56ec847a37956cc642f5cf6aaba15d3cd45f7d1d631a7da02dd9fdfdcc53c96c79b0b41f0bfdb7048af0aafe416ce0a0dc9072e7cb13ee815
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.3.0 (2024-02-09)
5
+ ------------------
6
+
7
+ * Feature - Adding includeMemberAccounts field to the response of ListEnrollmentStatuses API.
8
+
9
+ 1.2.0 (2024-01-26)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.1.0 (2023-11-28)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.3.0
@@ -888,7 +888,7 @@ module Aws::CostOptimizationHub
888
888
  # list of accounts that are enrolled under the organization.
889
889
  #
890
890
  # @option params [String] :account_id
891
- # The enrollment status of a specific account ID in the organization.
891
+ # The account ID of a member account in the organization.
892
892
  #
893
893
  # @option params [Boolean] :include_organization_info
894
894
  # Indicates whether to return the enrollment status for the
@@ -902,6 +902,7 @@ module Aws::CostOptimizationHub
902
902
  #
903
903
  # @return [Types::ListEnrollmentStatusesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
904
904
  #
905
+ # * {Types::ListEnrollmentStatusesResponse#include_member_accounts #include_member_accounts} => Boolean
905
906
  # * {Types::ListEnrollmentStatusesResponse#items #items} => Array<Types::AccountEnrollmentStatus>
906
907
  # * {Types::ListEnrollmentStatusesResponse#next_token #next_token} => String
907
908
  #
@@ -918,6 +919,7 @@ module Aws::CostOptimizationHub
918
919
  #
919
920
  # @example Response structure
920
921
  #
922
+ # resp.include_member_accounts #=> Boolean
921
923
  # resp.items #=> Array
922
924
  # resp.items[0].account_id #=> String
923
925
  # resp.items[0].created_timestamp #=> Time
@@ -1197,7 +1199,7 @@ module Aws::CostOptimizationHub
1197
1199
  params: params,
1198
1200
  config: config)
1199
1201
  context[:gem_name] = 'aws-sdk-costoptimizationhub'
1200
- context[:gem_version] = '1.1.0'
1202
+ context[:gem_version] = '1.3.0'
1201
1203
  Seahorse::Client::Request.new(handlers, context)
1202
1204
  end
1203
1205
 
@@ -304,6 +304,7 @@ module Aws::CostOptimizationHub
304
304
  ListEnrollmentStatusesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
305
305
  ListEnrollmentStatusesRequest.struct_class = Types::ListEnrollmentStatusesRequest
306
306
 
307
+ ListEnrollmentStatusesResponse.add_member(:include_member_accounts, Shapes::ShapeRef.new(shape: Boolean, location_name: "includeMemberAccounts"))
307
308
  ListEnrollmentStatusesResponse.add_member(:items, Shapes::ShapeRef.new(shape: AccountEnrollmentStatuses, location_name: "items"))
308
309
  ListEnrollmentStatusesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
309
310
  ListEnrollmentStatusesResponse.struct_class = Types::ListEnrollmentStatusesResponse
@@ -14,6 +14,7 @@ module Aws::CostOptimizationHub
14
14
  option(
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::CostOptimizationHub::EndpointProvider',
17
+ rbs_type: 'untyped',
17
18
  docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
19
  'object that responds to `#resolve_endpoint(parameters)` '\
19
20
  'where `parameters` is a Struct similar to '\
@@ -894,7 +894,7 @@ module Aws::CostOptimizationHub
894
894
  end
895
895
 
896
896
  # @!attribute [rw] account_id
897
- # The enrollment status of a specific account ID in the organization.
897
+ # The account ID of a member account in the organization.
898
898
  # @return [String]
899
899
  #
900
900
  # @!attribute [rw] include_organization_info
@@ -921,8 +921,14 @@ module Aws::CostOptimizationHub
921
921
  include Aws::Structure
922
922
  end
923
923
 
924
+ # @!attribute [rw] include_member_accounts
925
+ # The enrollment status of all member accounts in the organization if
926
+ # the account is the management account.
927
+ # @return [Boolean]
928
+ #
924
929
  # @!attribute [rw] items
925
- # The account enrollment statuses.
930
+ # The enrollment status of a specific account ID, including creation
931
+ # and last updated timestamps.
926
932
  # @return [Array<Types::AccountEnrollmentStatus>]
927
933
  #
928
934
  # @!attribute [rw] next_token
@@ -932,6 +938,7 @@ module Aws::CostOptimizationHub
932
938
  # @see http://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/ListEnrollmentStatusesResponse AWS API Documentation
933
939
  #
934
940
  class ListEnrollmentStatusesResponse < Struct.new(
941
+ :include_member_accounts,
935
942
  :items,
936
943
  :next_token)
937
944
  SENSITIVE = []
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-costoptimizationhub/customizations'
52
52
  # @!group service
53
53
  module Aws::CostOptimizationHub
54
54
 
55
- GEM_VERSION = '1.1.0'
55
+ GEM_VERSION = '1.3.0'
56
56
 
57
57
  end
data/sig/client.rbs ADDED
@@ -0,0 +1,227 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module CostOptimizationHub
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostOptimizationHub/Client.html#initialize-instance_method
14
+ def self.new: (
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?active_endpoint_cache: bool,
19
+ ?adaptive_retry_wait_to_fill: bool,
20
+ ?client_side_monitoring: bool,
21
+ ?client_side_monitoring_client_id: String,
22
+ ?client_side_monitoring_host: String,
23
+ ?client_side_monitoring_port: Integer,
24
+ ?client_side_monitoring_publisher: untyped,
25
+ ?convert_params: bool,
26
+ ?correct_clock_skew: bool,
27
+ ?defaults_mode: String,
28
+ ?disable_host_prefix_injection: bool,
29
+ ?disable_request_compression: bool,
30
+ ?endpoint: String,
31
+ ?endpoint_cache_max_entries: Integer,
32
+ ?endpoint_cache_max_threads: Integer,
33
+ ?endpoint_cache_poll_interval: Integer,
34
+ ?endpoint_discovery: bool,
35
+ ?ignore_configured_endpoint_urls: bool,
36
+ ?log_formatter: untyped,
37
+ ?log_level: Symbol,
38
+ ?logger: untyped,
39
+ ?max_attempts: Integer,
40
+ ?profile: String,
41
+ ?request_min_compression_size_bytes: Integer,
42
+ ?retry_backoff: Proc,
43
+ ?retry_base_delay: Float,
44
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
45
+ ?retry_limit: Integer,
46
+ ?retry_max_delay: Integer,
47
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
48
+ ?sdk_ua_app_id: String,
49
+ ?secret_access_key: String,
50
+ ?session_token: String,
51
+ ?simple_json: bool,
52
+ ?stub_responses: untyped,
53
+ ?token_provider: untyped,
54
+ ?use_dualstack_endpoint: bool,
55
+ ?use_fips_endpoint: bool,
56
+ ?validate_params: bool,
57
+ ?endpoint_provider: untyped,
58
+ ?http_proxy: String,
59
+ ?http_open_timeout: (Float | Integer),
60
+ ?http_read_timeout: (Float | Integer),
61
+ ?http_idle_timeout: (Float | Integer),
62
+ ?http_continue_timeout: (Float | Integer),
63
+ ?ssl_timeout: (Float | Integer | nil),
64
+ ?http_wire_trace: bool,
65
+ ?ssl_verify_peer: bool,
66
+ ?ssl_ca_bundle: String,
67
+ ?ssl_ca_directory: String,
68
+ ?ssl_ca_store: String,
69
+ ?on_chunk_received: Proc,
70
+ ?on_chunk_sent: Proc,
71
+ ?raise_response_errors: bool
72
+ ) -> instance
73
+ | (?Hash[Symbol, untyped]) -> instance
74
+
75
+
76
+ interface _GetPreferencesResponseSuccess
77
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetPreferencesResponse]
78
+ def member_account_discount_visibility: () -> ("All" | "None")
79
+ def savings_estimation_mode: () -> ("BeforeDiscounts" | "AfterDiscounts")
80
+ end
81
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostOptimizationHub/Client.html#get_preferences-instance_method
82
+ def get_preferences: (
83
+ ) -> _GetPreferencesResponseSuccess
84
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetPreferencesResponseSuccess
85
+
86
+ interface _GetRecommendationResponseSuccess
87
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetRecommendationResponse]
88
+ def account_id: () -> ::String
89
+ def action_type: () -> ("Rightsize" | "Stop" | "Upgrade" | "PurchaseSavingsPlans" | "PurchaseReservedInstances" | "MigrateToGraviton")
90
+ def cost_calculation_lookback_period_in_days: () -> ::Integer
91
+ def currency_code: () -> ::String
92
+ def current_resource_details: () -> Types::ResourceDetails
93
+ def current_resource_type: () -> ("Ec2Instance" | "LambdaFunction" | "EbsVolume" | "EcsService" | "Ec2AutoScalingGroup" | "Ec2InstanceSavingsPlans" | "ComputeSavingsPlans" | "SageMakerSavingsPlans" | "Ec2ReservedInstances" | "RdsReservedInstances" | "OpenSearchReservedInstances" | "RedshiftReservedInstances" | "ElastiCacheReservedInstances")
94
+ def estimated_monthly_cost: () -> ::Float
95
+ def estimated_monthly_savings: () -> ::Float
96
+ def estimated_savings_over_cost_calculation_lookback_period: () -> ::Float
97
+ def estimated_savings_percentage: () -> ::Float
98
+ def implementation_effort: () -> ("VeryLow" | "Low" | "Medium" | "High" | "VeryHigh")
99
+ def last_refresh_timestamp: () -> ::Time
100
+ def recommendation_id: () -> ::String
101
+ def recommendation_lookback_period_in_days: () -> ::Integer
102
+ def recommended_resource_details: () -> Types::ResourceDetails
103
+ def recommended_resource_type: () -> ("Ec2Instance" | "LambdaFunction" | "EbsVolume" | "EcsService" | "Ec2AutoScalingGroup" | "Ec2InstanceSavingsPlans" | "ComputeSavingsPlans" | "SageMakerSavingsPlans" | "Ec2ReservedInstances" | "RdsReservedInstances" | "OpenSearchReservedInstances" | "RedshiftReservedInstances" | "ElastiCacheReservedInstances")
104
+ def region: () -> ::String
105
+ def resource_arn: () -> ::String
106
+ def resource_id: () -> ::String
107
+ def restart_needed: () -> bool
108
+ def rollback_possible: () -> bool
109
+ def source: () -> ("ComputeOptimizer" | "CostExplorer")
110
+ def tags: () -> ::Array[Types::Tag]
111
+ end
112
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostOptimizationHub/Client.html#get_recommendation-instance_method
113
+ def get_recommendation: (
114
+ recommendation_id: ::String
115
+ ) -> _GetRecommendationResponseSuccess
116
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetRecommendationResponseSuccess
117
+
118
+ interface _ListEnrollmentStatusesResponseSuccess
119
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListEnrollmentStatusesResponse]
120
+ def include_member_accounts: () -> bool
121
+ def items: () -> ::Array[Types::AccountEnrollmentStatus]
122
+ def next_token: () -> ::String
123
+ end
124
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostOptimizationHub/Client.html#list_enrollment_statuses-instance_method
125
+ def list_enrollment_statuses: (
126
+ ?account_id: ::String,
127
+ ?include_organization_info: bool,
128
+ ?max_results: ::Integer,
129
+ ?next_token: ::String
130
+ ) -> _ListEnrollmentStatusesResponseSuccess
131
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListEnrollmentStatusesResponseSuccess
132
+
133
+ interface _ListRecommendationSummariesResponseSuccess
134
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListRecommendationSummariesResponse]
135
+ def currency_code: () -> ::String
136
+ def estimated_total_deduped_savings: () -> ::Float
137
+ def group_by: () -> ::String
138
+ def items: () -> ::Array[Types::RecommendationSummary]
139
+ def next_token: () -> ::String
140
+ end
141
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostOptimizationHub/Client.html#list_recommendation_summaries-instance_method
142
+ def list_recommendation_summaries: (
143
+ ?filter: {
144
+ account_ids: Array[::String]?,
145
+ action_types: Array[("Rightsize" | "Stop" | "Upgrade" | "PurchaseSavingsPlans" | "PurchaseReservedInstances" | "MigrateToGraviton")]?,
146
+ implementation_efforts: Array[("VeryLow" | "Low" | "Medium" | "High" | "VeryHigh")]?,
147
+ recommendation_ids: Array[::String]?,
148
+ regions: Array[::String]?,
149
+ resource_arns: Array[::String]?,
150
+ resource_ids: Array[::String]?,
151
+ resource_types: Array[("Ec2Instance" | "LambdaFunction" | "EbsVolume" | "EcsService" | "Ec2AutoScalingGroup" | "Ec2InstanceSavingsPlans" | "ComputeSavingsPlans" | "SageMakerSavingsPlans" | "Ec2ReservedInstances" | "RdsReservedInstances" | "OpenSearchReservedInstances" | "RedshiftReservedInstances" | "ElastiCacheReservedInstances")]?,
152
+ restart_needed: bool?,
153
+ rollback_possible: bool?,
154
+ tags: Array[
155
+ {
156
+ key: ::String?,
157
+ value: ::String?
158
+ },
159
+ ]?
160
+ },
161
+ group_by: ::String,
162
+ ?max_results: ::Integer,
163
+ ?next_token: ::String
164
+ ) -> _ListRecommendationSummariesResponseSuccess
165
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListRecommendationSummariesResponseSuccess
166
+
167
+ interface _ListRecommendationsResponseSuccess
168
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListRecommendationsResponse]
169
+ def items: () -> ::Array[Types::Recommendation]
170
+ def next_token: () -> ::String
171
+ end
172
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostOptimizationHub/Client.html#list_recommendations-instance_method
173
+ def list_recommendations: (
174
+ ?filter: {
175
+ account_ids: Array[::String]?,
176
+ action_types: Array[("Rightsize" | "Stop" | "Upgrade" | "PurchaseSavingsPlans" | "PurchaseReservedInstances" | "MigrateToGraviton")]?,
177
+ implementation_efforts: Array[("VeryLow" | "Low" | "Medium" | "High" | "VeryHigh")]?,
178
+ recommendation_ids: Array[::String]?,
179
+ regions: Array[::String]?,
180
+ resource_arns: Array[::String]?,
181
+ resource_ids: Array[::String]?,
182
+ resource_types: Array[("Ec2Instance" | "LambdaFunction" | "EbsVolume" | "EcsService" | "Ec2AutoScalingGroup" | "Ec2InstanceSavingsPlans" | "ComputeSavingsPlans" | "SageMakerSavingsPlans" | "Ec2ReservedInstances" | "RdsReservedInstances" | "OpenSearchReservedInstances" | "RedshiftReservedInstances" | "ElastiCacheReservedInstances")]?,
183
+ restart_needed: bool?,
184
+ rollback_possible: bool?,
185
+ tags: Array[
186
+ {
187
+ key: ::String?,
188
+ value: ::String?
189
+ },
190
+ ]?
191
+ },
192
+ ?include_all_recommendations: bool,
193
+ ?max_results: ::Integer,
194
+ ?next_token: ::String,
195
+ ?order_by: {
196
+ dimension: ::String?,
197
+ order: ("Asc" | "Desc")?
198
+ }
199
+ ) -> _ListRecommendationsResponseSuccess
200
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListRecommendationsResponseSuccess
201
+
202
+ interface _UpdateEnrollmentStatusResponseSuccess
203
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateEnrollmentStatusResponse]
204
+ def status: () -> ::String
205
+ end
206
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostOptimizationHub/Client.html#update_enrollment_status-instance_method
207
+ def update_enrollment_status: (
208
+ ?include_member_accounts: bool,
209
+ status: ("Active" | "Inactive")
210
+ ) -> _UpdateEnrollmentStatusResponseSuccess
211
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateEnrollmentStatusResponseSuccess
212
+
213
+ interface _UpdatePreferencesResponseSuccess
214
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdatePreferencesResponse]
215
+ def member_account_discount_visibility: () -> ("All" | "None")
216
+ def savings_estimation_mode: () -> ("BeforeDiscounts" | "AfterDiscounts")
217
+ end
218
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostOptimizationHub/Client.html#update_preferences-instance_method
219
+ def update_preferences: (
220
+ ?member_account_discount_visibility: ("All" | "None"),
221
+ ?savings_estimation_mode: ("BeforeDiscounts" | "AfterDiscounts")
222
+ ) -> _UpdatePreferencesResponseSuccess
223
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdatePreferencesResponseSuccess
224
+ end
225
+ end
226
+ end
227
+
data/sig/errors.rbs ADDED
@@ -0,0 +1,34 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module CostOptimizationHub
10
+ module Errors
11
+ class ServiceError < ::Aws::Errors::ServiceError
12
+ end
13
+
14
+ class AccessDeniedException < ::Aws::Errors::ServiceError
15
+ def message: () -> ::String
16
+ end
17
+ class InternalServerException < ::Aws::Errors::ServiceError
18
+ def message: () -> ::String
19
+ end
20
+ class ResourceNotFoundException < ::Aws::Errors::ServiceError
21
+ def message: () -> ::String
22
+ def resource_id: () -> ::String
23
+ end
24
+ class ThrottlingException < ::Aws::Errors::ServiceError
25
+ def message: () -> ::String
26
+ end
27
+ class ValidationException < ::Aws::Errors::ServiceError
28
+ def fields: () -> ::String
29
+ def message: () -> ::String
30
+ def reason: () -> ::String
31
+ end
32
+ end
33
+ end
34
+ end
data/sig/resource.rbs ADDED
@@ -0,0 +1,80 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module CostOptimizationHub
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostOptimizationHub/Resource.html
11
+ class Resource
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostOptimizationHub/Resource.html#initialize-instance_method
13
+ def initialize: (
14
+ ?client: Client,
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?active_endpoint_cache: bool,
19
+ ?adaptive_retry_wait_to_fill: bool,
20
+ ?client_side_monitoring: bool,
21
+ ?client_side_monitoring_client_id: String,
22
+ ?client_side_monitoring_host: String,
23
+ ?client_side_monitoring_port: Integer,
24
+ ?client_side_monitoring_publisher: untyped,
25
+ ?convert_params: bool,
26
+ ?correct_clock_skew: bool,
27
+ ?defaults_mode: String,
28
+ ?disable_host_prefix_injection: bool,
29
+ ?disable_request_compression: bool,
30
+ ?endpoint: String,
31
+ ?endpoint_cache_max_entries: Integer,
32
+ ?endpoint_cache_max_threads: Integer,
33
+ ?endpoint_cache_poll_interval: Integer,
34
+ ?endpoint_discovery: bool,
35
+ ?ignore_configured_endpoint_urls: bool,
36
+ ?log_formatter: untyped,
37
+ ?log_level: Symbol,
38
+ ?logger: untyped,
39
+ ?max_attempts: Integer,
40
+ ?profile: String,
41
+ ?request_min_compression_size_bytes: Integer,
42
+ ?retry_backoff: Proc,
43
+ ?retry_base_delay: Float,
44
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
45
+ ?retry_limit: Integer,
46
+ ?retry_max_delay: Integer,
47
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
48
+ ?sdk_ua_app_id: String,
49
+ ?secret_access_key: String,
50
+ ?session_token: String,
51
+ ?simple_json: bool,
52
+ ?stub_responses: untyped,
53
+ ?token_provider: untyped,
54
+ ?use_dualstack_endpoint: bool,
55
+ ?use_fips_endpoint: bool,
56
+ ?validate_params: bool,
57
+ ?endpoint_provider: untyped,
58
+ ?http_proxy: String,
59
+ ?http_open_timeout: (Float | Integer),
60
+ ?http_read_timeout: (Float | Integer),
61
+ ?http_idle_timeout: (Float | Integer),
62
+ ?http_continue_timeout: (Float | Integer),
63
+ ?ssl_timeout: (Float | Integer | nil),
64
+ ?http_wire_trace: bool,
65
+ ?ssl_verify_peer: bool,
66
+ ?ssl_ca_bundle: String,
67
+ ?ssl_ca_directory: String,
68
+ ?ssl_ca_store: String,
69
+ ?on_chunk_received: Proc,
70
+ ?on_chunk_sent: Proc,
71
+ ?raise_response_errors: bool
72
+ ) -> void
73
+ | (?Hash[Symbol, untyped]) -> void
74
+
75
+ def client: () -> Client
76
+
77
+
78
+ end
79
+ end
80
+ end
data/sig/types.rbs ADDED
@@ -0,0 +1,573 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::CostOptimizationHub
9
+ module Types
10
+
11
+ class AccessDeniedException
12
+ attr_accessor message: ::String
13
+ SENSITIVE: []
14
+ end
15
+
16
+ class AccountEnrollmentStatus
17
+ attr_accessor account_id: ::String
18
+ attr_accessor created_timestamp: ::Time
19
+ attr_accessor last_updated_timestamp: ::Time
20
+ attr_accessor status: ("Active" | "Inactive")
21
+ SENSITIVE: []
22
+ end
23
+
24
+ class BlockStoragePerformanceConfiguration
25
+ attr_accessor iops: ::Float
26
+ attr_accessor throughput: ::Float
27
+ SENSITIVE: []
28
+ end
29
+
30
+ class ComputeConfiguration
31
+ attr_accessor architecture: ::String
32
+ attr_accessor memory_size_in_mb: ::Integer
33
+ attr_accessor platform: ::String
34
+ attr_accessor v_cpu: ::Float
35
+ SENSITIVE: []
36
+ end
37
+
38
+ class ComputeSavingsPlans
39
+ attr_accessor configuration: Types::ComputeSavingsPlansConfiguration
40
+ attr_accessor cost_calculation: Types::SavingsPlansCostCalculation
41
+ SENSITIVE: []
42
+ end
43
+
44
+ class ComputeSavingsPlansConfiguration
45
+ attr_accessor account_scope: ::String
46
+ attr_accessor hourly_commitment: ::String
47
+ attr_accessor payment_option: ::String
48
+ attr_accessor term: ::String
49
+ SENSITIVE: []
50
+ end
51
+
52
+ class EbsVolume
53
+ attr_accessor configuration: Types::EbsVolumeConfiguration
54
+ attr_accessor cost_calculation: Types::ResourceCostCalculation
55
+ SENSITIVE: []
56
+ end
57
+
58
+ class EbsVolumeConfiguration
59
+ attr_accessor attachment_state: ::String
60
+ attr_accessor performance: Types::BlockStoragePerformanceConfiguration
61
+ attr_accessor storage: Types::StorageConfiguration
62
+ SENSITIVE: []
63
+ end
64
+
65
+ class Ec2AutoScalingGroup
66
+ attr_accessor configuration: Types::Ec2AutoScalingGroupConfiguration
67
+ attr_accessor cost_calculation: Types::ResourceCostCalculation
68
+ SENSITIVE: []
69
+ end
70
+
71
+ class Ec2AutoScalingGroupConfiguration
72
+ attr_accessor instance: Types::InstanceConfiguration
73
+ SENSITIVE: []
74
+ end
75
+
76
+ class Ec2Instance
77
+ attr_accessor configuration: Types::Ec2InstanceConfiguration
78
+ attr_accessor cost_calculation: Types::ResourceCostCalculation
79
+ SENSITIVE: []
80
+ end
81
+
82
+ class Ec2InstanceConfiguration
83
+ attr_accessor instance: Types::InstanceConfiguration
84
+ SENSITIVE: []
85
+ end
86
+
87
+ class Ec2InstanceSavingsPlans
88
+ attr_accessor configuration: Types::Ec2InstanceSavingsPlansConfiguration
89
+ attr_accessor cost_calculation: Types::SavingsPlansCostCalculation
90
+ SENSITIVE: []
91
+ end
92
+
93
+ class Ec2InstanceSavingsPlansConfiguration
94
+ attr_accessor account_scope: ::String
95
+ attr_accessor hourly_commitment: ::String
96
+ attr_accessor instance_family: ::String
97
+ attr_accessor payment_option: ::String
98
+ attr_accessor savings_plans_region: ::String
99
+ attr_accessor term: ::String
100
+ SENSITIVE: []
101
+ end
102
+
103
+ class Ec2ReservedInstances
104
+ attr_accessor configuration: Types::Ec2ReservedInstancesConfiguration
105
+ attr_accessor cost_calculation: Types::ReservedInstancesCostCalculation
106
+ SENSITIVE: []
107
+ end
108
+
109
+ class Ec2ReservedInstancesConfiguration
110
+ attr_accessor account_scope: ::String
111
+ attr_accessor current_generation: ::String
112
+ attr_accessor instance_family: ::String
113
+ attr_accessor instance_type: ::String
114
+ attr_accessor monthly_recurring_cost: ::String
115
+ attr_accessor normalized_units_to_purchase: ::String
116
+ attr_accessor number_of_instances_to_purchase: ::String
117
+ attr_accessor offering_class: ::String
118
+ attr_accessor payment_option: ::String
119
+ attr_accessor platform: ::String
120
+ attr_accessor reserved_instances_region: ::String
121
+ attr_accessor service: ::String
122
+ attr_accessor size_flex_eligible: bool
123
+ attr_accessor tenancy: ::String
124
+ attr_accessor term: ::String
125
+ attr_accessor upfront_cost: ::String
126
+ SENSITIVE: []
127
+ end
128
+
129
+ class EcsService
130
+ attr_accessor configuration: Types::EcsServiceConfiguration
131
+ attr_accessor cost_calculation: Types::ResourceCostCalculation
132
+ SENSITIVE: []
133
+ end
134
+
135
+ class EcsServiceConfiguration
136
+ attr_accessor compute: Types::ComputeConfiguration
137
+ SENSITIVE: []
138
+ end
139
+
140
+ class ElastiCacheReservedInstances
141
+ attr_accessor configuration: Types::ElastiCacheReservedInstancesConfiguration
142
+ attr_accessor cost_calculation: Types::ReservedInstancesCostCalculation
143
+ SENSITIVE: []
144
+ end
145
+
146
+ class ElastiCacheReservedInstancesConfiguration
147
+ attr_accessor account_scope: ::String
148
+ attr_accessor current_generation: ::String
149
+ attr_accessor instance_family: ::String
150
+ attr_accessor instance_type: ::String
151
+ attr_accessor monthly_recurring_cost: ::String
152
+ attr_accessor normalized_units_to_purchase: ::String
153
+ attr_accessor number_of_instances_to_purchase: ::String
154
+ attr_accessor payment_option: ::String
155
+ attr_accessor reserved_instances_region: ::String
156
+ attr_accessor service: ::String
157
+ attr_accessor size_flex_eligible: bool
158
+ attr_accessor term: ::String
159
+ attr_accessor upfront_cost: ::String
160
+ SENSITIVE: []
161
+ end
162
+
163
+ class EstimatedDiscounts
164
+ attr_accessor other_discount: ::Float
165
+ attr_accessor reserved_instances_discount: ::Float
166
+ attr_accessor savings_plans_discount: ::Float
167
+ SENSITIVE: []
168
+ end
169
+
170
+ class Filter
171
+ attr_accessor account_ids: ::Array[::String]
172
+ attr_accessor action_types: ::Array[("Rightsize" | "Stop" | "Upgrade" | "PurchaseSavingsPlans" | "PurchaseReservedInstances" | "MigrateToGraviton")]
173
+ attr_accessor implementation_efforts: ::Array[("VeryLow" | "Low" | "Medium" | "High" | "VeryHigh")]
174
+ attr_accessor recommendation_ids: ::Array[::String]
175
+ attr_accessor regions: ::Array[::String]
176
+ attr_accessor resource_arns: ::Array[::String]
177
+ attr_accessor resource_ids: ::Array[::String]
178
+ attr_accessor resource_types: ::Array[("Ec2Instance" | "LambdaFunction" | "EbsVolume" | "EcsService" | "Ec2AutoScalingGroup" | "Ec2InstanceSavingsPlans" | "ComputeSavingsPlans" | "SageMakerSavingsPlans" | "Ec2ReservedInstances" | "RdsReservedInstances" | "OpenSearchReservedInstances" | "RedshiftReservedInstances" | "ElastiCacheReservedInstances")]
179
+ attr_accessor restart_needed: bool
180
+ attr_accessor rollback_possible: bool
181
+ attr_accessor tags: ::Array[Types::Tag]
182
+ SENSITIVE: []
183
+ end
184
+
185
+ class GetPreferencesRequest < Aws::EmptyStructure
186
+ end
187
+
188
+ class GetPreferencesResponse
189
+ attr_accessor member_account_discount_visibility: ("All" | "None")
190
+ attr_accessor savings_estimation_mode: ("BeforeDiscounts" | "AfterDiscounts")
191
+ SENSITIVE: []
192
+ end
193
+
194
+ class GetRecommendationRequest
195
+ attr_accessor recommendation_id: ::String
196
+ SENSITIVE: []
197
+ end
198
+
199
+ class GetRecommendationResponse
200
+ attr_accessor account_id: ::String
201
+ attr_accessor action_type: ("Rightsize" | "Stop" | "Upgrade" | "PurchaseSavingsPlans" | "PurchaseReservedInstances" | "MigrateToGraviton")
202
+ attr_accessor cost_calculation_lookback_period_in_days: ::Integer
203
+ attr_accessor currency_code: ::String
204
+ attr_accessor current_resource_details: Types::ResourceDetails
205
+ attr_accessor current_resource_type: ("Ec2Instance" | "LambdaFunction" | "EbsVolume" | "EcsService" | "Ec2AutoScalingGroup" | "Ec2InstanceSavingsPlans" | "ComputeSavingsPlans" | "SageMakerSavingsPlans" | "Ec2ReservedInstances" | "RdsReservedInstances" | "OpenSearchReservedInstances" | "RedshiftReservedInstances" | "ElastiCacheReservedInstances")
206
+ attr_accessor estimated_monthly_cost: ::Float
207
+ attr_accessor estimated_monthly_savings: ::Float
208
+ attr_accessor estimated_savings_over_cost_calculation_lookback_period: ::Float
209
+ attr_accessor estimated_savings_percentage: ::Float
210
+ attr_accessor implementation_effort: ("VeryLow" | "Low" | "Medium" | "High" | "VeryHigh")
211
+ attr_accessor last_refresh_timestamp: ::Time
212
+ attr_accessor recommendation_id: ::String
213
+ attr_accessor recommendation_lookback_period_in_days: ::Integer
214
+ attr_accessor recommended_resource_details: Types::ResourceDetails
215
+ attr_accessor recommended_resource_type: ("Ec2Instance" | "LambdaFunction" | "EbsVolume" | "EcsService" | "Ec2AutoScalingGroup" | "Ec2InstanceSavingsPlans" | "ComputeSavingsPlans" | "SageMakerSavingsPlans" | "Ec2ReservedInstances" | "RdsReservedInstances" | "OpenSearchReservedInstances" | "RedshiftReservedInstances" | "ElastiCacheReservedInstances")
216
+ attr_accessor region: ::String
217
+ attr_accessor resource_arn: ::String
218
+ attr_accessor resource_id: ::String
219
+ attr_accessor restart_needed: bool
220
+ attr_accessor rollback_possible: bool
221
+ attr_accessor source: ("ComputeOptimizer" | "CostExplorer")
222
+ attr_accessor tags: ::Array[Types::Tag]
223
+ SENSITIVE: []
224
+ end
225
+
226
+ class InstanceConfiguration
227
+ attr_accessor type: ::String
228
+ SENSITIVE: []
229
+ end
230
+
231
+ class InternalServerException
232
+ attr_accessor message: ::String
233
+ SENSITIVE: []
234
+ end
235
+
236
+ class LambdaFunction
237
+ attr_accessor configuration: Types::LambdaFunctionConfiguration
238
+ attr_accessor cost_calculation: Types::ResourceCostCalculation
239
+ SENSITIVE: []
240
+ end
241
+
242
+ class LambdaFunctionConfiguration
243
+ attr_accessor compute: Types::ComputeConfiguration
244
+ SENSITIVE: []
245
+ end
246
+
247
+ class ListEnrollmentStatusesRequest
248
+ attr_accessor account_id: ::String
249
+ attr_accessor include_organization_info: bool
250
+ attr_accessor max_results: ::Integer
251
+ attr_accessor next_token: ::String
252
+ SENSITIVE: []
253
+ end
254
+
255
+ class ListEnrollmentStatusesResponse
256
+ attr_accessor include_member_accounts: bool
257
+ attr_accessor items: ::Array[Types::AccountEnrollmentStatus]
258
+ attr_accessor next_token: ::String
259
+ SENSITIVE: []
260
+ end
261
+
262
+ class ListRecommendationSummariesRequest
263
+ attr_accessor filter: Types::Filter
264
+ attr_accessor group_by: ::String
265
+ attr_accessor max_results: ::Integer
266
+ attr_accessor next_token: ::String
267
+ SENSITIVE: []
268
+ end
269
+
270
+ class ListRecommendationSummariesResponse
271
+ attr_accessor currency_code: ::String
272
+ attr_accessor estimated_total_deduped_savings: ::Float
273
+ attr_accessor group_by: ::String
274
+ attr_accessor items: ::Array[Types::RecommendationSummary]
275
+ attr_accessor next_token: ::String
276
+ SENSITIVE: []
277
+ end
278
+
279
+ class ListRecommendationsRequest
280
+ attr_accessor filter: Types::Filter
281
+ attr_accessor include_all_recommendations: bool
282
+ attr_accessor max_results: ::Integer
283
+ attr_accessor next_token: ::String
284
+ attr_accessor order_by: Types::OrderBy
285
+ SENSITIVE: []
286
+ end
287
+
288
+ class ListRecommendationsResponse
289
+ attr_accessor items: ::Array[Types::Recommendation]
290
+ attr_accessor next_token: ::String
291
+ SENSITIVE: []
292
+ end
293
+
294
+ class OpenSearchReservedInstances
295
+ attr_accessor configuration: Types::OpenSearchReservedInstancesConfiguration
296
+ attr_accessor cost_calculation: Types::ReservedInstancesCostCalculation
297
+ SENSITIVE: []
298
+ end
299
+
300
+ class OpenSearchReservedInstancesConfiguration
301
+ attr_accessor account_scope: ::String
302
+ attr_accessor current_generation: ::String
303
+ attr_accessor instance_type: ::String
304
+ attr_accessor monthly_recurring_cost: ::String
305
+ attr_accessor normalized_units_to_purchase: ::String
306
+ attr_accessor number_of_instances_to_purchase: ::String
307
+ attr_accessor payment_option: ::String
308
+ attr_accessor reserved_instances_region: ::String
309
+ attr_accessor service: ::String
310
+ attr_accessor size_flex_eligible: bool
311
+ attr_accessor term: ::String
312
+ attr_accessor upfront_cost: ::String
313
+ SENSITIVE: []
314
+ end
315
+
316
+ class OrderBy
317
+ attr_accessor dimension: ::String
318
+ attr_accessor order: ("Asc" | "Desc")
319
+ SENSITIVE: []
320
+ end
321
+
322
+ class RdsReservedInstances
323
+ attr_accessor configuration: Types::RdsReservedInstancesConfiguration
324
+ attr_accessor cost_calculation: Types::ReservedInstancesCostCalculation
325
+ SENSITIVE: []
326
+ end
327
+
328
+ class RdsReservedInstancesConfiguration
329
+ attr_accessor account_scope: ::String
330
+ attr_accessor current_generation: ::String
331
+ attr_accessor database_edition: ::String
332
+ attr_accessor database_engine: ::String
333
+ attr_accessor deployment_option: ::String
334
+ attr_accessor instance_family: ::String
335
+ attr_accessor instance_type: ::String
336
+ attr_accessor license_model: ::String
337
+ attr_accessor monthly_recurring_cost: ::String
338
+ attr_accessor normalized_units_to_purchase: ::String
339
+ attr_accessor number_of_instances_to_purchase: ::String
340
+ attr_accessor payment_option: ::String
341
+ attr_accessor reserved_instances_region: ::String
342
+ attr_accessor service: ::String
343
+ attr_accessor size_flex_eligible: bool
344
+ attr_accessor term: ::String
345
+ attr_accessor upfront_cost: ::String
346
+ SENSITIVE: []
347
+ end
348
+
349
+ class Recommendation
350
+ attr_accessor account_id: ::String
351
+ attr_accessor action_type: ::String
352
+ attr_accessor currency_code: ::String
353
+ attr_accessor current_resource_summary: ::String
354
+ attr_accessor current_resource_type: ::String
355
+ attr_accessor estimated_monthly_cost: ::Float
356
+ attr_accessor estimated_monthly_savings: ::Float
357
+ attr_accessor estimated_savings_percentage: ::Float
358
+ attr_accessor implementation_effort: ::String
359
+ attr_accessor last_refresh_timestamp: ::Time
360
+ attr_accessor recommendation_id: ::String
361
+ attr_accessor recommendation_lookback_period_in_days: ::Integer
362
+ attr_accessor recommended_resource_summary: ::String
363
+ attr_accessor recommended_resource_type: ::String
364
+ attr_accessor region: ::String
365
+ attr_accessor resource_arn: ::String
366
+ attr_accessor resource_id: ::String
367
+ attr_accessor restart_needed: bool
368
+ attr_accessor rollback_possible: bool
369
+ attr_accessor source: ("ComputeOptimizer" | "CostExplorer")
370
+ attr_accessor tags: ::Array[Types::Tag]
371
+ SENSITIVE: []
372
+ end
373
+
374
+ class RecommendationSummary
375
+ attr_accessor estimated_monthly_savings: ::Float
376
+ attr_accessor group: ::String
377
+ attr_accessor recommendation_count: ::Integer
378
+ SENSITIVE: []
379
+ end
380
+
381
+ class RedshiftReservedInstances
382
+ attr_accessor configuration: Types::RedshiftReservedInstancesConfiguration
383
+ attr_accessor cost_calculation: Types::ReservedInstancesCostCalculation
384
+ SENSITIVE: []
385
+ end
386
+
387
+ class RedshiftReservedInstancesConfiguration
388
+ attr_accessor account_scope: ::String
389
+ attr_accessor current_generation: ::String
390
+ attr_accessor instance_family: ::String
391
+ attr_accessor instance_type: ::String
392
+ attr_accessor monthly_recurring_cost: ::String
393
+ attr_accessor normalized_units_to_purchase: ::String
394
+ attr_accessor number_of_instances_to_purchase: ::String
395
+ attr_accessor payment_option: ::String
396
+ attr_accessor reserved_instances_region: ::String
397
+ attr_accessor service: ::String
398
+ attr_accessor size_flex_eligible: bool
399
+ attr_accessor term: ::String
400
+ attr_accessor upfront_cost: ::String
401
+ SENSITIVE: []
402
+ end
403
+
404
+ class ReservedInstancesCostCalculation
405
+ attr_accessor pricing: Types::ReservedInstancesPricing
406
+ SENSITIVE: []
407
+ end
408
+
409
+ class ReservedInstancesPricing
410
+ attr_accessor estimated_monthly_amortized_reservation_cost: ::Float
411
+ attr_accessor estimated_on_demand_cost: ::Float
412
+ attr_accessor monthly_reservation_eligible_cost: ::Float
413
+ attr_accessor savings_percentage: ::Float
414
+ SENSITIVE: []
415
+ end
416
+
417
+ class ResourceCostCalculation
418
+ attr_accessor pricing: Types::ResourcePricing
419
+ attr_accessor usages: ::Array[Types::Usage]
420
+ SENSITIVE: []
421
+ end
422
+
423
+ class ResourceDetails
424
+ attr_accessor compute_savings_plans: Types::ComputeSavingsPlans
425
+ attr_accessor ebs_volume: Types::EbsVolume
426
+ attr_accessor ec2_auto_scaling_group: Types::Ec2AutoScalingGroup
427
+ attr_accessor ec2_instance: Types::Ec2Instance
428
+ attr_accessor ec2_instance_savings_plans: Types::Ec2InstanceSavingsPlans
429
+ attr_accessor ec2_reserved_instances: Types::Ec2ReservedInstances
430
+ attr_accessor ecs_service: Types::EcsService
431
+ attr_accessor elasti_cache_reserved_instances: Types::ElastiCacheReservedInstances
432
+ attr_accessor lambda_function: Types::LambdaFunction
433
+ attr_accessor open_search_reserved_instances: Types::OpenSearchReservedInstances
434
+ attr_accessor rds_reserved_instances: Types::RdsReservedInstances
435
+ attr_accessor redshift_reserved_instances: Types::RedshiftReservedInstances
436
+ attr_accessor sage_maker_savings_plans: Types::SageMakerSavingsPlans
437
+ attr_accessor unknown: untyped
438
+ SENSITIVE: []
439
+
440
+ class ComputeSavingsPlans < ResourceDetails
441
+ end
442
+ class EbsVolume < ResourceDetails
443
+ end
444
+ class Ec2AutoScalingGroup < ResourceDetails
445
+ end
446
+ class Ec2Instance < ResourceDetails
447
+ end
448
+ class Ec2InstanceSavingsPlans < ResourceDetails
449
+ end
450
+ class Ec2ReservedInstances < ResourceDetails
451
+ end
452
+ class EcsService < ResourceDetails
453
+ end
454
+ class ElastiCacheReservedInstances < ResourceDetails
455
+ end
456
+ class LambdaFunction < ResourceDetails
457
+ end
458
+ class OpenSearchReservedInstances < ResourceDetails
459
+ end
460
+ class RdsReservedInstances < ResourceDetails
461
+ end
462
+ class RedshiftReservedInstances < ResourceDetails
463
+ end
464
+ class SageMakerSavingsPlans < ResourceDetails
465
+ end
466
+ class Unknown < ResourceDetails
467
+ end
468
+ end
469
+
470
+ class ResourceNotFoundException
471
+ attr_accessor message: ::String
472
+ attr_accessor resource_id: ::String
473
+ SENSITIVE: []
474
+ end
475
+
476
+ class ResourcePricing
477
+ attr_accessor estimated_cost_after_discounts: ::Float
478
+ attr_accessor estimated_cost_before_discounts: ::Float
479
+ attr_accessor estimated_discounts: Types::EstimatedDiscounts
480
+ attr_accessor estimated_net_unused_amortized_commitments: ::Float
481
+ SENSITIVE: []
482
+ end
483
+
484
+ class SageMakerSavingsPlans
485
+ attr_accessor configuration: Types::SageMakerSavingsPlansConfiguration
486
+ attr_accessor cost_calculation: Types::SavingsPlansCostCalculation
487
+ SENSITIVE: []
488
+ end
489
+
490
+ class SageMakerSavingsPlansConfiguration
491
+ attr_accessor account_scope: ::String
492
+ attr_accessor hourly_commitment: ::String
493
+ attr_accessor payment_option: ::String
494
+ attr_accessor term: ::String
495
+ SENSITIVE: []
496
+ end
497
+
498
+ class SavingsPlansCostCalculation
499
+ attr_accessor pricing: Types::SavingsPlansPricing
500
+ SENSITIVE: []
501
+ end
502
+
503
+ class SavingsPlansPricing
504
+ attr_accessor estimated_monthly_commitment: ::Float
505
+ attr_accessor estimated_on_demand_cost: ::Float
506
+ attr_accessor monthly_savings_plans_eligible_cost: ::Float
507
+ attr_accessor savings_percentage: ::Float
508
+ SENSITIVE: []
509
+ end
510
+
511
+ class StorageConfiguration
512
+ attr_accessor size_in_gb: ::Float
513
+ attr_accessor type: ::String
514
+ SENSITIVE: []
515
+ end
516
+
517
+ class Tag
518
+ attr_accessor key: ::String
519
+ attr_accessor value: ::String
520
+ SENSITIVE: []
521
+ end
522
+
523
+ class ThrottlingException
524
+ attr_accessor message: ::String
525
+ SENSITIVE: []
526
+ end
527
+
528
+ class UpdateEnrollmentStatusRequest
529
+ attr_accessor include_member_accounts: bool
530
+ attr_accessor status: ("Active" | "Inactive")
531
+ SENSITIVE: []
532
+ end
533
+
534
+ class UpdateEnrollmentStatusResponse
535
+ attr_accessor status: ::String
536
+ SENSITIVE: []
537
+ end
538
+
539
+ class UpdatePreferencesRequest
540
+ attr_accessor member_account_discount_visibility: ("All" | "None")
541
+ attr_accessor savings_estimation_mode: ("BeforeDiscounts" | "AfterDiscounts")
542
+ SENSITIVE: []
543
+ end
544
+
545
+ class UpdatePreferencesResponse
546
+ attr_accessor member_account_discount_visibility: ("All" | "None")
547
+ attr_accessor savings_estimation_mode: ("BeforeDiscounts" | "AfterDiscounts")
548
+ SENSITIVE: []
549
+ end
550
+
551
+ class Usage
552
+ attr_accessor operation: ::String
553
+ attr_accessor product_code: ::String
554
+ attr_accessor unit: ::String
555
+ attr_accessor usage_amount: ::Float
556
+ attr_accessor usage_type: ::String
557
+ SENSITIVE: []
558
+ end
559
+
560
+ class ValidationException
561
+ attr_accessor fields: ::Array[Types::ValidationExceptionDetail]
562
+ attr_accessor message: ::String
563
+ attr_accessor reason: ("FieldValidationFailed" | "Other")
564
+ SENSITIVE: []
565
+ end
566
+
567
+ class ValidationExceptionDetail
568
+ attr_accessor field_name: ::String
569
+ attr_accessor message: ::String
570
+ SENSITIVE: []
571
+ end
572
+ end
573
+ end
data/sig/waiters.rbs ADDED
@@ -0,0 +1,13 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module CostOptimizationHub
10
+ module Waiters
11
+ end
12
+ end
13
+ end
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.1.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-28 00:00:00.000000000 Z
11
+ date: 2024-02-09 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.188.0
22
+ version: 3.191.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.188.0
32
+ version: 3.191.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -66,13 +66,18 @@ files:
66
66
  - lib/aws-sdk-costoptimizationhub/plugins/endpoints.rb
67
67
  - lib/aws-sdk-costoptimizationhub/resource.rb
68
68
  - lib/aws-sdk-costoptimizationhub/types.rb
69
+ - sig/client.rbs
70
+ - sig/errors.rbs
71
+ - sig/resource.rbs
72
+ - sig/types.rbs
73
+ - sig/waiters.rbs
69
74
  homepage: https://github.com/aws/aws-sdk-ruby
70
75
  licenses:
71
76
  - Apache-2.0
72
77
  metadata:
73
78
  source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-costoptimizationhub
74
79
  changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-costoptimizationhub/CHANGELOG.md
75
- post_install_message:
80
+ post_install_message:
76
81
  rdoc_options: []
77
82
  require_paths:
78
83
  - lib
@@ -87,8 +92,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
92
  - !ruby/object:Gem::Version
88
93
  version: '0'
89
94
  requirements: []
90
- rubygems_version: 3.1.6
91
- signing_key:
95
+ rubygems_version: 3.4.10
96
+ signing_key:
92
97
  specification_version: 4
93
98
  summary: AWS SDK for Ruby - Cost Optimization Hub
94
99
  test_files: []