aws-sdk-costoptimizationhub 1.5.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-costoptimizationhub/client.rb +437 -379
- data/lib/aws-sdk-costoptimizationhub/client_api.rb +152 -121
- data/lib/aws-sdk-costoptimizationhub/errors.rb +5 -5
- data/lib/aws-sdk-costoptimizationhub/types.rb +644 -530
- data/lib/aws-sdk-costoptimizationhub/waiters.rb +15 -0
- data/lib/aws-sdk-costoptimizationhub.rb +2 -1
- data/sig/client.rbs +50 -50
- data/sig/errors.rbs +1 -1
- data/sig/types.rbs +163 -127
- metadata +5 -4
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
require 'aws-sdk-core/waiters'
|
11
|
+
|
12
|
+
module Aws::CostOptimizationHub
|
13
|
+
module Waiters
|
14
|
+
end
|
15
|
+
end
|
@@ -16,6 +16,7 @@ require_relative 'aws-sdk-costoptimizationhub/client_api'
|
|
16
16
|
require_relative 'aws-sdk-costoptimizationhub/plugins/endpoints.rb'
|
17
17
|
require_relative 'aws-sdk-costoptimizationhub/client'
|
18
18
|
require_relative 'aws-sdk-costoptimizationhub/errors'
|
19
|
+
require_relative 'aws-sdk-costoptimizationhub/waiters'
|
19
20
|
require_relative 'aws-sdk-costoptimizationhub/resource'
|
20
21
|
require_relative 'aws-sdk-costoptimizationhub/endpoint_parameters'
|
21
22
|
require_relative 'aws-sdk-costoptimizationhub/endpoint_provider'
|
@@ -52,6 +53,6 @@ require_relative 'aws-sdk-costoptimizationhub/customizations'
|
|
52
53
|
# @!group service
|
53
54
|
module Aws::CostOptimizationHub
|
54
55
|
|
55
|
-
GEM_VERSION = '1.
|
56
|
+
GEM_VERSION = '1.7.0'
|
56
57
|
|
57
58
|
end
|
data/sig/client.rbs
CHANGED
@@ -75,8 +75,8 @@ module Aws
|
|
75
75
|
|
76
76
|
interface _GetPreferencesResponseSuccess
|
77
77
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetPreferencesResponse]
|
78
|
-
def member_account_discount_visibility: () -> ("All" | "None")
|
79
78
|
def savings_estimation_mode: () -> ("BeforeDiscounts" | "AfterDiscounts")
|
79
|
+
def member_account_discount_visibility: () -> ("All" | "None")
|
80
80
|
end
|
81
81
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostOptimizationHub/Client.html#get_preferences-instance_method
|
82
82
|
def get_preferences: (
|
@@ -85,28 +85,28 @@ module Aws
|
|
85
85
|
|
86
86
|
interface _GetRecommendationResponseSuccess
|
87
87
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetRecommendationResponse]
|
88
|
+
def recommendation_id: () -> ::String
|
89
|
+
def resource_id: () -> ::String
|
90
|
+
def resource_arn: () -> ::String
|
88
91
|
def account_id: () -> ::String
|
89
|
-
def action_type: () -> ("Rightsize" | "Stop" | "Upgrade" | "PurchaseSavingsPlans" | "PurchaseReservedInstances" | "MigrateToGraviton")
|
90
|
-
def cost_calculation_lookback_period_in_days: () -> ::Integer
|
91
92
|
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
93
|
def recommendation_lookback_period_in_days: () -> ::Integer
|
102
|
-
def
|
103
|
-
def
|
94
|
+
def cost_calculation_lookback_period_in_days: () -> ::Integer
|
95
|
+
def estimated_savings_percentage: () -> ::Float
|
96
|
+
def estimated_savings_over_cost_calculation_lookback_period: () -> ::Float
|
97
|
+
def current_resource_type: () -> ("Ec2Instance" | "LambdaFunction" | "EbsVolume" | "EcsService" | "Ec2AutoScalingGroup" | "Ec2InstanceSavingsPlans" | "ComputeSavingsPlans" | "SageMakerSavingsPlans" | "Ec2ReservedInstances" | "RdsReservedInstances" | "OpenSearchReservedInstances" | "RedshiftReservedInstances" | "ElastiCacheReservedInstances" | "RdsDbInstanceStorage" | "RdsDbInstance")
|
98
|
+
def recommended_resource_type: () -> ("Ec2Instance" | "LambdaFunction" | "EbsVolume" | "EcsService" | "Ec2AutoScalingGroup" | "Ec2InstanceSavingsPlans" | "ComputeSavingsPlans" | "SageMakerSavingsPlans" | "Ec2ReservedInstances" | "RdsReservedInstances" | "OpenSearchReservedInstances" | "RedshiftReservedInstances" | "ElastiCacheReservedInstances" | "RdsDbInstanceStorage" | "RdsDbInstance")
|
104
99
|
def region: () -> ::String
|
105
|
-
def
|
106
|
-
def
|
100
|
+
def source: () -> ("ComputeOptimizer" | "CostExplorer")
|
101
|
+
def last_refresh_timestamp: () -> ::Time
|
102
|
+
def estimated_monthly_savings: () -> ::Float
|
103
|
+
def estimated_monthly_cost: () -> ::Float
|
104
|
+
def implementation_effort: () -> ("VeryLow" | "Low" | "Medium" | "High" | "VeryHigh")
|
107
105
|
def restart_needed: () -> bool
|
106
|
+
def action_type: () -> ("Rightsize" | "Stop" | "Upgrade" | "PurchaseSavingsPlans" | "PurchaseReservedInstances" | "MigrateToGraviton")
|
108
107
|
def rollback_possible: () -> bool
|
109
|
-
def
|
108
|
+
def current_resource_details: () -> Types::ResourceDetails
|
109
|
+
def recommended_resource_details: () -> Types::ResourceDetails
|
110
110
|
def tags: () -> ::Array[Types::Tag]
|
111
111
|
end
|
112
112
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostOptimizationHub/Client.html#get_recommendation-instance_method
|
@@ -117,46 +117,46 @@ module Aws
|
|
117
117
|
|
118
118
|
interface _ListEnrollmentStatusesResponseSuccess
|
119
119
|
include ::Seahorse::Client::_ResponseSuccess[Types::ListEnrollmentStatusesResponse]
|
120
|
-
def include_member_accounts: () -> bool
|
121
120
|
def items: () -> ::Array[Types::AccountEnrollmentStatus]
|
121
|
+
def include_member_accounts: () -> bool
|
122
122
|
def next_token: () -> ::String
|
123
123
|
end
|
124
124
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostOptimizationHub/Client.html#list_enrollment_statuses-instance_method
|
125
125
|
def list_enrollment_statuses: (
|
126
|
-
?account_id: ::String,
|
127
126
|
?include_organization_info: bool,
|
128
|
-
?
|
129
|
-
?next_token: ::String
|
127
|
+
?account_id: ::String,
|
128
|
+
?next_token: ::String,
|
129
|
+
?max_results: ::Integer
|
130
130
|
) -> _ListEnrollmentStatusesResponseSuccess
|
131
131
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListEnrollmentStatusesResponseSuccess
|
132
132
|
|
133
133
|
interface _ListRecommendationSummariesResponseSuccess
|
134
134
|
include ::Seahorse::Client::_ResponseSuccess[Types::ListRecommendationSummariesResponse]
|
135
|
-
def currency_code: () -> ::String
|
136
135
|
def estimated_total_deduped_savings: () -> ::Float
|
137
|
-
def group_by: () -> ::String
|
138
136
|
def items: () -> ::Array[Types::RecommendationSummary]
|
137
|
+
def group_by: () -> ::String
|
138
|
+
def currency_code: () -> ::String
|
139
139
|
def next_token: () -> ::String
|
140
140
|
end
|
141
141
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostOptimizationHub/Client.html#list_recommendation_summaries-instance_method
|
142
142
|
def list_recommendation_summaries: (
|
143
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
144
|
restart_needed: bool?,
|
153
145
|
rollback_possible: bool?,
|
146
|
+
implementation_efforts: Array[("VeryLow" | "Low" | "Medium" | "High" | "VeryHigh")]?,
|
147
|
+
account_ids: Array[::String]?,
|
148
|
+
regions: Array[::String]?,
|
149
|
+
resource_types: Array[("Ec2Instance" | "LambdaFunction" | "EbsVolume" | "EcsService" | "Ec2AutoScalingGroup" | "Ec2InstanceSavingsPlans" | "ComputeSavingsPlans" | "SageMakerSavingsPlans" | "Ec2ReservedInstances" | "RdsReservedInstances" | "OpenSearchReservedInstances" | "RedshiftReservedInstances" | "ElastiCacheReservedInstances" | "RdsDbInstanceStorage" | "RdsDbInstance")]?,
|
150
|
+
action_types: Array[("Rightsize" | "Stop" | "Upgrade" | "PurchaseSavingsPlans" | "PurchaseReservedInstances" | "MigrateToGraviton")]?,
|
154
151
|
tags: Array[
|
155
152
|
{
|
156
153
|
key: ::String?,
|
157
154
|
value: ::String?
|
158
155
|
},
|
159
|
-
]
|
156
|
+
]?,
|
157
|
+
resource_ids: Array[::String]?,
|
158
|
+
resource_arns: Array[::String]?,
|
159
|
+
recommendation_ids: Array[::String]?
|
160
160
|
},
|
161
161
|
group_by: ::String,
|
162
162
|
?max_results: ::Integer,
|
@@ -172,30 +172,30 @@ module Aws
|
|
172
172
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostOptimizationHub/Client.html#list_recommendations-instance_method
|
173
173
|
def list_recommendations: (
|
174
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
175
|
restart_needed: bool?,
|
184
176
|
rollback_possible: bool?,
|
177
|
+
implementation_efforts: Array[("VeryLow" | "Low" | "Medium" | "High" | "VeryHigh")]?,
|
178
|
+
account_ids: Array[::String]?,
|
179
|
+
regions: Array[::String]?,
|
180
|
+
resource_types: Array[("Ec2Instance" | "LambdaFunction" | "EbsVolume" | "EcsService" | "Ec2AutoScalingGroup" | "Ec2InstanceSavingsPlans" | "ComputeSavingsPlans" | "SageMakerSavingsPlans" | "Ec2ReservedInstances" | "RdsReservedInstances" | "OpenSearchReservedInstances" | "RedshiftReservedInstances" | "ElastiCacheReservedInstances" | "RdsDbInstanceStorage" | "RdsDbInstance")]?,
|
181
|
+
action_types: Array[("Rightsize" | "Stop" | "Upgrade" | "PurchaseSavingsPlans" | "PurchaseReservedInstances" | "MigrateToGraviton")]?,
|
185
182
|
tags: Array[
|
186
183
|
{
|
187
184
|
key: ::String?,
|
188
185
|
value: ::String?
|
189
186
|
},
|
190
|
-
]
|
187
|
+
]?,
|
188
|
+
resource_ids: Array[::String]?,
|
189
|
+
resource_arns: Array[::String]?,
|
190
|
+
recommendation_ids: Array[::String]?
|
191
191
|
},
|
192
|
-
?include_all_recommendations: bool,
|
193
|
-
?max_results: ::Integer,
|
194
|
-
?next_token: ::String,
|
195
192
|
?order_by: {
|
196
193
|
dimension: ::String?,
|
197
194
|
order: ("Asc" | "Desc")?
|
198
|
-
}
|
195
|
+
},
|
196
|
+
?include_all_recommendations: bool,
|
197
|
+
?max_results: ::Integer,
|
198
|
+
?next_token: ::String
|
199
199
|
) -> _ListRecommendationsResponseSuccess
|
200
200
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListRecommendationsResponseSuccess
|
201
201
|
|
@@ -205,20 +205,20 @@ module Aws
|
|
205
205
|
end
|
206
206
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostOptimizationHub/Client.html#update_enrollment_status-instance_method
|
207
207
|
def update_enrollment_status: (
|
208
|
-
|
209
|
-
|
208
|
+
status: ("Active" | "Inactive"),
|
209
|
+
?include_member_accounts: bool
|
210
210
|
) -> _UpdateEnrollmentStatusResponseSuccess
|
211
211
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateEnrollmentStatusResponseSuccess
|
212
212
|
|
213
213
|
interface _UpdatePreferencesResponseSuccess
|
214
214
|
include ::Seahorse::Client::_ResponseSuccess[Types::UpdatePreferencesResponse]
|
215
|
-
def member_account_discount_visibility: () -> ("All" | "None")
|
216
215
|
def savings_estimation_mode: () -> ("BeforeDiscounts" | "AfterDiscounts")
|
216
|
+
def member_account_discount_visibility: () -> ("All" | "None")
|
217
217
|
end
|
218
218
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostOptimizationHub/Client.html#update_preferences-instance_method
|
219
219
|
def update_preferences: (
|
220
|
-
?
|
221
|
-
?
|
220
|
+
?savings_estimation_mode: ("BeforeDiscounts" | "AfterDiscounts"),
|
221
|
+
?member_account_discount_visibility: ("All" | "None")
|
222
222
|
) -> _UpdatePreferencesResponseSuccess
|
223
223
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdatePreferencesResponseSuccess
|
224
224
|
end
|
data/sig/errors.rbs
CHANGED