aws-sdk-costoptimizationhub 1.1.0 → 1.2.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-costoptimizationhub/client.rb +1 -1
- data/lib/aws-sdk-costoptimizationhub/plugins/endpoints.rb +1 -0
- data/lib/aws-sdk-costoptimizationhub.rb +1 -1
- data/sig/client.rbs +226 -0
- data/sig/errors.rbs +34 -0
- data/sig/resource.rbs +80 -0
- data/sig/types.rbs +572 -0
- data/sig/waiters.rbs +13 -0
- metadata +13 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4dc4de3d6bbb16c43c37d60fd49bc23de5d66a2c806e0a6e7fb453589f2cbd20
|
|
4
|
+
data.tar.gz: 44c9a1939a6ff75762165a749e77b2c79f470c6a2b1abe323a9f105b9c44ee14
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9632a0373b5bd303f9648b2ea4eb200f4a33bb751f8e9c41e3c176c58fd25d0d9d6da010eee5aabc0f946a351bcabda0b885c0c9063df6b2b994bdccfc4793c5
|
|
7
|
+
data.tar.gz: 9e062d2e03740fd3b3a620de8a09c993df1ce8d05873e673bb5c9855c0937294aa1d9d0f55e9ef1a1ba62a5d2a4889b671229a39ccb33d9f947bb29ec4c8eb0d
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.2.0
|
|
@@ -1197,7 +1197,7 @@ module Aws::CostOptimizationHub
|
|
|
1197
1197
|
params: params,
|
|
1198
1198
|
config: config)
|
|
1199
1199
|
context[:gem_name] = 'aws-sdk-costoptimizationhub'
|
|
1200
|
-
context[:gem_version] = '1.
|
|
1200
|
+
context[:gem_version] = '1.2.0'
|
|
1201
1201
|
Seahorse::Client::Request.new(handlers, context)
|
|
1202
1202
|
end
|
|
1203
1203
|
|
|
@@ -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 '\
|
data/sig/client.rbs
ADDED
|
@@ -0,0 +1,226 @@
|
|
|
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 items: () -> ::Array[Types::AccountEnrollmentStatus]
|
|
121
|
+
def next_token: () -> ::String
|
|
122
|
+
end
|
|
123
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostOptimizationHub/Client.html#list_enrollment_statuses-instance_method
|
|
124
|
+
def list_enrollment_statuses: (
|
|
125
|
+
?account_id: ::String,
|
|
126
|
+
?include_organization_info: bool,
|
|
127
|
+
?max_results: ::Integer,
|
|
128
|
+
?next_token: ::String
|
|
129
|
+
) -> _ListEnrollmentStatusesResponseSuccess
|
|
130
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListEnrollmentStatusesResponseSuccess
|
|
131
|
+
|
|
132
|
+
interface _ListRecommendationSummariesResponseSuccess
|
|
133
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListRecommendationSummariesResponse]
|
|
134
|
+
def currency_code: () -> ::String
|
|
135
|
+
def estimated_total_deduped_savings: () -> ::Float
|
|
136
|
+
def group_by: () -> ::String
|
|
137
|
+
def items: () -> ::Array[Types::RecommendationSummary]
|
|
138
|
+
def next_token: () -> ::String
|
|
139
|
+
end
|
|
140
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostOptimizationHub/Client.html#list_recommendation_summaries-instance_method
|
|
141
|
+
def list_recommendation_summaries: (
|
|
142
|
+
?filter: {
|
|
143
|
+
account_ids: Array[::String]?,
|
|
144
|
+
action_types: Array[("Rightsize" | "Stop" | "Upgrade" | "PurchaseSavingsPlans" | "PurchaseReservedInstances" | "MigrateToGraviton")]?,
|
|
145
|
+
implementation_efforts: Array[("VeryLow" | "Low" | "Medium" | "High" | "VeryHigh")]?,
|
|
146
|
+
recommendation_ids: Array[::String]?,
|
|
147
|
+
regions: Array[::String]?,
|
|
148
|
+
resource_arns: Array[::String]?,
|
|
149
|
+
resource_ids: Array[::String]?,
|
|
150
|
+
resource_types: Array[("Ec2Instance" | "LambdaFunction" | "EbsVolume" | "EcsService" | "Ec2AutoScalingGroup" | "Ec2InstanceSavingsPlans" | "ComputeSavingsPlans" | "SageMakerSavingsPlans" | "Ec2ReservedInstances" | "RdsReservedInstances" | "OpenSearchReservedInstances" | "RedshiftReservedInstances" | "ElastiCacheReservedInstances")]?,
|
|
151
|
+
restart_needed: bool?,
|
|
152
|
+
rollback_possible: bool?,
|
|
153
|
+
tags: Array[
|
|
154
|
+
{
|
|
155
|
+
key: ::String?,
|
|
156
|
+
value: ::String?
|
|
157
|
+
},
|
|
158
|
+
]?
|
|
159
|
+
},
|
|
160
|
+
group_by: ::String,
|
|
161
|
+
?max_results: ::Integer,
|
|
162
|
+
?next_token: ::String
|
|
163
|
+
) -> _ListRecommendationSummariesResponseSuccess
|
|
164
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListRecommendationSummariesResponseSuccess
|
|
165
|
+
|
|
166
|
+
interface _ListRecommendationsResponseSuccess
|
|
167
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListRecommendationsResponse]
|
|
168
|
+
def items: () -> ::Array[Types::Recommendation]
|
|
169
|
+
def next_token: () -> ::String
|
|
170
|
+
end
|
|
171
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostOptimizationHub/Client.html#list_recommendations-instance_method
|
|
172
|
+
def list_recommendations: (
|
|
173
|
+
?filter: {
|
|
174
|
+
account_ids: Array[::String]?,
|
|
175
|
+
action_types: Array[("Rightsize" | "Stop" | "Upgrade" | "PurchaseSavingsPlans" | "PurchaseReservedInstances" | "MigrateToGraviton")]?,
|
|
176
|
+
implementation_efforts: Array[("VeryLow" | "Low" | "Medium" | "High" | "VeryHigh")]?,
|
|
177
|
+
recommendation_ids: Array[::String]?,
|
|
178
|
+
regions: Array[::String]?,
|
|
179
|
+
resource_arns: Array[::String]?,
|
|
180
|
+
resource_ids: Array[::String]?,
|
|
181
|
+
resource_types: Array[("Ec2Instance" | "LambdaFunction" | "EbsVolume" | "EcsService" | "Ec2AutoScalingGroup" | "Ec2InstanceSavingsPlans" | "ComputeSavingsPlans" | "SageMakerSavingsPlans" | "Ec2ReservedInstances" | "RdsReservedInstances" | "OpenSearchReservedInstances" | "RedshiftReservedInstances" | "ElastiCacheReservedInstances")]?,
|
|
182
|
+
restart_needed: bool?,
|
|
183
|
+
rollback_possible: bool?,
|
|
184
|
+
tags: Array[
|
|
185
|
+
{
|
|
186
|
+
key: ::String?,
|
|
187
|
+
value: ::String?
|
|
188
|
+
},
|
|
189
|
+
]?
|
|
190
|
+
},
|
|
191
|
+
?include_all_recommendations: bool,
|
|
192
|
+
?max_results: ::Integer,
|
|
193
|
+
?next_token: ::String,
|
|
194
|
+
?order_by: {
|
|
195
|
+
dimension: ::String?,
|
|
196
|
+
order: ("Asc" | "Desc")?
|
|
197
|
+
}
|
|
198
|
+
) -> _ListRecommendationsResponseSuccess
|
|
199
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListRecommendationsResponseSuccess
|
|
200
|
+
|
|
201
|
+
interface _UpdateEnrollmentStatusResponseSuccess
|
|
202
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::UpdateEnrollmentStatusResponse]
|
|
203
|
+
def status: () -> ::String
|
|
204
|
+
end
|
|
205
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostOptimizationHub/Client.html#update_enrollment_status-instance_method
|
|
206
|
+
def update_enrollment_status: (
|
|
207
|
+
?include_member_accounts: bool,
|
|
208
|
+
status: ("Active" | "Inactive")
|
|
209
|
+
) -> _UpdateEnrollmentStatusResponseSuccess
|
|
210
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateEnrollmentStatusResponseSuccess
|
|
211
|
+
|
|
212
|
+
interface _UpdatePreferencesResponseSuccess
|
|
213
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::UpdatePreferencesResponse]
|
|
214
|
+
def member_account_discount_visibility: () -> ("All" | "None")
|
|
215
|
+
def savings_estimation_mode: () -> ("BeforeDiscounts" | "AfterDiscounts")
|
|
216
|
+
end
|
|
217
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostOptimizationHub/Client.html#update_preferences-instance_method
|
|
218
|
+
def update_preferences: (
|
|
219
|
+
?member_account_discount_visibility: ("All" | "None"),
|
|
220
|
+
?savings_estimation_mode: ("BeforeDiscounts" | "AfterDiscounts")
|
|
221
|
+
) -> _UpdatePreferencesResponseSuccess
|
|
222
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdatePreferencesResponseSuccess
|
|
223
|
+
end
|
|
224
|
+
end
|
|
225
|
+
end
|
|
226
|
+
|
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,572 @@
|
|
|
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 items: ::Array[Types::AccountEnrollmentStatus]
|
|
257
|
+
attr_accessor next_token: ::String
|
|
258
|
+
SENSITIVE: []
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
class ListRecommendationSummariesRequest
|
|
262
|
+
attr_accessor filter: Types::Filter
|
|
263
|
+
attr_accessor group_by: ::String
|
|
264
|
+
attr_accessor max_results: ::Integer
|
|
265
|
+
attr_accessor next_token: ::String
|
|
266
|
+
SENSITIVE: []
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
class ListRecommendationSummariesResponse
|
|
270
|
+
attr_accessor currency_code: ::String
|
|
271
|
+
attr_accessor estimated_total_deduped_savings: ::Float
|
|
272
|
+
attr_accessor group_by: ::String
|
|
273
|
+
attr_accessor items: ::Array[Types::RecommendationSummary]
|
|
274
|
+
attr_accessor next_token: ::String
|
|
275
|
+
SENSITIVE: []
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
class ListRecommendationsRequest
|
|
279
|
+
attr_accessor filter: Types::Filter
|
|
280
|
+
attr_accessor include_all_recommendations: bool
|
|
281
|
+
attr_accessor max_results: ::Integer
|
|
282
|
+
attr_accessor next_token: ::String
|
|
283
|
+
attr_accessor order_by: Types::OrderBy
|
|
284
|
+
SENSITIVE: []
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
class ListRecommendationsResponse
|
|
288
|
+
attr_accessor items: ::Array[Types::Recommendation]
|
|
289
|
+
attr_accessor next_token: ::String
|
|
290
|
+
SENSITIVE: []
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
class OpenSearchReservedInstances
|
|
294
|
+
attr_accessor configuration: Types::OpenSearchReservedInstancesConfiguration
|
|
295
|
+
attr_accessor cost_calculation: Types::ReservedInstancesCostCalculation
|
|
296
|
+
SENSITIVE: []
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
class OpenSearchReservedInstancesConfiguration
|
|
300
|
+
attr_accessor account_scope: ::String
|
|
301
|
+
attr_accessor current_generation: ::String
|
|
302
|
+
attr_accessor instance_type: ::String
|
|
303
|
+
attr_accessor monthly_recurring_cost: ::String
|
|
304
|
+
attr_accessor normalized_units_to_purchase: ::String
|
|
305
|
+
attr_accessor number_of_instances_to_purchase: ::String
|
|
306
|
+
attr_accessor payment_option: ::String
|
|
307
|
+
attr_accessor reserved_instances_region: ::String
|
|
308
|
+
attr_accessor service: ::String
|
|
309
|
+
attr_accessor size_flex_eligible: bool
|
|
310
|
+
attr_accessor term: ::String
|
|
311
|
+
attr_accessor upfront_cost: ::String
|
|
312
|
+
SENSITIVE: []
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
class OrderBy
|
|
316
|
+
attr_accessor dimension: ::String
|
|
317
|
+
attr_accessor order: ("Asc" | "Desc")
|
|
318
|
+
SENSITIVE: []
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
class RdsReservedInstances
|
|
322
|
+
attr_accessor configuration: Types::RdsReservedInstancesConfiguration
|
|
323
|
+
attr_accessor cost_calculation: Types::ReservedInstancesCostCalculation
|
|
324
|
+
SENSITIVE: []
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
class RdsReservedInstancesConfiguration
|
|
328
|
+
attr_accessor account_scope: ::String
|
|
329
|
+
attr_accessor current_generation: ::String
|
|
330
|
+
attr_accessor database_edition: ::String
|
|
331
|
+
attr_accessor database_engine: ::String
|
|
332
|
+
attr_accessor deployment_option: ::String
|
|
333
|
+
attr_accessor instance_family: ::String
|
|
334
|
+
attr_accessor instance_type: ::String
|
|
335
|
+
attr_accessor license_model: ::String
|
|
336
|
+
attr_accessor monthly_recurring_cost: ::String
|
|
337
|
+
attr_accessor normalized_units_to_purchase: ::String
|
|
338
|
+
attr_accessor number_of_instances_to_purchase: ::String
|
|
339
|
+
attr_accessor payment_option: ::String
|
|
340
|
+
attr_accessor reserved_instances_region: ::String
|
|
341
|
+
attr_accessor service: ::String
|
|
342
|
+
attr_accessor size_flex_eligible: bool
|
|
343
|
+
attr_accessor term: ::String
|
|
344
|
+
attr_accessor upfront_cost: ::String
|
|
345
|
+
SENSITIVE: []
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
class Recommendation
|
|
349
|
+
attr_accessor account_id: ::String
|
|
350
|
+
attr_accessor action_type: ::String
|
|
351
|
+
attr_accessor currency_code: ::String
|
|
352
|
+
attr_accessor current_resource_summary: ::String
|
|
353
|
+
attr_accessor current_resource_type: ::String
|
|
354
|
+
attr_accessor estimated_monthly_cost: ::Float
|
|
355
|
+
attr_accessor estimated_monthly_savings: ::Float
|
|
356
|
+
attr_accessor estimated_savings_percentage: ::Float
|
|
357
|
+
attr_accessor implementation_effort: ::String
|
|
358
|
+
attr_accessor last_refresh_timestamp: ::Time
|
|
359
|
+
attr_accessor recommendation_id: ::String
|
|
360
|
+
attr_accessor recommendation_lookback_period_in_days: ::Integer
|
|
361
|
+
attr_accessor recommended_resource_summary: ::String
|
|
362
|
+
attr_accessor recommended_resource_type: ::String
|
|
363
|
+
attr_accessor region: ::String
|
|
364
|
+
attr_accessor resource_arn: ::String
|
|
365
|
+
attr_accessor resource_id: ::String
|
|
366
|
+
attr_accessor restart_needed: bool
|
|
367
|
+
attr_accessor rollback_possible: bool
|
|
368
|
+
attr_accessor source: ("ComputeOptimizer" | "CostExplorer")
|
|
369
|
+
attr_accessor tags: ::Array[Types::Tag]
|
|
370
|
+
SENSITIVE: []
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
class RecommendationSummary
|
|
374
|
+
attr_accessor estimated_monthly_savings: ::Float
|
|
375
|
+
attr_accessor group: ::String
|
|
376
|
+
attr_accessor recommendation_count: ::Integer
|
|
377
|
+
SENSITIVE: []
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
class RedshiftReservedInstances
|
|
381
|
+
attr_accessor configuration: Types::RedshiftReservedInstancesConfiguration
|
|
382
|
+
attr_accessor cost_calculation: Types::ReservedInstancesCostCalculation
|
|
383
|
+
SENSITIVE: []
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
class RedshiftReservedInstancesConfiguration
|
|
387
|
+
attr_accessor account_scope: ::String
|
|
388
|
+
attr_accessor current_generation: ::String
|
|
389
|
+
attr_accessor instance_family: ::String
|
|
390
|
+
attr_accessor instance_type: ::String
|
|
391
|
+
attr_accessor monthly_recurring_cost: ::String
|
|
392
|
+
attr_accessor normalized_units_to_purchase: ::String
|
|
393
|
+
attr_accessor number_of_instances_to_purchase: ::String
|
|
394
|
+
attr_accessor payment_option: ::String
|
|
395
|
+
attr_accessor reserved_instances_region: ::String
|
|
396
|
+
attr_accessor service: ::String
|
|
397
|
+
attr_accessor size_flex_eligible: bool
|
|
398
|
+
attr_accessor term: ::String
|
|
399
|
+
attr_accessor upfront_cost: ::String
|
|
400
|
+
SENSITIVE: []
|
|
401
|
+
end
|
|
402
|
+
|
|
403
|
+
class ReservedInstancesCostCalculation
|
|
404
|
+
attr_accessor pricing: Types::ReservedInstancesPricing
|
|
405
|
+
SENSITIVE: []
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
class ReservedInstancesPricing
|
|
409
|
+
attr_accessor estimated_monthly_amortized_reservation_cost: ::Float
|
|
410
|
+
attr_accessor estimated_on_demand_cost: ::Float
|
|
411
|
+
attr_accessor monthly_reservation_eligible_cost: ::Float
|
|
412
|
+
attr_accessor savings_percentage: ::Float
|
|
413
|
+
SENSITIVE: []
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
class ResourceCostCalculation
|
|
417
|
+
attr_accessor pricing: Types::ResourcePricing
|
|
418
|
+
attr_accessor usages: ::Array[Types::Usage]
|
|
419
|
+
SENSITIVE: []
|
|
420
|
+
end
|
|
421
|
+
|
|
422
|
+
class ResourceDetails
|
|
423
|
+
attr_accessor compute_savings_plans: Types::ComputeSavingsPlans
|
|
424
|
+
attr_accessor ebs_volume: Types::EbsVolume
|
|
425
|
+
attr_accessor ec2_auto_scaling_group: Types::Ec2AutoScalingGroup
|
|
426
|
+
attr_accessor ec2_instance: Types::Ec2Instance
|
|
427
|
+
attr_accessor ec2_instance_savings_plans: Types::Ec2InstanceSavingsPlans
|
|
428
|
+
attr_accessor ec2_reserved_instances: Types::Ec2ReservedInstances
|
|
429
|
+
attr_accessor ecs_service: Types::EcsService
|
|
430
|
+
attr_accessor elasti_cache_reserved_instances: Types::ElastiCacheReservedInstances
|
|
431
|
+
attr_accessor lambda_function: Types::LambdaFunction
|
|
432
|
+
attr_accessor open_search_reserved_instances: Types::OpenSearchReservedInstances
|
|
433
|
+
attr_accessor rds_reserved_instances: Types::RdsReservedInstances
|
|
434
|
+
attr_accessor redshift_reserved_instances: Types::RedshiftReservedInstances
|
|
435
|
+
attr_accessor sage_maker_savings_plans: Types::SageMakerSavingsPlans
|
|
436
|
+
attr_accessor unknown: untyped
|
|
437
|
+
SENSITIVE: []
|
|
438
|
+
|
|
439
|
+
class ComputeSavingsPlans < ResourceDetails
|
|
440
|
+
end
|
|
441
|
+
class EbsVolume < ResourceDetails
|
|
442
|
+
end
|
|
443
|
+
class Ec2AutoScalingGroup < ResourceDetails
|
|
444
|
+
end
|
|
445
|
+
class Ec2Instance < ResourceDetails
|
|
446
|
+
end
|
|
447
|
+
class Ec2InstanceSavingsPlans < ResourceDetails
|
|
448
|
+
end
|
|
449
|
+
class Ec2ReservedInstances < ResourceDetails
|
|
450
|
+
end
|
|
451
|
+
class EcsService < ResourceDetails
|
|
452
|
+
end
|
|
453
|
+
class ElastiCacheReservedInstances < ResourceDetails
|
|
454
|
+
end
|
|
455
|
+
class LambdaFunction < ResourceDetails
|
|
456
|
+
end
|
|
457
|
+
class OpenSearchReservedInstances < ResourceDetails
|
|
458
|
+
end
|
|
459
|
+
class RdsReservedInstances < ResourceDetails
|
|
460
|
+
end
|
|
461
|
+
class RedshiftReservedInstances < ResourceDetails
|
|
462
|
+
end
|
|
463
|
+
class SageMakerSavingsPlans < ResourceDetails
|
|
464
|
+
end
|
|
465
|
+
class Unknown < ResourceDetails
|
|
466
|
+
end
|
|
467
|
+
end
|
|
468
|
+
|
|
469
|
+
class ResourceNotFoundException
|
|
470
|
+
attr_accessor message: ::String
|
|
471
|
+
attr_accessor resource_id: ::String
|
|
472
|
+
SENSITIVE: []
|
|
473
|
+
end
|
|
474
|
+
|
|
475
|
+
class ResourcePricing
|
|
476
|
+
attr_accessor estimated_cost_after_discounts: ::Float
|
|
477
|
+
attr_accessor estimated_cost_before_discounts: ::Float
|
|
478
|
+
attr_accessor estimated_discounts: Types::EstimatedDiscounts
|
|
479
|
+
attr_accessor estimated_net_unused_amortized_commitments: ::Float
|
|
480
|
+
SENSITIVE: []
|
|
481
|
+
end
|
|
482
|
+
|
|
483
|
+
class SageMakerSavingsPlans
|
|
484
|
+
attr_accessor configuration: Types::SageMakerSavingsPlansConfiguration
|
|
485
|
+
attr_accessor cost_calculation: Types::SavingsPlansCostCalculation
|
|
486
|
+
SENSITIVE: []
|
|
487
|
+
end
|
|
488
|
+
|
|
489
|
+
class SageMakerSavingsPlansConfiguration
|
|
490
|
+
attr_accessor account_scope: ::String
|
|
491
|
+
attr_accessor hourly_commitment: ::String
|
|
492
|
+
attr_accessor payment_option: ::String
|
|
493
|
+
attr_accessor term: ::String
|
|
494
|
+
SENSITIVE: []
|
|
495
|
+
end
|
|
496
|
+
|
|
497
|
+
class SavingsPlansCostCalculation
|
|
498
|
+
attr_accessor pricing: Types::SavingsPlansPricing
|
|
499
|
+
SENSITIVE: []
|
|
500
|
+
end
|
|
501
|
+
|
|
502
|
+
class SavingsPlansPricing
|
|
503
|
+
attr_accessor estimated_monthly_commitment: ::Float
|
|
504
|
+
attr_accessor estimated_on_demand_cost: ::Float
|
|
505
|
+
attr_accessor monthly_savings_plans_eligible_cost: ::Float
|
|
506
|
+
attr_accessor savings_percentage: ::Float
|
|
507
|
+
SENSITIVE: []
|
|
508
|
+
end
|
|
509
|
+
|
|
510
|
+
class StorageConfiguration
|
|
511
|
+
attr_accessor size_in_gb: ::Float
|
|
512
|
+
attr_accessor type: ::String
|
|
513
|
+
SENSITIVE: []
|
|
514
|
+
end
|
|
515
|
+
|
|
516
|
+
class Tag
|
|
517
|
+
attr_accessor key: ::String
|
|
518
|
+
attr_accessor value: ::String
|
|
519
|
+
SENSITIVE: []
|
|
520
|
+
end
|
|
521
|
+
|
|
522
|
+
class ThrottlingException
|
|
523
|
+
attr_accessor message: ::String
|
|
524
|
+
SENSITIVE: []
|
|
525
|
+
end
|
|
526
|
+
|
|
527
|
+
class UpdateEnrollmentStatusRequest
|
|
528
|
+
attr_accessor include_member_accounts: bool
|
|
529
|
+
attr_accessor status: ("Active" | "Inactive")
|
|
530
|
+
SENSITIVE: []
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
class UpdateEnrollmentStatusResponse
|
|
534
|
+
attr_accessor status: ::String
|
|
535
|
+
SENSITIVE: []
|
|
536
|
+
end
|
|
537
|
+
|
|
538
|
+
class UpdatePreferencesRequest
|
|
539
|
+
attr_accessor member_account_discount_visibility: ("All" | "None")
|
|
540
|
+
attr_accessor savings_estimation_mode: ("BeforeDiscounts" | "AfterDiscounts")
|
|
541
|
+
SENSITIVE: []
|
|
542
|
+
end
|
|
543
|
+
|
|
544
|
+
class UpdatePreferencesResponse
|
|
545
|
+
attr_accessor member_account_discount_visibility: ("All" | "None")
|
|
546
|
+
attr_accessor savings_estimation_mode: ("BeforeDiscounts" | "AfterDiscounts")
|
|
547
|
+
SENSITIVE: []
|
|
548
|
+
end
|
|
549
|
+
|
|
550
|
+
class Usage
|
|
551
|
+
attr_accessor operation: ::String
|
|
552
|
+
attr_accessor product_code: ::String
|
|
553
|
+
attr_accessor unit: ::String
|
|
554
|
+
attr_accessor usage_amount: ::Float
|
|
555
|
+
attr_accessor usage_type: ::String
|
|
556
|
+
SENSITIVE: []
|
|
557
|
+
end
|
|
558
|
+
|
|
559
|
+
class ValidationException
|
|
560
|
+
attr_accessor fields: ::Array[Types::ValidationExceptionDetail]
|
|
561
|
+
attr_accessor message: ::String
|
|
562
|
+
attr_accessor reason: ("FieldValidationFailed" | "Other")
|
|
563
|
+
SENSITIVE: []
|
|
564
|
+
end
|
|
565
|
+
|
|
566
|
+
class ValidationExceptionDetail
|
|
567
|
+
attr_accessor field_name: ::String
|
|
568
|
+
attr_accessor message: ::String
|
|
569
|
+
SENSITIVE: []
|
|
570
|
+
end
|
|
571
|
+
end
|
|
572
|
+
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.
|
|
4
|
+
version: 1.2.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:
|
|
11
|
+
date: 2024-01-26 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.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.
|
|
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.
|
|
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: []
|