aws-sdk-computeoptimizerautomation 1.0.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.
data/sig/client.rbs ADDED
@@ -0,0 +1,697 @@
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 ComputeOptimizerAutomation
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#initialize-instance_method
14
+ def self.new: (
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?account_id: String,
19
+ ?active_endpoint_cache: bool,
20
+ ?adaptive_retry_wait_to_fill: bool,
21
+ ?auth_scheme_preference: Array[String],
22
+ ?client_side_monitoring: bool,
23
+ ?client_side_monitoring_client_id: String,
24
+ ?client_side_monitoring_host: String,
25
+ ?client_side_monitoring_port: Integer,
26
+ ?client_side_monitoring_publisher: untyped,
27
+ ?convert_params: bool,
28
+ ?correct_clock_skew: bool,
29
+ ?defaults_mode: String,
30
+ ?disable_host_prefix_injection: bool,
31
+ ?disable_request_compression: bool,
32
+ ?endpoint: String,
33
+ ?endpoint_cache_max_entries: Integer,
34
+ ?endpoint_cache_max_threads: Integer,
35
+ ?endpoint_cache_poll_interval: Integer,
36
+ ?endpoint_discovery: bool,
37
+ ?ignore_configured_endpoint_urls: bool,
38
+ ?log_formatter: untyped,
39
+ ?log_level: Symbol,
40
+ ?logger: untyped,
41
+ ?max_attempts: Integer,
42
+ ?profile: String,
43
+ ?request_checksum_calculation: String,
44
+ ?request_min_compression_size_bytes: Integer,
45
+ ?response_checksum_validation: String,
46
+ ?retry_backoff: Proc,
47
+ ?retry_base_delay: Float,
48
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
49
+ ?retry_limit: Integer,
50
+ ?retry_max_delay: Integer,
51
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
52
+ ?sdk_ua_app_id: String,
53
+ ?secret_access_key: String,
54
+ ?session_token: String,
55
+ ?sigv4a_signing_region_set: Array[String],
56
+ ?simple_json: bool,
57
+ ?stub_responses: untyped,
58
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
59
+ ?token_provider: untyped,
60
+ ?use_dualstack_endpoint: bool,
61
+ ?use_fips_endpoint: bool,
62
+ ?validate_params: bool,
63
+ ?endpoint_provider: untyped,
64
+ ?http_proxy: String,
65
+ ?http_open_timeout: (Float | Integer),
66
+ ?http_read_timeout: (Float | Integer),
67
+ ?http_idle_timeout: (Float | Integer),
68
+ ?http_continue_timeout: (Float | Integer),
69
+ ?ssl_timeout: (Float | Integer | nil),
70
+ ?http_wire_trace: bool,
71
+ ?ssl_verify_peer: bool,
72
+ ?ssl_ca_bundle: String,
73
+ ?ssl_ca_directory: String,
74
+ ?ssl_ca_store: String,
75
+ ?on_chunk_received: Proc,
76
+ ?on_chunk_sent: Proc,
77
+ ?raise_response_errors: bool
78
+ ) -> instance
79
+ | (?Hash[Symbol, untyped]) -> instance
80
+
81
+
82
+ interface _AssociateAccountsResponseSuccess
83
+ include ::Seahorse::Client::_ResponseSuccess[Types::AssociateAccountsResponse]
84
+ def account_ids: () -> ::Array[::String]
85
+ def errors: () -> ::Array[::String]
86
+ end
87
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#associate_accounts-instance_method
88
+ def associate_accounts: (
89
+ account_ids: Array[::String],
90
+ ?client_token: ::String
91
+ ) -> _AssociateAccountsResponseSuccess
92
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _AssociateAccountsResponseSuccess
93
+
94
+ interface _CreateAutomationRuleResponseSuccess
95
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateAutomationRuleResponse]
96
+ def rule_arn: () -> ::String
97
+ def rule_id: () -> ::String
98
+ def name: () -> ::String
99
+ def description: () -> ::String
100
+ def rule_type: () -> ("OrganizationRule" | "AccountRule")
101
+ def rule_revision: () -> ::Integer
102
+ def organization_configuration: () -> Types::OrganizationConfiguration
103
+ def priority: () -> ::String
104
+ def recommended_action_types: () -> ::Array[("SnapshotAndDeleteUnattachedEbsVolume" | "UpgradeEbsVolumeType")]
105
+ def criteria: () -> Types::Criteria
106
+ def schedule: () -> Types::Schedule
107
+ def status: () -> ("Active" | "Inactive")
108
+ def tags: () -> ::Array[Types::Tag]
109
+ def created_timestamp: () -> ::Time
110
+ end
111
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#create_automation_rule-instance_method
112
+ def create_automation_rule: (
113
+ name: ::String,
114
+ ?description: ::String,
115
+ rule_type: ("OrganizationRule" | "AccountRule"),
116
+ ?organization_configuration: {
117
+ rule_apply_order: ("BeforeAccountRules" | "AfterAccountRules")?,
118
+ account_ids: Array[::String]?
119
+ },
120
+ ?priority: ::String,
121
+ recommended_action_types: Array[("SnapshotAndDeleteUnattachedEbsVolume" | "UpgradeEbsVolumeType")],
122
+ ?criteria: {
123
+ region: Array[
124
+ {
125
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
126
+ values: Array[::String]?
127
+ },
128
+ ]?,
129
+ resource_arn: Array[
130
+ {
131
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
132
+ values: Array[::String]?
133
+ },
134
+ ]?,
135
+ ebs_volume_type: Array[
136
+ {
137
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
138
+ values: Array[::String]?
139
+ },
140
+ ]?,
141
+ ebs_volume_size_in_gib: Array[
142
+ {
143
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
144
+ values: Array[::Integer]?
145
+ },
146
+ ]?,
147
+ estimated_monthly_savings: Array[
148
+ {
149
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
150
+ values: Array[::Float]?
151
+ },
152
+ ]?,
153
+ resource_tag: Array[
154
+ {
155
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
156
+ key: ::String?,
157
+ values: Array[::String]?
158
+ },
159
+ ]?,
160
+ look_back_period_in_days: Array[
161
+ {
162
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
163
+ values: Array[::Integer]?
164
+ },
165
+ ]?,
166
+ restart_needed: Array[
167
+ {
168
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
169
+ values: Array[::String]?
170
+ },
171
+ ]?
172
+ },
173
+ schedule: {
174
+ schedule_expression: ::String?,
175
+ schedule_expression_timezone: ::String?,
176
+ execution_window_in_minutes: ::Integer?
177
+ },
178
+ status: ("Active" | "Inactive"),
179
+ ?tags: Array[
180
+ {
181
+ key: ::String,
182
+ value: ::String
183
+ },
184
+ ],
185
+ ?client_token: ::String
186
+ ) -> _CreateAutomationRuleResponseSuccess
187
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateAutomationRuleResponseSuccess
188
+
189
+ interface _DeleteAutomationRuleResponseSuccess
190
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteAutomationRuleResponse]
191
+ end
192
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#delete_automation_rule-instance_method
193
+ def delete_automation_rule: (
194
+ rule_arn: ::String,
195
+ rule_revision: ::Integer,
196
+ ?client_token: ::String
197
+ ) -> _DeleteAutomationRuleResponseSuccess
198
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteAutomationRuleResponseSuccess
199
+
200
+ interface _DisassociateAccountsResponseSuccess
201
+ include ::Seahorse::Client::_ResponseSuccess[Types::DisassociateAccountsResponse]
202
+ def account_ids: () -> ::Array[::String]
203
+ def errors: () -> ::Array[::String]
204
+ end
205
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#disassociate_accounts-instance_method
206
+ def disassociate_accounts: (
207
+ account_ids: Array[::String],
208
+ ?client_token: ::String
209
+ ) -> _DisassociateAccountsResponseSuccess
210
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DisassociateAccountsResponseSuccess
211
+
212
+ interface _GetAutomationEventResponseSuccess
213
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetAutomationEventResponse]
214
+ def event_id: () -> ::String
215
+ def event_description: () -> ::String
216
+ def event_type: () -> ("SnapshotAndDeleteUnattachedEbsVolume" | "UpgradeEbsVolumeType")
217
+ def event_status: () -> ("Ready" | "InProgress" | "Complete" | "Failed" | "Cancelled" | "RollbackReady" | "RollbackInProgress" | "RollbackComplete" | "RollbackFailed")
218
+ def event_status_reason: () -> ::String
219
+ def resource_arn: () -> ::String
220
+ def resource_id: () -> ::String
221
+ def recommended_action_id: () -> ::String
222
+ def account_id: () -> ::String
223
+ def region: () -> ::String
224
+ def rule_id: () -> ::String
225
+ def resource_type: () -> ("EbsVolume")
226
+ def created_timestamp: () -> ::Time
227
+ def completed_timestamp: () -> ::Time
228
+ def estimated_monthly_savings: () -> Types::EstimatedMonthlySavings
229
+ end
230
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#get_automation_event-instance_method
231
+ def get_automation_event: (
232
+ event_id: ::String
233
+ ) -> _GetAutomationEventResponseSuccess
234
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAutomationEventResponseSuccess
235
+
236
+ interface _GetAutomationRuleResponseSuccess
237
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetAutomationRuleResponse]
238
+ def rule_arn: () -> ::String
239
+ def rule_id: () -> ::String
240
+ def name: () -> ::String
241
+ def description: () -> ::String
242
+ def rule_type: () -> ("OrganizationRule" | "AccountRule")
243
+ def rule_revision: () -> ::Integer
244
+ def account_id: () -> ::String
245
+ def organization_configuration: () -> Types::OrganizationConfiguration
246
+ def priority: () -> ::String
247
+ def recommended_action_types: () -> ::Array[("SnapshotAndDeleteUnattachedEbsVolume" | "UpgradeEbsVolumeType")]
248
+ def criteria: () -> Types::Criteria
249
+ def schedule: () -> Types::Schedule
250
+ def status: () -> ("Active" | "Inactive")
251
+ def tags: () -> ::Array[Types::Tag]
252
+ def created_timestamp: () -> ::Time
253
+ def last_updated_timestamp: () -> ::Time
254
+ end
255
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#get_automation_rule-instance_method
256
+ def get_automation_rule: (
257
+ rule_arn: ::String
258
+ ) -> _GetAutomationRuleResponseSuccess
259
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAutomationRuleResponseSuccess
260
+
261
+ interface _GetEnrollmentConfigurationResponseSuccess
262
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetEnrollmentConfigurationResponse]
263
+ def status: () -> ("Active" | "Inactive" | "Pending" | "Failed")
264
+ def status_reason: () -> ::String
265
+ def organization_rule_mode: () -> ("AnyAllowed" | "NoneAllowed")
266
+ def last_updated_timestamp: () -> ::Time
267
+ end
268
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#get_enrollment_configuration-instance_method
269
+ def get_enrollment_configuration: (
270
+ ) -> _GetEnrollmentConfigurationResponseSuccess
271
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetEnrollmentConfigurationResponseSuccess
272
+
273
+ interface _ListAccountsResponseSuccess
274
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListAccountsResponse]
275
+ def accounts: () -> ::Array[Types::AccountInfo]
276
+ def next_token: () -> ::String
277
+ end
278
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#list_accounts-instance_method
279
+ def list_accounts: (
280
+ ?max_results: ::Integer,
281
+ ?next_token: ::String
282
+ ) -> _ListAccountsResponseSuccess
283
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAccountsResponseSuccess
284
+
285
+ interface _ListAutomationEventStepsResponseSuccess
286
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListAutomationEventStepsResponse]
287
+ def automation_event_steps: () -> ::Array[Types::AutomationEventStep]
288
+ def next_token: () -> ::String
289
+ end
290
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#list_automation_event_steps-instance_method
291
+ def list_automation_event_steps: (
292
+ event_id: ::String,
293
+ ?max_results: ::Integer,
294
+ ?next_token: ::String
295
+ ) -> _ListAutomationEventStepsResponseSuccess
296
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAutomationEventStepsResponseSuccess
297
+
298
+ interface _ListAutomationEventSummariesResponseSuccess
299
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListAutomationEventSummariesResponse]
300
+ def automation_event_summaries: () -> ::Array[Types::AutomationEventSummary]
301
+ def next_token: () -> ::String
302
+ end
303
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#list_automation_event_summaries-instance_method
304
+ def list_automation_event_summaries: (
305
+ ?filters: Array[
306
+ {
307
+ name: ("AccountId" | "ResourceType" | "EventType" | "EventStatus"),
308
+ values: Array[::String]
309
+ },
310
+ ],
311
+ ?start_date_inclusive: ::String,
312
+ ?end_date_exclusive: ::String,
313
+ ?max_results: ::Integer,
314
+ ?next_token: ::String
315
+ ) -> _ListAutomationEventSummariesResponseSuccess
316
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAutomationEventSummariesResponseSuccess
317
+
318
+ interface _ListAutomationEventsResponseSuccess
319
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListAutomationEventsResponse]
320
+ def automation_events: () -> ::Array[Types::AutomationEvent]
321
+ def next_token: () -> ::String
322
+ end
323
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#list_automation_events-instance_method
324
+ def list_automation_events: (
325
+ ?filters: Array[
326
+ {
327
+ name: ("AccountId" | "ResourceType" | "EventType" | "EventStatus"),
328
+ values: Array[::String]
329
+ },
330
+ ],
331
+ ?start_time_inclusive: ::Time,
332
+ ?end_time_exclusive: ::Time,
333
+ ?max_results: ::Integer,
334
+ ?next_token: ::String
335
+ ) -> _ListAutomationEventsResponseSuccess
336
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAutomationEventsResponseSuccess
337
+
338
+ interface _ListAutomationRulePreviewResponseSuccess
339
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListAutomationRulePreviewResponse]
340
+ def preview_results: () -> ::Array[Types::PreviewResult]
341
+ def next_token: () -> ::String
342
+ end
343
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#list_automation_rule_preview-instance_method
344
+ def list_automation_rule_preview: (
345
+ rule_type: ("OrganizationRule" | "AccountRule"),
346
+ ?organization_scope: {
347
+ account_ids: Array[::String]?
348
+ },
349
+ recommended_action_types: Array[("SnapshotAndDeleteUnattachedEbsVolume" | "UpgradeEbsVolumeType")],
350
+ ?criteria: {
351
+ region: Array[
352
+ {
353
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
354
+ values: Array[::String]?
355
+ },
356
+ ]?,
357
+ resource_arn: Array[
358
+ {
359
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
360
+ values: Array[::String]?
361
+ },
362
+ ]?,
363
+ ebs_volume_type: Array[
364
+ {
365
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
366
+ values: Array[::String]?
367
+ },
368
+ ]?,
369
+ ebs_volume_size_in_gib: Array[
370
+ {
371
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
372
+ values: Array[::Integer]?
373
+ },
374
+ ]?,
375
+ estimated_monthly_savings: Array[
376
+ {
377
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
378
+ values: Array[::Float]?
379
+ },
380
+ ]?,
381
+ resource_tag: Array[
382
+ {
383
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
384
+ key: ::String?,
385
+ values: Array[::String]?
386
+ },
387
+ ]?,
388
+ look_back_period_in_days: Array[
389
+ {
390
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
391
+ values: Array[::Integer]?
392
+ },
393
+ ]?,
394
+ restart_needed: Array[
395
+ {
396
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
397
+ values: Array[::String]?
398
+ },
399
+ ]?
400
+ },
401
+ ?max_results: ::Integer,
402
+ ?next_token: ::String
403
+ ) -> _ListAutomationRulePreviewResponseSuccess
404
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAutomationRulePreviewResponseSuccess
405
+
406
+ interface _ListAutomationRulePreviewSummariesResponseSuccess
407
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListAutomationRulePreviewSummariesResponse]
408
+ def preview_result_summaries: () -> ::Array[Types::PreviewResultSummary]
409
+ def next_token: () -> ::String
410
+ end
411
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#list_automation_rule_preview_summaries-instance_method
412
+ def list_automation_rule_preview_summaries: (
413
+ rule_type: ("OrganizationRule" | "AccountRule"),
414
+ ?organization_scope: {
415
+ account_ids: Array[::String]?
416
+ },
417
+ recommended_action_types: Array[("SnapshotAndDeleteUnattachedEbsVolume" | "UpgradeEbsVolumeType")],
418
+ ?criteria: {
419
+ region: Array[
420
+ {
421
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
422
+ values: Array[::String]?
423
+ },
424
+ ]?,
425
+ resource_arn: Array[
426
+ {
427
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
428
+ values: Array[::String]?
429
+ },
430
+ ]?,
431
+ ebs_volume_type: Array[
432
+ {
433
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
434
+ values: Array[::String]?
435
+ },
436
+ ]?,
437
+ ebs_volume_size_in_gib: Array[
438
+ {
439
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
440
+ values: Array[::Integer]?
441
+ },
442
+ ]?,
443
+ estimated_monthly_savings: Array[
444
+ {
445
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
446
+ values: Array[::Float]?
447
+ },
448
+ ]?,
449
+ resource_tag: Array[
450
+ {
451
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
452
+ key: ::String?,
453
+ values: Array[::String]?
454
+ },
455
+ ]?,
456
+ look_back_period_in_days: Array[
457
+ {
458
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
459
+ values: Array[::Integer]?
460
+ },
461
+ ]?,
462
+ restart_needed: Array[
463
+ {
464
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
465
+ values: Array[::String]?
466
+ },
467
+ ]?
468
+ },
469
+ ?max_results: ::Integer,
470
+ ?next_token: ::String
471
+ ) -> _ListAutomationRulePreviewSummariesResponseSuccess
472
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAutomationRulePreviewSummariesResponseSuccess
473
+
474
+ interface _ListAutomationRulesResponseSuccess
475
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListAutomationRulesResponse]
476
+ def automation_rules: () -> ::Array[Types::AutomationRule]
477
+ def next_token: () -> ::String
478
+ end
479
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#list_automation_rules-instance_method
480
+ def list_automation_rules: (
481
+ ?filters: Array[
482
+ {
483
+ name: ("Name" | "RecommendedActionType" | "Status" | "RuleType" | "OrganizationConfigurationRuleApplyOrder" | "AccountId"),
484
+ values: Array[::String]
485
+ },
486
+ ],
487
+ ?max_results: ::Integer,
488
+ ?next_token: ::String
489
+ ) -> _ListAutomationRulesResponseSuccess
490
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAutomationRulesResponseSuccess
491
+
492
+ interface _ListRecommendedActionSummariesResponseSuccess
493
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListRecommendedActionSummariesResponse]
494
+ def recommended_action_summaries: () -> ::Array[Types::RecommendedActionSummary]
495
+ def next_token: () -> ::String
496
+ end
497
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#list_recommended_action_summaries-instance_method
498
+ def list_recommended_action_summaries: (
499
+ ?filters: Array[
500
+ {
501
+ name: ("ResourceType" | "RecommendedActionType" | "ResourceId" | "LookBackPeriodInDays" | "CurrentResourceDetailsEbsVolumeType" | "ResourceTagsKey" | "ResourceTagsValue" | "AccountId" | "RestartNeeded"),
502
+ values: Array[::String]
503
+ },
504
+ ],
505
+ ?max_results: ::Integer,
506
+ ?next_token: ::String
507
+ ) -> _ListRecommendedActionSummariesResponseSuccess
508
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListRecommendedActionSummariesResponseSuccess
509
+
510
+ interface _ListRecommendedActionsResponseSuccess
511
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListRecommendedActionsResponse]
512
+ def recommended_actions: () -> ::Array[Types::RecommendedAction]
513
+ def next_token: () -> ::String
514
+ end
515
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#list_recommended_actions-instance_method
516
+ def list_recommended_actions: (
517
+ ?filters: Array[
518
+ {
519
+ name: ("ResourceType" | "RecommendedActionType" | "ResourceId" | "LookBackPeriodInDays" | "CurrentResourceDetailsEbsVolumeType" | "ResourceTagsKey" | "ResourceTagsValue" | "AccountId" | "RestartNeeded"),
520
+ values: Array[::String]
521
+ },
522
+ ],
523
+ ?max_results: ::Integer,
524
+ ?next_token: ::String
525
+ ) -> _ListRecommendedActionsResponseSuccess
526
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListRecommendedActionsResponseSuccess
527
+
528
+ interface _ListTagsForResourceResponseSuccess
529
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsForResourceResponse]
530
+ def tags: () -> ::Array[Types::Tag]
531
+ end
532
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#list_tags_for_resource-instance_method
533
+ def list_tags_for_resource: (
534
+ resource_arn: ::String
535
+ ) -> _ListTagsForResourceResponseSuccess
536
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess
537
+
538
+ interface _RollbackAutomationEventResponseSuccess
539
+ include ::Seahorse::Client::_ResponseSuccess[Types::RollbackAutomationEventResponse]
540
+ def event_id: () -> ::String
541
+ def event_status: () -> ("Ready" | "InProgress" | "Complete" | "Failed" | "Cancelled" | "RollbackReady" | "RollbackInProgress" | "RollbackComplete" | "RollbackFailed")
542
+ end
543
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#rollback_automation_event-instance_method
544
+ def rollback_automation_event: (
545
+ event_id: ::String,
546
+ ?client_token: ::String
547
+ ) -> _RollbackAutomationEventResponseSuccess
548
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RollbackAutomationEventResponseSuccess
549
+
550
+ interface _StartAutomationEventResponseSuccess
551
+ include ::Seahorse::Client::_ResponseSuccess[Types::StartAutomationEventResponse]
552
+ def recommended_action_id: () -> ::String
553
+ def event_id: () -> ::String
554
+ def event_status: () -> ("Ready" | "InProgress" | "Complete" | "Failed" | "Cancelled" | "RollbackReady" | "RollbackInProgress" | "RollbackComplete" | "RollbackFailed")
555
+ end
556
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#start_automation_event-instance_method
557
+ def start_automation_event: (
558
+ recommended_action_id: ::String,
559
+ ?client_token: ::String
560
+ ) -> _StartAutomationEventResponseSuccess
561
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartAutomationEventResponseSuccess
562
+
563
+ interface _TagResourceResponseSuccess
564
+ include ::Seahorse::Client::_ResponseSuccess[Types::TagResourceResponse]
565
+ end
566
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#tag_resource-instance_method
567
+ def tag_resource: (
568
+ resource_arn: ::String,
569
+ rule_revision: ::Integer,
570
+ tags: Array[
571
+ {
572
+ key: ::String,
573
+ value: ::String
574
+ },
575
+ ],
576
+ ?client_token: ::String
577
+ ) -> _TagResourceResponseSuccess
578
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TagResourceResponseSuccess
579
+
580
+ interface _UntagResourceResponseSuccess
581
+ include ::Seahorse::Client::_ResponseSuccess[Types::UntagResourceResponse]
582
+ end
583
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#untag_resource-instance_method
584
+ def untag_resource: (
585
+ resource_arn: ::String,
586
+ rule_revision: ::Integer,
587
+ tag_keys: Array[::String],
588
+ ?client_token: ::String
589
+ ) -> _UntagResourceResponseSuccess
590
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UntagResourceResponseSuccess
591
+
592
+ interface _UpdateAutomationRuleResponseSuccess
593
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateAutomationRuleResponse]
594
+ def rule_arn: () -> ::String
595
+ def rule_revision: () -> ::Integer
596
+ def name: () -> ::String
597
+ def description: () -> ::String
598
+ def rule_type: () -> ("OrganizationRule" | "AccountRule")
599
+ def organization_configuration: () -> Types::OrganizationConfiguration
600
+ def priority: () -> ::String
601
+ def recommended_action_types: () -> ::Array[("SnapshotAndDeleteUnattachedEbsVolume" | "UpgradeEbsVolumeType")]
602
+ def criteria: () -> Types::Criteria
603
+ def schedule: () -> Types::Schedule
604
+ def status: () -> ("Active" | "Inactive")
605
+ def created_timestamp: () -> ::Time
606
+ def last_updated_timestamp: () -> ::Time
607
+ end
608
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#update_automation_rule-instance_method
609
+ def update_automation_rule: (
610
+ rule_arn: ::String,
611
+ rule_revision: ::Integer,
612
+ ?name: ::String,
613
+ ?description: ::String,
614
+ ?rule_type: ("OrganizationRule" | "AccountRule"),
615
+ ?organization_configuration: {
616
+ rule_apply_order: ("BeforeAccountRules" | "AfterAccountRules")?,
617
+ account_ids: Array[::String]?
618
+ },
619
+ ?priority: ::String,
620
+ ?recommended_action_types: Array[("SnapshotAndDeleteUnattachedEbsVolume" | "UpgradeEbsVolumeType")],
621
+ ?criteria: {
622
+ region: Array[
623
+ {
624
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
625
+ values: Array[::String]?
626
+ },
627
+ ]?,
628
+ resource_arn: Array[
629
+ {
630
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
631
+ values: Array[::String]?
632
+ },
633
+ ]?,
634
+ ebs_volume_type: Array[
635
+ {
636
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
637
+ values: Array[::String]?
638
+ },
639
+ ]?,
640
+ ebs_volume_size_in_gib: Array[
641
+ {
642
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
643
+ values: Array[::Integer]?
644
+ },
645
+ ]?,
646
+ estimated_monthly_savings: Array[
647
+ {
648
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
649
+ values: Array[::Float]?
650
+ },
651
+ ]?,
652
+ resource_tag: Array[
653
+ {
654
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
655
+ key: ::String?,
656
+ values: Array[::String]?
657
+ },
658
+ ]?,
659
+ look_back_period_in_days: Array[
660
+ {
661
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
662
+ values: Array[::Integer]?
663
+ },
664
+ ]?,
665
+ restart_needed: Array[
666
+ {
667
+ comparison: ("StringEquals" | "StringNotEquals" | "StringEqualsIgnoreCase" | "StringNotEqualsIgnoreCase" | "StringLike" | "StringNotLike" | "NumericEquals" | "NumericNotEquals" | "NumericLessThan" | "NumericLessThanEquals" | "NumericGreaterThan" | "NumericGreaterThanEquals")?,
668
+ values: Array[::String]?
669
+ },
670
+ ]?
671
+ },
672
+ ?schedule: {
673
+ schedule_expression: ::String?,
674
+ schedule_expression_timezone: ::String?,
675
+ execution_window_in_minutes: ::Integer?
676
+ },
677
+ ?status: ("Active" | "Inactive"),
678
+ ?client_token: ::String
679
+ ) -> _UpdateAutomationRuleResponseSuccess
680
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateAutomationRuleResponseSuccess
681
+
682
+ interface _UpdateEnrollmentConfigurationResponseSuccess
683
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateEnrollmentConfigurationResponse]
684
+ def status: () -> ("Active" | "Inactive" | "Pending" | "Failed")
685
+ def status_reason: () -> ::String
686
+ def last_updated_timestamp: () -> ::Time
687
+ end
688
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ComputeOptimizerAutomation/Client.html#update_enrollment_configuration-instance_method
689
+ def update_enrollment_configuration: (
690
+ status: ("Active" | "Inactive" | "Pending" | "Failed"),
691
+ ?client_token: ::String
692
+ ) -> _UpdateEnrollmentConfigurationResponseSuccess
693
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateEnrollmentConfigurationResponseSuccess
694
+ end
695
+ end
696
+ end
697
+