aws-sdk-arcregionswitch 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,679 @@
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 ARCRegionswitch
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ARCRegionswitch/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 _ApprovePlanExecutionStepResponseSuccess
83
+ include ::Seahorse::Client::_ResponseSuccess[Types::ApprovePlanExecutionStepResponse]
84
+ end
85
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ARCRegionswitch/Client.html#approve_plan_execution_step-instance_method
86
+ def approve_plan_execution_step: (
87
+ plan_arn: ::String,
88
+ execution_id: ::String,
89
+ step_name: ::String,
90
+ approval: ("approve" | "decline"),
91
+ ?comment: ::String
92
+ ) -> _ApprovePlanExecutionStepResponseSuccess
93
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ApprovePlanExecutionStepResponseSuccess
94
+
95
+ interface _CancelPlanExecutionResponseSuccess
96
+ include ::Seahorse::Client::_ResponseSuccess[Types::CancelPlanExecutionResponse]
97
+ end
98
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ARCRegionswitch/Client.html#cancel_plan_execution-instance_method
99
+ def cancel_plan_execution: (
100
+ plan_arn: ::String,
101
+ execution_id: ::String,
102
+ ?comment: ::String
103
+ ) -> _CancelPlanExecutionResponseSuccess
104
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CancelPlanExecutionResponseSuccess
105
+
106
+ interface _CreatePlanResponseSuccess
107
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreatePlanResponse]
108
+ def plan: () -> Types::Plan
109
+ end
110
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ARCRegionswitch/Client.html#create_plan-instance_method
111
+ def create_plan: (
112
+ ?description: ::String,
113
+ workflows: Array[
114
+ {
115
+ steps: Array[
116
+ {
117
+ name: ::String,
118
+ description: ::String?,
119
+ execution_block_configuration: {
120
+ custom_action_lambda_config: {
121
+ timeout_minutes: ::Integer?,
122
+ lambdas: Array[
123
+ {
124
+ cross_account_role: ::String?,
125
+ external_id: ::String?,
126
+ arn: ::String?
127
+ },
128
+ ],
129
+ retry_interval_minutes: ::Float,
130
+ region_to_run: ("activatingRegion" | "deactivatingRegion"),
131
+ ungraceful: {
132
+ behavior: ("skip")?
133
+ }?
134
+ }?,
135
+ ec2_asg_capacity_increase_config: {
136
+ timeout_minutes: ::Integer?,
137
+ asgs: Array[
138
+ {
139
+ cross_account_role: ::String?,
140
+ external_id: ::String?,
141
+ arn: ::String?
142
+ },
143
+ ],
144
+ ungraceful: {
145
+ minimum_success_percentage: ::Integer
146
+ }?,
147
+ target_percent: ::Integer?,
148
+ capacity_monitoring_approach: ("sampledMaxInLast24Hours" | "autoscalingMaxInLast24Hours")?
149
+ }?,
150
+ execution_approval_config: {
151
+ timeout_minutes: ::Integer?,
152
+ approval_role: ::String
153
+ }?,
154
+ arc_routing_control_config: {
155
+ timeout_minutes: ::Integer?,
156
+ cross_account_role: ::String?,
157
+ external_id: ::String?,
158
+ region_and_routing_controls: Hash[::String, Array[
159
+ {
160
+ routing_control_arn: ::String,
161
+ state: ("On" | "Off")
162
+ },
163
+ ]]
164
+ }?,
165
+ global_aurora_config: {
166
+ timeout_minutes: ::Integer?,
167
+ cross_account_role: ::String?,
168
+ external_id: ::String?,
169
+ behavior: ("switchoverOnly" | "failover"),
170
+ ungraceful: {
171
+ ungraceful: ("failover")?
172
+ }?,
173
+ global_cluster_identifier: ::String,
174
+ database_cluster_arns: Array[::String]
175
+ }?,
176
+ parallel_config: {
177
+ steps: untyped
178
+ }?,
179
+ region_switch_plan_config: {
180
+ cross_account_role: ::String?,
181
+ external_id: ::String?,
182
+ arn: ::String
183
+ }?,
184
+ ecs_capacity_increase_config: {
185
+ timeout_minutes: ::Integer?,
186
+ services: Array[
187
+ {
188
+ cross_account_role: ::String?,
189
+ external_id: ::String?,
190
+ cluster_arn: ::String?,
191
+ service_arn: ::String?
192
+ },
193
+ ],
194
+ ungraceful: {
195
+ minimum_success_percentage: ::Integer
196
+ }?,
197
+ target_percent: ::Integer?,
198
+ capacity_monitoring_approach: ("sampledMaxInLast24Hours" | "containerInsightsMaxInLast24Hours")?
199
+ }?,
200
+ eks_resource_scaling_config: {
201
+ timeout_minutes: ::Integer?,
202
+ kubernetes_resource_type: {
203
+ api_version: ::String,
204
+ kind: ::String
205
+ },
206
+ scaling_resources: Array[
207
+ Hash[::String, Hash[::String, {
208
+ namespace: ::String,
209
+ name: ::String,
210
+ hpa_name: ::String?
211
+ }]],
212
+ ]?,
213
+ eks_clusters: Array[
214
+ {
215
+ cross_account_role: ::String?,
216
+ external_id: ::String?,
217
+ cluster_arn: ::String
218
+ },
219
+ ]?,
220
+ ungraceful: {
221
+ minimum_success_percentage: ::Integer
222
+ }?,
223
+ target_percent: ::Integer?,
224
+ capacity_monitoring_approach: ("sampledMaxInLast24Hours")?
225
+ }?,
226
+ route53_health_check_config: {
227
+ timeout_minutes: ::Integer?,
228
+ cross_account_role: ::String?,
229
+ external_id: ::String?,
230
+ hosted_zone_id: ::String,
231
+ record_name: ::String,
232
+ record_sets: Array[
233
+ {
234
+ record_set_identifier: ::String?,
235
+ region: ::String?
236
+ },
237
+ ]?
238
+ }?
239
+ },
240
+ execution_block_type: ("CustomActionLambda" | "ManualApproval" | "AuroraGlobalDatabase" | "EC2AutoScaling" | "ARCRoutingControl" | "ARCRegionSwitchPlan" | "Parallel" | "ECSServiceScaling" | "EKSResourceScaling" | "Route53HealthCheck")
241
+ },
242
+ ]?,
243
+ workflow_target_action: ("activate" | "deactivate"),
244
+ workflow_target_region: ::String?,
245
+ workflow_description: ::String?
246
+ },
247
+ ],
248
+ execution_role: ::String,
249
+ ?recovery_time_objective_minutes: ::Integer,
250
+ ?associated_alarms: Hash[::String, {
251
+ cross_account_role: ::String?,
252
+ external_id: ::String?,
253
+ resource_identifier: ::String,
254
+ alarm_type: ("applicationHealth" | "trigger")
255
+ }],
256
+ ?triggers: Array[
257
+ {
258
+ description: ::String?,
259
+ target_region: ::String,
260
+ action: ("activate" | "deactivate"),
261
+ conditions: Array[
262
+ {
263
+ associated_alarm_name: ::String,
264
+ condition: ("red" | "green")
265
+ },
266
+ ],
267
+ min_delay_minutes_between_executions: ::Integer
268
+ },
269
+ ],
270
+ name: ::String,
271
+ regions: Array[::String],
272
+ recovery_approach: ("activeActive" | "activePassive"),
273
+ ?primary_region: ::String,
274
+ ?tags: Hash[::String, ::String]
275
+ ) -> _CreatePlanResponseSuccess
276
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreatePlanResponseSuccess
277
+
278
+ interface _DeletePlanResponseSuccess
279
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeletePlanResponse]
280
+ end
281
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ARCRegionswitch/Client.html#delete_plan-instance_method
282
+ def delete_plan: (
283
+ arn: ::String
284
+ ) -> _DeletePlanResponseSuccess
285
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeletePlanResponseSuccess
286
+
287
+ interface _GetPlanResponseSuccess
288
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetPlanResponse]
289
+ def plan: () -> Types::Plan
290
+ end
291
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ARCRegionswitch/Client.html#get_plan-instance_method
292
+ def get_plan: (
293
+ arn: ::String
294
+ ) -> _GetPlanResponseSuccess
295
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetPlanResponseSuccess
296
+
297
+ interface _GetPlanEvaluationStatusResponseSuccess
298
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetPlanEvaluationStatusResponse]
299
+ def plan_arn: () -> ::String
300
+ def last_evaluation_time: () -> ::Time
301
+ def last_evaluated_version: () -> ::String
302
+ def region: () -> ::String
303
+ def evaluation_state: () -> ("passed" | "actionRequired" | "pendingEvaluation" | "unknown")
304
+ def warnings: () -> ::Array[Types::ResourceWarning]
305
+ def next_token: () -> ::String
306
+ end
307
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ARCRegionswitch/Client.html#get_plan_evaluation_status-instance_method
308
+ def get_plan_evaluation_status: (
309
+ plan_arn: ::String,
310
+ ?max_results: ::Integer,
311
+ ?next_token: ::String
312
+ ) -> _GetPlanEvaluationStatusResponseSuccess
313
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetPlanEvaluationStatusResponseSuccess
314
+
315
+ interface _GetPlanExecutionResponseSuccess
316
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetPlanExecutionResponse]
317
+ def plan_arn: () -> ::String
318
+ def execution_id: () -> ::String
319
+ def version: () -> ::String
320
+ def updated_at: () -> ::Time
321
+ def comment: () -> ::String
322
+ def start_time: () -> ::Time
323
+ def end_time: () -> ::Time
324
+ def mode: () -> ("graceful" | "ungraceful")
325
+ def execution_state: () -> ("inProgress" | "pausedByFailedStep" | "pausedByOperator" | "completed" | "completedWithExceptions" | "canceled" | "planExecutionTimedOut" | "pendingManualApproval" | "failed" | "pending" | "completedMonitoringApplicationHealth")
326
+ def execution_action: () -> ("activate" | "deactivate")
327
+ def execution_region: () -> ::String
328
+ def step_states: () -> ::Array[Types::StepState]
329
+ def plan: () -> Types::Plan
330
+ def actual_recovery_time: () -> ::String
331
+ def next_token: () -> ::String
332
+ end
333
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ARCRegionswitch/Client.html#get_plan_execution-instance_method
334
+ def get_plan_execution: (
335
+ plan_arn: ::String,
336
+ execution_id: ::String,
337
+ ?max_results: ::Integer,
338
+ ?next_token: ::String
339
+ ) -> _GetPlanExecutionResponseSuccess
340
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetPlanExecutionResponseSuccess
341
+
342
+ interface _GetPlanInRegionResponseSuccess
343
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetPlanInRegionResponse]
344
+ def plan: () -> Types::Plan
345
+ end
346
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ARCRegionswitch/Client.html#get_plan_in_region-instance_method
347
+ def get_plan_in_region: (
348
+ arn: ::String
349
+ ) -> _GetPlanInRegionResponseSuccess
350
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetPlanInRegionResponseSuccess
351
+
352
+ interface _ListPlanExecutionEventsResponseSuccess
353
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListPlanExecutionEventsResponse]
354
+ def items: () -> ::Array[Types::ExecutionEvent]
355
+ def next_token: () -> ::String
356
+ end
357
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ARCRegionswitch/Client.html#list_plan_execution_events-instance_method
358
+ def list_plan_execution_events: (
359
+ plan_arn: ::String,
360
+ execution_id: ::String,
361
+ ?max_results: ::Integer,
362
+ ?next_token: ::String,
363
+ ?name: ::String
364
+ ) -> _ListPlanExecutionEventsResponseSuccess
365
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListPlanExecutionEventsResponseSuccess
366
+
367
+ interface _ListPlanExecutionsResponseSuccess
368
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListPlanExecutionsResponse]
369
+ def items: () -> ::Array[Types::AbbreviatedExecution]
370
+ def next_token: () -> ::String
371
+ end
372
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ARCRegionswitch/Client.html#list_plan_executions-instance_method
373
+ def list_plan_executions: (
374
+ plan_arn: ::String,
375
+ ?max_results: ::Integer,
376
+ ?next_token: ::String,
377
+ ?state: ("inProgress" | "pausedByFailedStep" | "pausedByOperator" | "completed" | "completedWithExceptions" | "canceled" | "planExecutionTimedOut" | "pendingManualApproval" | "failed" | "pending" | "completedMonitoringApplicationHealth")
378
+ ) -> _ListPlanExecutionsResponseSuccess
379
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListPlanExecutionsResponseSuccess
380
+
381
+ interface _ListPlansResponseSuccess
382
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListPlansResponse]
383
+ def plans: () -> ::Array[Types::AbbreviatedPlan]
384
+ def next_token: () -> ::String
385
+ end
386
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ARCRegionswitch/Client.html#list_plans-instance_method
387
+ def list_plans: (
388
+ ?max_results: ::Integer,
389
+ ?next_token: ::String
390
+ ) -> _ListPlansResponseSuccess
391
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListPlansResponseSuccess
392
+
393
+ interface _ListPlansInRegionResponseSuccess
394
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListPlansInRegionResponse]
395
+ def plans: () -> ::Array[Types::AbbreviatedPlan]
396
+ def next_token: () -> ::String
397
+ end
398
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ARCRegionswitch/Client.html#list_plans_in_region-instance_method
399
+ def list_plans_in_region: (
400
+ ?max_results: ::Integer,
401
+ ?next_token: ::String
402
+ ) -> _ListPlansInRegionResponseSuccess
403
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListPlansInRegionResponseSuccess
404
+
405
+ interface _ListRoute53HealthChecksResponseSuccess
406
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListRoute53HealthChecksResponse]
407
+ def health_checks: () -> ::Array[Types::Route53HealthCheck]
408
+ def next_token: () -> ::String
409
+ end
410
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ARCRegionswitch/Client.html#list_route_53_health_checks-instance_method
411
+ def list_route_53_health_checks: (
412
+ arn: ::String,
413
+ ?hosted_zone_id: ::String,
414
+ ?record_name: ::String,
415
+ ?max_results: ::Integer,
416
+ ?next_token: ::String
417
+ ) -> _ListRoute53HealthChecksResponseSuccess
418
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListRoute53HealthChecksResponseSuccess
419
+
420
+ interface _ListTagsForResourceResponseSuccess
421
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsForResourceResponse]
422
+ def resource_tags: () -> ::Hash[::String, ::String]
423
+ end
424
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ARCRegionswitch/Client.html#list_tags_for_resource-instance_method
425
+ def list_tags_for_resource: (
426
+ arn: ::String
427
+ ) -> _ListTagsForResourceResponseSuccess
428
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess
429
+
430
+ interface _StartPlanExecutionResponseSuccess
431
+ include ::Seahorse::Client::_ResponseSuccess[Types::StartPlanExecutionResponse]
432
+ def execution_id: () -> ::String
433
+ def plan: () -> ::String
434
+ def plan_version: () -> ::String
435
+ def activate_region: () -> ::String
436
+ def deactivate_region: () -> ::String
437
+ end
438
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ARCRegionswitch/Client.html#start_plan_execution-instance_method
439
+ def start_plan_execution: (
440
+ plan_arn: ::String,
441
+ target_region: ::String,
442
+ action: ("activate" | "deactivate"),
443
+ ?mode: ("graceful" | "ungraceful"),
444
+ ?comment: ::String,
445
+ ?latest_version: ::String
446
+ ) -> _StartPlanExecutionResponseSuccess
447
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartPlanExecutionResponseSuccess
448
+
449
+ interface _TagResourceResponseSuccess
450
+ include ::Seahorse::Client::_ResponseSuccess[Types::TagResourceResponse]
451
+ end
452
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ARCRegionswitch/Client.html#tag_resource-instance_method
453
+ def tag_resource: (
454
+ arn: ::String,
455
+ tags: Hash[::String, ::String]
456
+ ) -> _TagResourceResponseSuccess
457
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TagResourceResponseSuccess
458
+
459
+ interface _UntagResourceResponseSuccess
460
+ include ::Seahorse::Client::_ResponseSuccess[Types::UntagResourceResponse]
461
+ end
462
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ARCRegionswitch/Client.html#untag_resource-instance_method
463
+ def untag_resource: (
464
+ arn: ::String,
465
+ resource_tag_keys: Array[::String]
466
+ ) -> _UntagResourceResponseSuccess
467
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UntagResourceResponseSuccess
468
+
469
+ interface _UpdatePlanResponseSuccess
470
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdatePlanResponse]
471
+ def plan: () -> Types::Plan
472
+ end
473
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ARCRegionswitch/Client.html#update_plan-instance_method
474
+ def update_plan: (
475
+ arn: ::String,
476
+ ?description: ::String,
477
+ workflows: Array[
478
+ {
479
+ steps: Array[
480
+ {
481
+ name: ::String,
482
+ description: ::String?,
483
+ execution_block_configuration: {
484
+ custom_action_lambda_config: {
485
+ timeout_minutes: ::Integer?,
486
+ lambdas: Array[
487
+ {
488
+ cross_account_role: ::String?,
489
+ external_id: ::String?,
490
+ arn: ::String?
491
+ },
492
+ ],
493
+ retry_interval_minutes: ::Float,
494
+ region_to_run: ("activatingRegion" | "deactivatingRegion"),
495
+ ungraceful: {
496
+ behavior: ("skip")?
497
+ }?
498
+ }?,
499
+ ec2_asg_capacity_increase_config: {
500
+ timeout_minutes: ::Integer?,
501
+ asgs: Array[
502
+ {
503
+ cross_account_role: ::String?,
504
+ external_id: ::String?,
505
+ arn: ::String?
506
+ },
507
+ ],
508
+ ungraceful: {
509
+ minimum_success_percentage: ::Integer
510
+ }?,
511
+ target_percent: ::Integer?,
512
+ capacity_monitoring_approach: ("sampledMaxInLast24Hours" | "autoscalingMaxInLast24Hours")?
513
+ }?,
514
+ execution_approval_config: {
515
+ timeout_minutes: ::Integer?,
516
+ approval_role: ::String
517
+ }?,
518
+ arc_routing_control_config: {
519
+ timeout_minutes: ::Integer?,
520
+ cross_account_role: ::String?,
521
+ external_id: ::String?,
522
+ region_and_routing_controls: Hash[::String, Array[
523
+ {
524
+ routing_control_arn: ::String,
525
+ state: ("On" | "Off")
526
+ },
527
+ ]]
528
+ }?,
529
+ global_aurora_config: {
530
+ timeout_minutes: ::Integer?,
531
+ cross_account_role: ::String?,
532
+ external_id: ::String?,
533
+ behavior: ("switchoverOnly" | "failover"),
534
+ ungraceful: {
535
+ ungraceful: ("failover")?
536
+ }?,
537
+ global_cluster_identifier: ::String,
538
+ database_cluster_arns: Array[::String]
539
+ }?,
540
+ parallel_config: {
541
+ steps: untyped
542
+ }?,
543
+ region_switch_plan_config: {
544
+ cross_account_role: ::String?,
545
+ external_id: ::String?,
546
+ arn: ::String
547
+ }?,
548
+ ecs_capacity_increase_config: {
549
+ timeout_minutes: ::Integer?,
550
+ services: Array[
551
+ {
552
+ cross_account_role: ::String?,
553
+ external_id: ::String?,
554
+ cluster_arn: ::String?,
555
+ service_arn: ::String?
556
+ },
557
+ ],
558
+ ungraceful: {
559
+ minimum_success_percentage: ::Integer
560
+ }?,
561
+ target_percent: ::Integer?,
562
+ capacity_monitoring_approach: ("sampledMaxInLast24Hours" | "containerInsightsMaxInLast24Hours")?
563
+ }?,
564
+ eks_resource_scaling_config: {
565
+ timeout_minutes: ::Integer?,
566
+ kubernetes_resource_type: {
567
+ api_version: ::String,
568
+ kind: ::String
569
+ },
570
+ scaling_resources: Array[
571
+ Hash[::String, Hash[::String, {
572
+ namespace: ::String,
573
+ name: ::String,
574
+ hpa_name: ::String?
575
+ }]],
576
+ ]?,
577
+ eks_clusters: Array[
578
+ {
579
+ cross_account_role: ::String?,
580
+ external_id: ::String?,
581
+ cluster_arn: ::String
582
+ },
583
+ ]?,
584
+ ungraceful: {
585
+ minimum_success_percentage: ::Integer
586
+ }?,
587
+ target_percent: ::Integer?,
588
+ capacity_monitoring_approach: ("sampledMaxInLast24Hours")?
589
+ }?,
590
+ route53_health_check_config: {
591
+ timeout_minutes: ::Integer?,
592
+ cross_account_role: ::String?,
593
+ external_id: ::String?,
594
+ hosted_zone_id: ::String,
595
+ record_name: ::String,
596
+ record_sets: Array[
597
+ {
598
+ record_set_identifier: ::String?,
599
+ region: ::String?
600
+ },
601
+ ]?
602
+ }?
603
+ },
604
+ execution_block_type: ("CustomActionLambda" | "ManualApproval" | "AuroraGlobalDatabase" | "EC2AutoScaling" | "ARCRoutingControl" | "ARCRegionSwitchPlan" | "Parallel" | "ECSServiceScaling" | "EKSResourceScaling" | "Route53HealthCheck")
605
+ },
606
+ ]?,
607
+ workflow_target_action: ("activate" | "deactivate"),
608
+ workflow_target_region: ::String?,
609
+ workflow_description: ::String?
610
+ },
611
+ ],
612
+ execution_role: ::String,
613
+ ?recovery_time_objective_minutes: ::Integer,
614
+ ?associated_alarms: Hash[::String, {
615
+ cross_account_role: ::String?,
616
+ external_id: ::String?,
617
+ resource_identifier: ::String,
618
+ alarm_type: ("applicationHealth" | "trigger")
619
+ }],
620
+ ?triggers: Array[
621
+ {
622
+ description: ::String?,
623
+ target_region: ::String,
624
+ action: ("activate" | "deactivate"),
625
+ conditions: Array[
626
+ {
627
+ associated_alarm_name: ::String,
628
+ condition: ("red" | "green")
629
+ },
630
+ ],
631
+ min_delay_minutes_between_executions: ::Integer
632
+ },
633
+ ]
634
+ ) -> _UpdatePlanResponseSuccess
635
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdatePlanResponseSuccess
636
+
637
+ interface _UpdatePlanExecutionResponseSuccess
638
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdatePlanExecutionResponse]
639
+ end
640
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ARCRegionswitch/Client.html#update_plan_execution-instance_method
641
+ def update_plan_execution: (
642
+ plan_arn: ::String,
643
+ execution_id: ::String,
644
+ action: ("switchToGraceful" | "switchToUngraceful" | "pause" | "resume"),
645
+ ?comment: ::String
646
+ ) -> _UpdatePlanExecutionResponseSuccess
647
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdatePlanExecutionResponseSuccess
648
+
649
+ interface _UpdatePlanExecutionStepResponseSuccess
650
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdatePlanExecutionStepResponse]
651
+ end
652
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ARCRegionswitch/Client.html#update_plan_execution_step-instance_method
653
+ def update_plan_execution_step: (
654
+ plan_arn: ::String,
655
+ execution_id: ::String,
656
+ comment: ::String,
657
+ step_name: ::String,
658
+ action_to_take: ("switchToUngraceful" | "skip")
659
+ ) -> _UpdatePlanExecutionStepResponseSuccess
660
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdatePlanExecutionStepResponseSuccess
661
+
662
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ARCRegionswitch/Client.html#wait_until-instance_method
663
+ def wait_until: (:plan_evaluation_status_passed waiter_name,
664
+ plan_arn: ::String,
665
+ ?max_results: ::Integer,
666
+ ?next_token: ::String
667
+ ) -> Client::_GetPlanEvaluationStatusResponseSuccess
668
+ | (:plan_evaluation_status_passed waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_GetPlanEvaluationStatusResponseSuccess
669
+ | (:plan_execution_completed waiter_name,
670
+ plan_arn: ::String,
671
+ execution_id: ::String,
672
+ ?max_results: ::Integer,
673
+ ?next_token: ::String
674
+ ) -> Client::_GetPlanExecutionResponseSuccess
675
+ | (:plan_execution_completed waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_GetPlanExecutionResponseSuccess
676
+ end
677
+ end
678
+ end
679
+