aws-sdk-arcregionswitch 1.14.0 → 1.16.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3a50786c1baebb6000fd902623eee7901a996bd0f75fa8476c838eaf7c476be
4
- data.tar.gz: 515cb9e76f4a6ab5387b8cc9d6afa0fdc1001dfc0822fad5d4608a9524f61fda
3
+ metadata.gz: 933540d7457e02987828ca37838bd6caba7b63248dfbc4e3f29405c38e637dd8
4
+ data.tar.gz: 88a91aec03f796eee588db6cf1a632f270e7e7d02604b81c9906294e20b29bc7
5
5
  SHA512:
6
- metadata.gz: 3280d2c2bc10f418318a86e6f4f0c7386887c8625ea03c1c9a4bbe7fc9756fd6dfc05f0191166e4a554b92a5e2be37b16aa7ba594d644b4e30a07c44c0e8a22e
7
- data.tar.gz: 6836b28b82264aa905351ee7befda9f58a0e792196cf855f7c0403d55c83fd642a836daea251c76c3beddacfbd7d3cb1f7cfb28e0309e2260b3cc7821dc0ea39
6
+ metadata.gz: 9396c5fe6ffa6ca990fd8b489a732e533a017612d2129509822e10e7547f1edd6898c1bf89947acfe7d7670ff024a1745097f937fee714fb21c6f990afd376d0
7
+ data.tar.gz: c45933824f211de5d0d0f1aee86adadee373bc935af4cd7f0cb67f0ebd8039a2cb12762729868284d46feb9549d9571997783becd90eb61fe26c274dba1333e8
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.16.0 (2026-05-19)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.15.0 (2026-05-13)
10
+ ------------------
11
+
12
+ * Feature - Adds support for enabling and disabling Lambda event source mappings in Region switch plans.
13
+
4
14
  1.14.0 (2026-03-18)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.14.0
1
+ 1.16.0
@@ -784,8 +784,22 @@ module Aws::ARCRegionswitch
784
784
  # "Region" => "RdsDbInstanceArn",
785
785
  # },
786
786
  # },
787
+ # lambda_event_source_mapping_config: {
788
+ # timeout_minutes: 1,
789
+ # action: "enable", # required, accepts enable, disable
790
+ # region_event_source_mappings: { # required
791
+ # "Region" => {
792
+ # cross_account_role: "IamRoleArn",
793
+ # external_id: "String",
794
+ # arn: "EventSourceMappingArn", # required
795
+ # },
796
+ # },
797
+ # ungraceful: {
798
+ # behavior: "skip", # accepts skip
799
+ # },
800
+ # },
787
801
  # },
788
- # execution_block_type: "CustomActionLambda", # required, accepts CustomActionLambda, ManualApproval, AuroraGlobalDatabase, EC2AutoScaling, ARCRoutingControl, ARCRegionSwitchPlan, Parallel, ECSServiceScaling, EKSResourceScaling, Route53HealthCheck, DocumentDb, RdsPromoteReadReplica, RdsCreateCrossRegionReplica
802
+ # execution_block_type: "CustomActionLambda", # required, accepts CustomActionLambda, ManualApproval, AuroraGlobalDatabase, EC2AutoScaling, ARCRoutingControl, ARCRegionSwitchPlan, Parallel, ECSServiceScaling, EKSResourceScaling, Route53HealthCheck, DocumentDb, RdsPromoteReadReplica, RdsCreateCrossRegionReplica, LambdaEventSourceMapping
789
803
  # },
790
804
  # ],
791
805
  # workflow_target_action: "activate", # required, accepts activate, deactivate, postRecovery
@@ -932,7 +946,14 @@ module Aws::ARCRegionswitch
932
946
  # resp.plan.workflows[0].steps[0].execution_block_configuration.rds_create_cross_region_read_replica_config.external_id #=> String
933
947
  # resp.plan.workflows[0].steps[0].execution_block_configuration.rds_create_cross_region_read_replica_config.db_instance_arn_map #=> Hash
934
948
  # resp.plan.workflows[0].steps[0].execution_block_configuration.rds_create_cross_region_read_replica_config.db_instance_arn_map["Region"] #=> String
935
- # resp.plan.workflows[0].steps[0].execution_block_type #=> String, one of "CustomActionLambda", "ManualApproval", "AuroraGlobalDatabase", "EC2AutoScaling", "ARCRoutingControl", "ARCRegionSwitchPlan", "Parallel", "ECSServiceScaling", "EKSResourceScaling", "Route53HealthCheck", "DocumentDb", "RdsPromoteReadReplica", "RdsCreateCrossRegionReplica"
949
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.timeout_minutes #=> Integer
950
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.action #=> String, one of "enable", "disable"
951
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.region_event_source_mappings #=> Hash
952
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.region_event_source_mappings["Region"].cross_account_role #=> String
953
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.region_event_source_mappings["Region"].external_id #=> String
954
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.region_event_source_mappings["Region"].arn #=> String
955
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.ungraceful.behavior #=> String, one of "skip"
956
+ # resp.plan.workflows[0].steps[0].execution_block_type #=> String, one of "CustomActionLambda", "ManualApproval", "AuroraGlobalDatabase", "EC2AutoScaling", "ARCRoutingControl", "ARCRegionSwitchPlan", "Parallel", "ECSServiceScaling", "EKSResourceScaling", "Route53HealthCheck", "DocumentDb", "RdsPromoteReadReplica", "RdsCreateCrossRegionReplica", "LambdaEventSourceMapping"
936
957
  # resp.plan.workflows[0].workflow_target_action #=> String, one of "activate", "deactivate", "postRecovery"
937
958
  # resp.plan.workflows[0].workflow_target_region #=> String
938
959
  # resp.plan.workflows[0].workflow_description #=> String
@@ -1109,7 +1130,14 @@ module Aws::ARCRegionswitch
1109
1130
  # resp.plan.workflows[0].steps[0].execution_block_configuration.rds_create_cross_region_read_replica_config.external_id #=> String
1110
1131
  # resp.plan.workflows[0].steps[0].execution_block_configuration.rds_create_cross_region_read_replica_config.db_instance_arn_map #=> Hash
1111
1132
  # resp.plan.workflows[0].steps[0].execution_block_configuration.rds_create_cross_region_read_replica_config.db_instance_arn_map["Region"] #=> String
1112
- # resp.plan.workflows[0].steps[0].execution_block_type #=> String, one of "CustomActionLambda", "ManualApproval", "AuroraGlobalDatabase", "EC2AutoScaling", "ARCRoutingControl", "ARCRegionSwitchPlan", "Parallel", "ECSServiceScaling", "EKSResourceScaling", "Route53HealthCheck", "DocumentDb", "RdsPromoteReadReplica", "RdsCreateCrossRegionReplica"
1133
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.timeout_minutes #=> Integer
1134
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.action #=> String, one of "enable", "disable"
1135
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.region_event_source_mappings #=> Hash
1136
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.region_event_source_mappings["Region"].cross_account_role #=> String
1137
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.region_event_source_mappings["Region"].external_id #=> String
1138
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.region_event_source_mappings["Region"].arn #=> String
1139
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.ungraceful.behavior #=> String, one of "skip"
1140
+ # resp.plan.workflows[0].steps[0].execution_block_type #=> String, one of "CustomActionLambda", "ManualApproval", "AuroraGlobalDatabase", "EC2AutoScaling", "ARCRoutingControl", "ARCRegionSwitchPlan", "Parallel", "ECSServiceScaling", "EKSResourceScaling", "Route53HealthCheck", "DocumentDb", "RdsPromoteReadReplica", "RdsCreateCrossRegionReplica", "LambdaEventSourceMapping"
1113
1141
  # resp.plan.workflows[0].workflow_target_action #=> String, one of "activate", "deactivate", "postRecovery"
1114
1142
  # resp.plan.workflows[0].workflow_target_region #=> String
1115
1143
  # resp.plan.workflows[0].workflow_description #=> String
@@ -1384,7 +1412,14 @@ module Aws::ARCRegionswitch
1384
1412
  # resp.plan.workflows[0].steps[0].execution_block_configuration.rds_create_cross_region_read_replica_config.external_id #=> String
1385
1413
  # resp.plan.workflows[0].steps[0].execution_block_configuration.rds_create_cross_region_read_replica_config.db_instance_arn_map #=> Hash
1386
1414
  # resp.plan.workflows[0].steps[0].execution_block_configuration.rds_create_cross_region_read_replica_config.db_instance_arn_map["Region"] #=> String
1387
- # resp.plan.workflows[0].steps[0].execution_block_type #=> String, one of "CustomActionLambda", "ManualApproval", "AuroraGlobalDatabase", "EC2AutoScaling", "ARCRoutingControl", "ARCRegionSwitchPlan", "Parallel", "ECSServiceScaling", "EKSResourceScaling", "Route53HealthCheck", "DocumentDb", "RdsPromoteReadReplica", "RdsCreateCrossRegionReplica"
1415
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.timeout_minutes #=> Integer
1416
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.action #=> String, one of "enable", "disable"
1417
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.region_event_source_mappings #=> Hash
1418
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.region_event_source_mappings["Region"].cross_account_role #=> String
1419
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.region_event_source_mappings["Region"].external_id #=> String
1420
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.region_event_source_mappings["Region"].arn #=> String
1421
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.ungraceful.behavior #=> String, one of "skip"
1422
+ # resp.plan.workflows[0].steps[0].execution_block_type #=> String, one of "CustomActionLambda", "ManualApproval", "AuroraGlobalDatabase", "EC2AutoScaling", "ARCRoutingControl", "ARCRegionSwitchPlan", "Parallel", "ECSServiceScaling", "EKSResourceScaling", "Route53HealthCheck", "DocumentDb", "RdsPromoteReadReplica", "RdsCreateCrossRegionReplica", "LambdaEventSourceMapping"
1388
1423
  # resp.plan.workflows[0].workflow_target_action #=> String, one of "activate", "deactivate", "postRecovery"
1389
1424
  # resp.plan.workflows[0].workflow_target_region #=> String
1390
1425
  # resp.plan.workflows[0].workflow_description #=> String
@@ -1549,7 +1584,14 @@ module Aws::ARCRegionswitch
1549
1584
  # resp.plan.workflows[0].steps[0].execution_block_configuration.rds_create_cross_region_read_replica_config.external_id #=> String
1550
1585
  # resp.plan.workflows[0].steps[0].execution_block_configuration.rds_create_cross_region_read_replica_config.db_instance_arn_map #=> Hash
1551
1586
  # resp.plan.workflows[0].steps[0].execution_block_configuration.rds_create_cross_region_read_replica_config.db_instance_arn_map["Region"] #=> String
1552
- # resp.plan.workflows[0].steps[0].execution_block_type #=> String, one of "CustomActionLambda", "ManualApproval", "AuroraGlobalDatabase", "EC2AutoScaling", "ARCRoutingControl", "ARCRegionSwitchPlan", "Parallel", "ECSServiceScaling", "EKSResourceScaling", "Route53HealthCheck", "DocumentDb", "RdsPromoteReadReplica", "RdsCreateCrossRegionReplica"
1587
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.timeout_minutes #=> Integer
1588
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.action #=> String, one of "enable", "disable"
1589
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.region_event_source_mappings #=> Hash
1590
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.region_event_source_mappings["Region"].cross_account_role #=> String
1591
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.region_event_source_mappings["Region"].external_id #=> String
1592
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.region_event_source_mappings["Region"].arn #=> String
1593
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.ungraceful.behavior #=> String, one of "skip"
1594
+ # resp.plan.workflows[0].steps[0].execution_block_type #=> String, one of "CustomActionLambda", "ManualApproval", "AuroraGlobalDatabase", "EC2AutoScaling", "ARCRoutingControl", "ARCRegionSwitchPlan", "Parallel", "ECSServiceScaling", "EKSResourceScaling", "Route53HealthCheck", "DocumentDb", "RdsPromoteReadReplica", "RdsCreateCrossRegionReplica", "LambdaEventSourceMapping"
1553
1595
  # resp.plan.workflows[0].workflow_target_action #=> String, one of "activate", "deactivate", "postRecovery"
1554
1596
  # resp.plan.workflows[0].workflow_target_region #=> String
1555
1597
  # resp.plan.workflows[0].workflow_description #=> String
@@ -1634,7 +1676,7 @@ module Aws::ARCRegionswitch
1634
1676
  # resp.items[0].timestamp #=> Time
1635
1677
  # resp.items[0].type #=> String, one of "unknown", "executionPending", "executionStarted", "executionSucceeded", "executionFailed", "executionPausing", "executionPaused", "executionCanceling", "executionCanceled", "executionPendingApproval", "executionBehaviorChangedToUngraceful", "executionBehaviorChangedToGraceful", "executionPendingChildPlanManualApproval", "executionSuccessMonitoringApplicationHealth", "stepStarted", "stepUpdate", "stepSucceeded", "stepFailed", "stepSkipped", "stepPausedByError", "stepPausedByOperator", "stepCanceled", "stepPendingApproval", "stepExecutionBehaviorChangedToUngraceful", "stepPendingApplicationHealthMonitor", "planEvaluationWarning"
1636
1678
  # resp.items[0].step_name #=> String
1637
- # resp.items[0].execution_block_type #=> String, one of "CustomActionLambda", "ManualApproval", "AuroraGlobalDatabase", "EC2AutoScaling", "ARCRoutingControl", "ARCRegionSwitchPlan", "Parallel", "ECSServiceScaling", "EKSResourceScaling", "Route53HealthCheck", "DocumentDb", "RdsPromoteReadReplica", "RdsCreateCrossRegionReplica"
1679
+ # resp.items[0].execution_block_type #=> String, one of "CustomActionLambda", "ManualApproval", "AuroraGlobalDatabase", "EC2AutoScaling", "ARCRoutingControl", "ARCRegionSwitchPlan", "Parallel", "ECSServiceScaling", "EKSResourceScaling", "Route53HealthCheck", "DocumentDb", "RdsPromoteReadReplica", "RdsCreateCrossRegionReplica", "LambdaEventSourceMapping"
1638
1680
  # resp.items[0].resources #=> Array
1639
1681
  # resp.items[0].resources[0] #=> String
1640
1682
  # resp.items[0].error #=> String
@@ -2330,8 +2372,22 @@ module Aws::ARCRegionswitch
2330
2372
  # "Region" => "RdsDbInstanceArn",
2331
2373
  # },
2332
2374
  # },
2375
+ # lambda_event_source_mapping_config: {
2376
+ # timeout_minutes: 1,
2377
+ # action: "enable", # required, accepts enable, disable
2378
+ # region_event_source_mappings: { # required
2379
+ # "Region" => {
2380
+ # cross_account_role: "IamRoleArn",
2381
+ # external_id: "String",
2382
+ # arn: "EventSourceMappingArn", # required
2383
+ # },
2384
+ # },
2385
+ # ungraceful: {
2386
+ # behavior: "skip", # accepts skip
2387
+ # },
2388
+ # },
2333
2389
  # },
2334
- # execution_block_type: "CustomActionLambda", # required, accepts CustomActionLambda, ManualApproval, AuroraGlobalDatabase, EC2AutoScaling, ARCRoutingControl, ARCRegionSwitchPlan, Parallel, ECSServiceScaling, EKSResourceScaling, Route53HealthCheck, DocumentDb, RdsPromoteReadReplica, RdsCreateCrossRegionReplica
2390
+ # execution_block_type: "CustomActionLambda", # required, accepts CustomActionLambda, ManualApproval, AuroraGlobalDatabase, EC2AutoScaling, ARCRoutingControl, ARCRegionSwitchPlan, Parallel, ECSServiceScaling, EKSResourceScaling, Route53HealthCheck, DocumentDb, RdsPromoteReadReplica, RdsCreateCrossRegionReplica, LambdaEventSourceMapping
2335
2391
  # },
2336
2392
  # ],
2337
2393
  # workflow_target_action: "activate", # required, accepts activate, deactivate, postRecovery
@@ -2471,7 +2527,14 @@ module Aws::ARCRegionswitch
2471
2527
  # resp.plan.workflows[0].steps[0].execution_block_configuration.rds_create_cross_region_read_replica_config.external_id #=> String
2472
2528
  # resp.plan.workflows[0].steps[0].execution_block_configuration.rds_create_cross_region_read_replica_config.db_instance_arn_map #=> Hash
2473
2529
  # resp.plan.workflows[0].steps[0].execution_block_configuration.rds_create_cross_region_read_replica_config.db_instance_arn_map["Region"] #=> String
2474
- # resp.plan.workflows[0].steps[0].execution_block_type #=> String, one of "CustomActionLambda", "ManualApproval", "AuroraGlobalDatabase", "EC2AutoScaling", "ARCRoutingControl", "ARCRegionSwitchPlan", "Parallel", "ECSServiceScaling", "EKSResourceScaling", "Route53HealthCheck", "DocumentDb", "RdsPromoteReadReplica", "RdsCreateCrossRegionReplica"
2530
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.timeout_minutes #=> Integer
2531
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.action #=> String, one of "enable", "disable"
2532
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.region_event_source_mappings #=> Hash
2533
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.region_event_source_mappings["Region"].cross_account_role #=> String
2534
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.region_event_source_mappings["Region"].external_id #=> String
2535
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.region_event_source_mappings["Region"].arn #=> String
2536
+ # resp.plan.workflows[0].steps[0].execution_block_configuration.lambda_event_source_mapping_config.ungraceful.behavior #=> String, one of "skip"
2537
+ # resp.plan.workflows[0].steps[0].execution_block_type #=> String, one of "CustomActionLambda", "ManualApproval", "AuroraGlobalDatabase", "EC2AutoScaling", "ARCRoutingControl", "ARCRegionSwitchPlan", "Parallel", "ECSServiceScaling", "EKSResourceScaling", "Route53HealthCheck", "DocumentDb", "RdsPromoteReadReplica", "RdsCreateCrossRegionReplica", "LambdaEventSourceMapping"
2475
2538
  # resp.plan.workflows[0].workflow_target_action #=> String, one of "activate", "deactivate", "postRecovery"
2476
2539
  # resp.plan.workflows[0].workflow_target_region #=> String
2477
2540
  # resp.plan.workflows[0].workflow_description #=> String
@@ -2609,7 +2672,7 @@ module Aws::ARCRegionswitch
2609
2672
  tracer: tracer
2610
2673
  )
2611
2674
  context[:gem_name] = 'aws-sdk-arcregionswitch'
2612
- context[:gem_version] = '1.14.0'
2675
+ context[:gem_version] = '1.16.0'
2613
2676
  Seahorse::Client::Request.new(handlers, context)
2614
2677
  end
2615
2678
 
@@ -76,6 +76,9 @@ module Aws::ARCRegionswitch
76
76
  EksResourceScalingUngraceful = Shapes::StructureShape.new(name: 'EksResourceScalingUngraceful')
77
77
  EksResourceScalingUngracefulMinimumSuccessPercentageInteger = Shapes::IntegerShape.new(name: 'EksResourceScalingUngracefulMinimumSuccessPercentageInteger')
78
78
  EvaluationStatus = Shapes::StringShape.new(name: 'EvaluationStatus')
79
+ EventSourceMapping = Shapes::StructureShape.new(name: 'EventSourceMapping')
80
+ EventSourceMappingAction = Shapes::StringShape.new(name: 'EventSourceMappingAction')
81
+ EventSourceMappingArn = Shapes::StringShape.new(name: 'EventSourceMappingArn')
79
82
  ExecutionAction = Shapes::StringShape.new(name: 'ExecutionAction')
80
83
  ExecutionApprovalConfiguration = Shapes::StructureShape.new(name: 'ExecutionApprovalConfiguration')
81
84
  ExecutionApprovalConfigurationTimeoutMinutesInteger = Shapes::IntegerShape.new(name: 'ExecutionApprovalConfigurationTimeoutMinutesInteger')
@@ -119,6 +122,10 @@ module Aws::ARCRegionswitch
119
122
  KubernetesScalingApps = Shapes::ListShape.new(name: 'KubernetesScalingApps')
120
123
  KubernetesScalingResource = Shapes::StructureShape.new(name: 'KubernetesScalingResource')
121
124
  LambdaArn = Shapes::StringShape.new(name: 'LambdaArn')
125
+ LambdaEventSourceMappingConfiguration = Shapes::StructureShape.new(name: 'LambdaEventSourceMappingConfiguration')
126
+ LambdaEventSourceMappingConfigurationTimeoutMinutesInteger = Shapes::IntegerShape.new(name: 'LambdaEventSourceMappingConfigurationTimeoutMinutesInteger')
127
+ LambdaEventSourceMappingUngraceful = Shapes::StructureShape.new(name: 'LambdaEventSourceMappingUngraceful')
128
+ LambdaEventSourceMappingUngracefulBehavior = Shapes::StringShape.new(name: 'LambdaEventSourceMappingUngracefulBehavior')
122
129
  LambdaList = Shapes::ListShape.new(name: 'LambdaList')
123
130
  LambdaUngraceful = Shapes::StructureShape.new(name: 'LambdaUngraceful')
124
131
  LambdaUngracefulBehavior = Shapes::StringShape.new(name: 'LambdaUngracefulBehavior')
@@ -161,6 +168,7 @@ module Aws::ARCRegionswitch
161
168
  RecoveryExecutionId = Shapes::StringShape.new(name: 'RecoveryExecutionId')
162
169
  Region = Shapes::StringShape.new(name: 'Region')
163
170
  RegionAndRoutingControls = Shapes::MapShape.new(name: 'RegionAndRoutingControls')
171
+ RegionEventSourceMappingMap = Shapes::MapShape.new(name: 'RegionEventSourceMappingMap')
164
172
  RegionList = Shapes::ListShape.new(name: 'RegionList')
165
173
  RegionSwitchPlanConfiguration = Shapes::StructureShape.new(name: 'RegionSwitchPlanConfiguration')
166
174
  RegionToRunIn = Shapes::StringShape.new(name: 'RegionToRunIn')
@@ -390,6 +398,11 @@ module Aws::ARCRegionswitch
390
398
  EksResourceScalingUngraceful.add_member(:minimum_success_percentage, Shapes::ShapeRef.new(shape: EksResourceScalingUngracefulMinimumSuccessPercentageInteger, required: true, location_name: "minimumSuccessPercentage"))
391
399
  EksResourceScalingUngraceful.struct_class = Types::EksResourceScalingUngraceful
392
400
 
401
+ EventSourceMapping.add_member(:cross_account_role, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "crossAccountRole"))
402
+ EventSourceMapping.add_member(:external_id, Shapes::ShapeRef.new(shape: String, location_name: "externalId"))
403
+ EventSourceMapping.add_member(:arn, Shapes::ShapeRef.new(shape: EventSourceMappingArn, required: true, location_name: "arn"))
404
+ EventSourceMapping.struct_class = Types::EventSourceMapping
405
+
393
406
  ExecutionApprovalConfiguration.add_member(:timeout_minutes, Shapes::ShapeRef.new(shape: ExecutionApprovalConfigurationTimeoutMinutesInteger, location_name: "timeoutMinutes"))
394
407
  ExecutionApprovalConfiguration.add_member(:approval_role, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "approvalRole"))
395
408
  ExecutionApprovalConfiguration.struct_class = Types::ExecutionApprovalConfiguration
@@ -407,6 +420,7 @@ module Aws::ARCRegionswitch
407
420
  ExecutionBlockConfiguration.add_member(:document_db_config, Shapes::ShapeRef.new(shape: DocumentDbConfiguration, location_name: "documentDbConfig"))
408
421
  ExecutionBlockConfiguration.add_member(:rds_promote_read_replica_config, Shapes::ShapeRef.new(shape: RdsPromoteReadReplicaConfiguration, location_name: "rdsPromoteReadReplicaConfig"))
409
422
  ExecutionBlockConfiguration.add_member(:rds_create_cross_region_read_replica_config, Shapes::ShapeRef.new(shape: RdsCreateCrossRegionReplicaConfiguration, location_name: "rdsCreateCrossRegionReadReplicaConfig"))
423
+ ExecutionBlockConfiguration.add_member(:lambda_event_source_mapping_config, Shapes::ShapeRef.new(shape: LambdaEventSourceMappingConfiguration, location_name: "lambdaEventSourceMappingConfig"))
410
424
  ExecutionBlockConfiguration.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
411
425
  ExecutionBlockConfiguration.add_member_subclass(:custom_action_lambda_config, Types::ExecutionBlockConfiguration::CustomActionLambdaConfig)
412
426
  ExecutionBlockConfiguration.add_member_subclass(:ec2_asg_capacity_increase_config, Types::ExecutionBlockConfiguration::Ec2AsgCapacityIncreaseConfig)
@@ -421,6 +435,7 @@ module Aws::ARCRegionswitch
421
435
  ExecutionBlockConfiguration.add_member_subclass(:document_db_config, Types::ExecutionBlockConfiguration::DocumentDbConfig)
422
436
  ExecutionBlockConfiguration.add_member_subclass(:rds_promote_read_replica_config, Types::ExecutionBlockConfiguration::RdsPromoteReadReplicaConfig)
423
437
  ExecutionBlockConfiguration.add_member_subclass(:rds_create_cross_region_read_replica_config, Types::ExecutionBlockConfiguration::RdsCreateCrossRegionReadReplicaConfig)
438
+ ExecutionBlockConfiguration.add_member_subclass(:lambda_event_source_mapping_config, Types::ExecutionBlockConfiguration::LambdaEventSourceMappingConfig)
424
439
  ExecutionBlockConfiguration.add_member_subclass(:unknown, Types::ExecutionBlockConfiguration::Unknown)
425
440
  ExecutionBlockConfiguration.struct_class = Types::ExecutionBlockConfiguration
426
441
 
@@ -533,6 +548,15 @@ module Aws::ARCRegionswitch
533
548
  KubernetesScalingResource.add_member(:hpa_name, Shapes::ShapeRef.new(shape: String, location_name: "hpaName"))
534
549
  KubernetesScalingResource.struct_class = Types::KubernetesScalingResource
535
550
 
551
+ LambdaEventSourceMappingConfiguration.add_member(:timeout_minutes, Shapes::ShapeRef.new(shape: LambdaEventSourceMappingConfigurationTimeoutMinutesInteger, location_name: "timeoutMinutes"))
552
+ LambdaEventSourceMappingConfiguration.add_member(:action, Shapes::ShapeRef.new(shape: EventSourceMappingAction, required: true, location_name: "action"))
553
+ LambdaEventSourceMappingConfiguration.add_member(:region_event_source_mappings, Shapes::ShapeRef.new(shape: RegionEventSourceMappingMap, required: true, location_name: "regionEventSourceMappings"))
554
+ LambdaEventSourceMappingConfiguration.add_member(:ungraceful, Shapes::ShapeRef.new(shape: LambdaEventSourceMappingUngraceful, location_name: "ungraceful"))
555
+ LambdaEventSourceMappingConfiguration.struct_class = Types::LambdaEventSourceMappingConfiguration
556
+
557
+ LambdaEventSourceMappingUngraceful.add_member(:behavior, Shapes::ShapeRef.new(shape: LambdaEventSourceMappingUngracefulBehavior, location_name: "behavior"))
558
+ LambdaEventSourceMappingUngraceful.struct_class = Types::LambdaEventSourceMappingUngraceful
559
+
536
560
  LambdaList.member = Shapes::ShapeRef.new(shape: Lambdas)
537
561
 
538
562
  LambdaUngraceful.add_member(:behavior, Shapes::ShapeRef.new(shape: LambdaUngracefulBehavior, location_name: "behavior"))
@@ -654,6 +678,9 @@ module Aws::ARCRegionswitch
654
678
  RegionAndRoutingControls.key = Shapes::ShapeRef.new(shape: String)
655
679
  RegionAndRoutingControls.value = Shapes::ShapeRef.new(shape: ArcRoutingControlStates)
656
680
 
681
+ RegionEventSourceMappingMap.key = Shapes::ShapeRef.new(shape: Region)
682
+ RegionEventSourceMappingMap.value = Shapes::ShapeRef.new(shape: EventSourceMapping)
683
+
657
684
  RegionList.member = Shapes::ShapeRef.new(shape: Region)
658
685
 
659
686
  RegionSwitchPlanConfiguration.add_member(:cross_account_role, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "crossAccountRole"))
@@ -570,6 +570,7 @@ module Aws::ARCRegionswitch
570
570
  #
571
571
  # @!attribute [rw] target_percent
572
572
  # The target percentage that you specify for EC2 Auto Scaling groups.
573
+ # The default is 100.
573
574
  # @return [Integer]
574
575
  #
575
576
  # @!attribute [rw] capacity_monitoring_approach
@@ -620,7 +621,8 @@ module Aws::ARCRegionswitch
620
621
  # @return [Types::EcsUngraceful]
621
622
  #
622
623
  # @!attribute [rw] target_percent
623
- # The target percentage specified for the configuration.
624
+ # The target percentage specified for the configuration. The default
625
+ # is 100.
624
626
  # @return [Integer]
625
627
  #
626
628
  # @!attribute [rw] capacity_monitoring_approach
@@ -702,7 +704,7 @@ module Aws::ARCRegionswitch
702
704
  # @return [Types::EksResourceScalingUngraceful]
703
705
  #
704
706
  # @!attribute [rw] target_percent
705
- # The target percentage for the configuration.
707
+ # The target percentage for the configuration. The default is 100.
706
708
  # @return [Integer]
707
709
  #
708
710
  # @!attribute [rw] capacity_monitoring_approach
@@ -738,6 +740,31 @@ module Aws::ARCRegionswitch
738
740
  include Aws::Structure
739
741
  end
740
742
 
743
+ # The Amazon Web Services Lambda event source mapping configuration,
744
+ # containing the resource ARN and optional cross-account configuration.
745
+ #
746
+ # @!attribute [rw] cross_account_role
747
+ # The cross account role for the configuration.
748
+ # @return [String]
749
+ #
750
+ # @!attribute [rw] external_id
751
+ # The external ID (secret key) for the configuration.
752
+ # @return [String]
753
+ #
754
+ # @!attribute [rw] arn
755
+ # The Amazon Resource Name (ARN) of the Lambda event source mapping.
756
+ # @return [String]
757
+ #
758
+ # @see http://docs.aws.amazon.com/goto/WebAPI/arc-region-switch-2022-07-26/EventSourceMapping AWS API Documentation
759
+ #
760
+ class EventSourceMapping < Struct.new(
761
+ :cross_account_role,
762
+ :external_id,
763
+ :arn)
764
+ SENSITIVE = []
765
+ include Aws::Structure
766
+ end
767
+
741
768
  # Configuration for approval steps in a Region switch plan execution.
742
769
  # Approval steps require manual intervention before the execution can
743
770
  # proceed.
@@ -820,6 +847,10 @@ module Aws::ARCRegionswitch
820
847
  # An Amazon RDS create cross-Region replica execution block.
821
848
  # @return [Types::RdsCreateCrossRegionReplicaConfiguration]
822
849
  #
850
+ # @!attribute [rw] lambda_event_source_mapping_config
851
+ # A Lambda event source mapping execution block.
852
+ # @return [Types::LambdaEventSourceMappingConfiguration]
853
+ #
823
854
  # @see http://docs.aws.amazon.com/goto/WebAPI/arc-region-switch-2022-07-26/ExecutionBlockConfiguration AWS API Documentation
824
855
  #
825
856
  class ExecutionBlockConfiguration < Struct.new(
@@ -836,6 +867,7 @@ module Aws::ARCRegionswitch
836
867
  :document_db_config,
837
868
  :rds_promote_read_replica_config,
838
869
  :rds_create_cross_region_read_replica_config,
870
+ :lambda_event_source_mapping_config,
839
871
  :unknown)
840
872
  SENSITIVE = []
841
873
  include Aws::Structure
@@ -854,6 +886,7 @@ module Aws::ARCRegionswitch
854
886
  class DocumentDbConfig < ExecutionBlockConfiguration; end
855
887
  class RdsPromoteReadReplicaConfig < ExecutionBlockConfiguration; end
856
888
  class RdsCreateCrossRegionReadReplicaConfig < ExecutionBlockConfiguration; end
889
+ class LambdaEventSourceMappingConfig < ExecutionBlockConfiguration; end
857
890
  class Unknown < ExecutionBlockConfiguration; end
858
891
  end
859
892
 
@@ -1360,6 +1393,54 @@ module Aws::ARCRegionswitch
1360
1393
  include Aws::Structure
1361
1394
  end
1362
1395
 
1396
+ # Configuration for Amazon Web Services Lambda event source mappings
1397
+ # used in a Region switch plan.
1398
+ #
1399
+ # @!attribute [rw] timeout_minutes
1400
+ # The timeout value specified for the configuration.
1401
+ # @return [Integer]
1402
+ #
1403
+ # @!attribute [rw] action
1404
+ # The action to take - whether to `enable` or `disable` an event
1405
+ # source mapping.
1406
+ # @return [String]
1407
+ #
1408
+ # @!attribute [rw] region_event_source_mappings
1409
+ # Per-region configuration for which Lambda event source mapping to
1410
+ # enable or disable when activating or deactivating a region.
1411
+ # @return [Hash<String,Types::EventSourceMapping>]
1412
+ #
1413
+ # @!attribute [rw] ungraceful
1414
+ # The settings for ungraceful execution.
1415
+ # @return [Types::LambdaEventSourceMappingUngraceful]
1416
+ #
1417
+ # @see http://docs.aws.amazon.com/goto/WebAPI/arc-region-switch-2022-07-26/LambdaEventSourceMappingConfiguration AWS API Documentation
1418
+ #
1419
+ class LambdaEventSourceMappingConfiguration < Struct.new(
1420
+ :timeout_minutes,
1421
+ :action,
1422
+ :region_event_source_mappings,
1423
+ :ungraceful)
1424
+ SENSITIVE = []
1425
+ include Aws::Structure
1426
+ end
1427
+
1428
+ # Specifies whether to skip enabling or disabling an event source
1429
+ # mapping during an ungraceful execution.
1430
+ #
1431
+ # @!attribute [rw] behavior
1432
+ # Set to `skip` to skip executing this event source mapping step
1433
+ # during an ungraceful execution.
1434
+ # @return [String]
1435
+ #
1436
+ # @see http://docs.aws.amazon.com/goto/WebAPI/arc-region-switch-2022-07-26/LambdaEventSourceMappingUngraceful AWS API Documentation
1437
+ #
1438
+ class LambdaEventSourceMappingUngraceful < Struct.new(
1439
+ :behavior)
1440
+ SENSITIVE = []
1441
+ include Aws::Structure
1442
+ end
1443
+
1363
1444
  # Configuration for handling failures when invoking Lambda functions.
1364
1445
  #
1365
1446
  # @!attribute [rw] behavior
@@ -55,7 +55,7 @@ module Aws::ARCRegionswitch
55
55
  autoload :EndpointProvider, 'aws-sdk-arcregionswitch/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-arcregionswitch/endpoints'
57
57
 
58
- GEM_VERSION = '1.14.0'
58
+ GEM_VERSION = '1.16.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -111,162 +111,7 @@ module Aws
111
111
  def create_plan: (
112
112
  ?description: ::String,
113
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" | "activeRegion" | "inactiveRegion"),
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
- document_db_config: {
240
- timeout_minutes: ::Integer?,
241
- cross_account_role: ::String?,
242
- external_id: ::String?,
243
- behavior: ("switchoverOnly" | "failover"),
244
- ungraceful: {
245
- ungraceful: ("failover")?
246
- }?,
247
- global_cluster_identifier: ::String,
248
- database_cluster_arns: Array[::String]
249
- }?,
250
- rds_promote_read_replica_config: {
251
- timeout_minutes: ::Integer?,
252
- cross_account_role: ::String?,
253
- external_id: ::String?,
254
- db_instance_arn_map: Hash[::String, ::String]
255
- }?,
256
- rds_create_cross_region_read_replica_config: {
257
- timeout_minutes: ::Integer?,
258
- cross_account_role: ::String?,
259
- external_id: ::String?,
260
- db_instance_arn_map: Hash[::String, ::String]
261
- }?
262
- },
263
- execution_block_type: ("CustomActionLambda" | "ManualApproval" | "AuroraGlobalDatabase" | "EC2AutoScaling" | "ARCRoutingControl" | "ARCRegionSwitchPlan" | "Parallel" | "ECSServiceScaling" | "EKSResourceScaling" | "Route53HealthCheck" | "DocumentDb" | "RdsPromoteReadReplica" | "RdsCreateCrossRegionReplica")
264
- },
265
- ]?,
266
- workflow_target_action: ("activate" | "deactivate" | "postRecovery"),
267
- workflow_target_region: ::String?,
268
- workflow_description: ::String?
269
- },
114
+ Params::workflow
270
115
  ],
271
116
  execution_role: ::String,
272
117
  ?recovery_time_objective_minutes: ::Integer,
@@ -277,29 +122,9 @@ module Aws
277
122
  alarm_type: ("applicationHealth" | "trigger")
278
123
  }],
279
124
  ?triggers: Array[
280
- {
281
- description: ::String?,
282
- target_region: ::String,
283
- action: ("activate" | "deactivate" | "postRecovery"),
284
- conditions: Array[
285
- {
286
- associated_alarm_name: ::String,
287
- condition: ("red" | "green")
288
- },
289
- ],
290
- min_delay_minutes_between_executions: ::Integer
291
- },
125
+ Params::trigger
292
126
  ],
293
- ?report_configuration: {
294
- report_output: Array[
295
- {
296
- s3_configuration: {
297
- bucket_path: ::String?,
298
- bucket_owner: ::String?
299
- }?
300
- },
301
- ]?
302
- },
127
+ ?report_configuration: Params::report_configuration,
303
128
  name: ::String,
304
129
  regions: Array[::String],
305
130
  recovery_approach: ("activeActive" | "activePassive"),
@@ -526,162 +351,7 @@ module Aws
526
351
  arn: ::String,
527
352
  ?description: ::String,
528
353
  workflows: Array[
529
- {
530
- steps: Array[
531
- {
532
- name: ::String,
533
- description: ::String?,
534
- execution_block_configuration: {
535
- custom_action_lambda_config: {
536
- timeout_minutes: ::Integer?,
537
- lambdas: Array[
538
- {
539
- cross_account_role: ::String?,
540
- external_id: ::String?,
541
- arn: ::String?
542
- },
543
- ],
544
- retry_interval_minutes: ::Float,
545
- region_to_run: ("activatingRegion" | "deactivatingRegion" | "activeRegion" | "inactiveRegion"),
546
- ungraceful: {
547
- behavior: ("skip")?
548
- }?
549
- }?,
550
- ec2_asg_capacity_increase_config: {
551
- timeout_minutes: ::Integer?,
552
- asgs: Array[
553
- {
554
- cross_account_role: ::String?,
555
- external_id: ::String?,
556
- arn: ::String?
557
- },
558
- ],
559
- ungraceful: {
560
- minimum_success_percentage: ::Integer
561
- }?,
562
- target_percent: ::Integer?,
563
- capacity_monitoring_approach: ("sampledMaxInLast24Hours" | "autoscalingMaxInLast24Hours")?
564
- }?,
565
- execution_approval_config: {
566
- timeout_minutes: ::Integer?,
567
- approval_role: ::String
568
- }?,
569
- arc_routing_control_config: {
570
- timeout_minutes: ::Integer?,
571
- cross_account_role: ::String?,
572
- external_id: ::String?,
573
- region_and_routing_controls: Hash[::String, Array[
574
- {
575
- routing_control_arn: ::String,
576
- state: ("On" | "Off")
577
- },
578
- ]]
579
- }?,
580
- global_aurora_config: {
581
- timeout_minutes: ::Integer?,
582
- cross_account_role: ::String?,
583
- external_id: ::String?,
584
- behavior: ("switchoverOnly" | "failover"),
585
- ungraceful: {
586
- ungraceful: ("failover")?
587
- }?,
588
- global_cluster_identifier: ::String,
589
- database_cluster_arns: Array[::String]
590
- }?,
591
- parallel_config: {
592
- steps: untyped
593
- }?,
594
- region_switch_plan_config: {
595
- cross_account_role: ::String?,
596
- external_id: ::String?,
597
- arn: ::String
598
- }?,
599
- ecs_capacity_increase_config: {
600
- timeout_minutes: ::Integer?,
601
- services: Array[
602
- {
603
- cross_account_role: ::String?,
604
- external_id: ::String?,
605
- cluster_arn: ::String?,
606
- service_arn: ::String?
607
- },
608
- ],
609
- ungraceful: {
610
- minimum_success_percentage: ::Integer
611
- }?,
612
- target_percent: ::Integer?,
613
- capacity_monitoring_approach: ("sampledMaxInLast24Hours" | "containerInsightsMaxInLast24Hours")?
614
- }?,
615
- eks_resource_scaling_config: {
616
- timeout_minutes: ::Integer?,
617
- kubernetes_resource_type: {
618
- api_version: ::String,
619
- kind: ::String
620
- },
621
- scaling_resources: Array[
622
- Hash[::String, Hash[::String, {
623
- namespace: ::String,
624
- name: ::String,
625
- hpa_name: ::String?
626
- }]],
627
- ]?,
628
- eks_clusters: Array[
629
- {
630
- cross_account_role: ::String?,
631
- external_id: ::String?,
632
- cluster_arn: ::String
633
- },
634
- ]?,
635
- ungraceful: {
636
- minimum_success_percentage: ::Integer
637
- }?,
638
- target_percent: ::Integer?,
639
- capacity_monitoring_approach: ("sampledMaxInLast24Hours")?
640
- }?,
641
- route53_health_check_config: {
642
- timeout_minutes: ::Integer?,
643
- cross_account_role: ::String?,
644
- external_id: ::String?,
645
- hosted_zone_id: ::String,
646
- record_name: ::String,
647
- record_sets: Array[
648
- {
649
- record_set_identifier: ::String?,
650
- region: ::String?
651
- },
652
- ]?
653
- }?,
654
- document_db_config: {
655
- timeout_minutes: ::Integer?,
656
- cross_account_role: ::String?,
657
- external_id: ::String?,
658
- behavior: ("switchoverOnly" | "failover"),
659
- ungraceful: {
660
- ungraceful: ("failover")?
661
- }?,
662
- global_cluster_identifier: ::String,
663
- database_cluster_arns: Array[::String]
664
- }?,
665
- rds_promote_read_replica_config: {
666
- timeout_minutes: ::Integer?,
667
- cross_account_role: ::String?,
668
- external_id: ::String?,
669
- db_instance_arn_map: Hash[::String, ::String]
670
- }?,
671
- rds_create_cross_region_read_replica_config: {
672
- timeout_minutes: ::Integer?,
673
- cross_account_role: ::String?,
674
- external_id: ::String?,
675
- db_instance_arn_map: Hash[::String, ::String]
676
- }?
677
- },
678
- execution_block_type: ("CustomActionLambda" | "ManualApproval" | "AuroraGlobalDatabase" | "EC2AutoScaling" | "ARCRoutingControl" | "ARCRegionSwitchPlan" | "Parallel" | "ECSServiceScaling" | "EKSResourceScaling" | "Route53HealthCheck" | "DocumentDb" | "RdsPromoteReadReplica" | "RdsCreateCrossRegionReplica")
679
- },
680
- ]?,
681
- workflow_target_action: ("activate" | "deactivate" | "postRecovery"),
682
- workflow_target_region: ::String?,
683
- workflow_description: ::String?
684
- },
354
+ Params::workflow
685
355
  ],
686
356
  execution_role: ::String,
687
357
  ?recovery_time_objective_minutes: ::Integer,
@@ -692,29 +362,9 @@ module Aws
692
362
  alarm_type: ("applicationHealth" | "trigger")
693
363
  }],
694
364
  ?triggers: Array[
695
- {
696
- description: ::String?,
697
- target_region: ::String,
698
- action: ("activate" | "deactivate" | "postRecovery"),
699
- conditions: Array[
700
- {
701
- associated_alarm_name: ::String,
702
- condition: ("red" | "green")
703
- },
704
- ],
705
- min_delay_minutes_between_executions: ::Integer
706
- },
365
+ Params::trigger
707
366
  ],
708
- ?report_configuration: {
709
- report_output: Array[
710
- {
711
- s3_configuration: {
712
- bucket_path: ::String?,
713
- bucket_owner: ::String?
714
- }?
715
- },
716
- ]?
717
- }
367
+ ?report_configuration: Params::report_configuration
718
368
  ) -> _UpdatePlanResponseSuccess
719
369
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdatePlanResponseSuccess
720
370
 
data/sig/params.rbs ADDED
@@ -0,0 +1,228 @@
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
+ module Params
11
+ type workflow = {
12
+ steps: Array[
13
+ Params::step
14
+ ]?,
15
+ workflow_target_action: ("activate" | "deactivate" | "postRecovery"),
16
+ workflow_target_region: ::String?,
17
+ workflow_description: ::String?
18
+ }
19
+
20
+ type custom_action_lambda_configuration = {
21
+ timeout_minutes: ::Integer?,
22
+ lambdas: Array[
23
+ {
24
+ cross_account_role: ::String?,
25
+ external_id: ::String?,
26
+ arn: ::String?
27
+ }
28
+ ],
29
+ retry_interval_minutes: ::Float,
30
+ region_to_run: ("activatingRegion" | "deactivatingRegion" | "activeRegion" | "inactiveRegion"),
31
+ ungraceful: {
32
+ behavior: ("skip")?
33
+ }?
34
+ }
35
+
36
+ type ec2_asg_capacity_increase_configuration = {
37
+ timeout_minutes: ::Integer?,
38
+ asgs: Array[
39
+ {
40
+ cross_account_role: ::String?,
41
+ external_id: ::String?,
42
+ arn: ::String?
43
+ }
44
+ ],
45
+ ungraceful: {
46
+ minimum_success_percentage: ::Integer
47
+ }?,
48
+ target_percent: ::Integer?,
49
+ capacity_monitoring_approach: ("sampledMaxInLast24Hours" | "autoscalingMaxInLast24Hours")?
50
+ }
51
+
52
+ type global_aurora_configuration = {
53
+ timeout_minutes: ::Integer?,
54
+ cross_account_role: ::String?,
55
+ external_id: ::String?,
56
+ behavior: ("switchoverOnly" | "failover"),
57
+ ungraceful: {
58
+ ungraceful: ("failover")?
59
+ }?,
60
+ global_cluster_identifier: ::String,
61
+ database_cluster_arns: Array[::String]
62
+ }
63
+
64
+ type ecs_capacity_increase_configuration = {
65
+ timeout_minutes: ::Integer?,
66
+ services: Array[
67
+ {
68
+ cross_account_role: ::String?,
69
+ external_id: ::String?,
70
+ cluster_arn: ::String?,
71
+ service_arn: ::String?
72
+ }
73
+ ],
74
+ ungraceful: {
75
+ minimum_success_percentage: ::Integer
76
+ }?,
77
+ target_percent: ::Integer?,
78
+ capacity_monitoring_approach: ("sampledMaxInLast24Hours" | "containerInsightsMaxInLast24Hours")?
79
+ }
80
+
81
+ type eks_resource_scaling_configuration = {
82
+ timeout_minutes: ::Integer?,
83
+ kubernetes_resource_type: {
84
+ api_version: ::String,
85
+ kind: ::String
86
+ },
87
+ scaling_resources: Array[
88
+ Hash[::String, Hash[::String, {
89
+ namespace: ::String,
90
+ name: ::String,
91
+ hpa_name: ::String?
92
+ }]]
93
+ ]?,
94
+ eks_clusters: Array[
95
+ {
96
+ cross_account_role: ::String?,
97
+ external_id: ::String?,
98
+ cluster_arn: ::String
99
+ }
100
+ ]?,
101
+ ungraceful: {
102
+ minimum_success_percentage: ::Integer
103
+ }?,
104
+ target_percent: ::Integer?,
105
+ capacity_monitoring_approach: ("sampledMaxInLast24Hours")?
106
+ }
107
+
108
+ type route_53_health_check_configuration = {
109
+ timeout_minutes: ::Integer?,
110
+ cross_account_role: ::String?,
111
+ external_id: ::String?,
112
+ hosted_zone_id: ::String,
113
+ record_name: ::String,
114
+ record_sets: Array[
115
+ {
116
+ record_set_identifier: ::String?,
117
+ region: ::String?
118
+ }
119
+ ]?
120
+ }
121
+
122
+ type document_db_configuration = {
123
+ timeout_minutes: ::Integer?,
124
+ cross_account_role: ::String?,
125
+ external_id: ::String?,
126
+ behavior: ("switchoverOnly" | "failover"),
127
+ ungraceful: {
128
+ ungraceful: ("failover")?
129
+ }?,
130
+ global_cluster_identifier: ::String,
131
+ database_cluster_arns: Array[::String]
132
+ }
133
+
134
+ type lambda_event_source_mapping_configuration = {
135
+ timeout_minutes: ::Integer?,
136
+ action: ("enable" | "disable"),
137
+ region_event_source_mappings: Hash[::String, {
138
+ cross_account_role: ::String?,
139
+ external_id: ::String?,
140
+ arn: ::String
141
+ }],
142
+ ungraceful: {
143
+ behavior: ("skip")?
144
+ }?
145
+ }
146
+
147
+ type execution_block_configuration = {
148
+ custom_action_lambda_config: Params::custom_action_lambda_configuration?,
149
+ ec2_asg_capacity_increase_config: Params::ec2_asg_capacity_increase_configuration?,
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: Params::global_aurora_configuration?,
166
+ parallel_config: {
167
+ steps: Array[
168
+ Params::step
169
+ ]
170
+ }?,
171
+ region_switch_plan_config: {
172
+ cross_account_role: ::String?,
173
+ external_id: ::String?,
174
+ arn: ::String
175
+ }?,
176
+ ecs_capacity_increase_config: Params::ecs_capacity_increase_configuration?,
177
+ eks_resource_scaling_config: Params::eks_resource_scaling_configuration?,
178
+ route53_health_check_config: Params::route_53_health_check_configuration?,
179
+ document_db_config: Params::document_db_configuration?,
180
+ rds_promote_read_replica_config: {
181
+ timeout_minutes: ::Integer?,
182
+ cross_account_role: ::String?,
183
+ external_id: ::String?,
184
+ db_instance_arn_map: Hash[::String, ::String]
185
+ }?,
186
+ rds_create_cross_region_read_replica_config: {
187
+ timeout_minutes: ::Integer?,
188
+ cross_account_role: ::String?,
189
+ external_id: ::String?,
190
+ db_instance_arn_map: Hash[::String, ::String]
191
+ }?,
192
+ lambda_event_source_mapping_config: Params::lambda_event_source_mapping_configuration?
193
+ }
194
+
195
+ type step = {
196
+ name: ::String,
197
+ description: ::String?,
198
+ execution_block_configuration: Params::execution_block_configuration,
199
+ execution_block_type: ("CustomActionLambda" | "ManualApproval" | "AuroraGlobalDatabase" | "EC2AutoScaling" | "ARCRoutingControl" | "ARCRegionSwitchPlan" | "Parallel" | "ECSServiceScaling" | "EKSResourceScaling" | "Route53HealthCheck" | "DocumentDb" | "RdsPromoteReadReplica" | "RdsCreateCrossRegionReplica" | "LambdaEventSourceMapping")
200
+ }
201
+
202
+ type trigger = {
203
+ description: ::String?,
204
+ target_region: ::String,
205
+ action: ("activate" | "deactivate" | "postRecovery"),
206
+ conditions: Array[
207
+ {
208
+ associated_alarm_name: ::String,
209
+ condition: ("red" | "green")
210
+ }
211
+ ],
212
+ min_delay_minutes_between_executions: ::Integer
213
+ }
214
+
215
+ type report_configuration = {
216
+ report_output: Array[
217
+ {
218
+ s3_configuration: {
219
+ bucket_path: ::String?,
220
+ bucket_owner: ::String?
221
+ }?
222
+ }
223
+ ]?
224
+ }
225
+
226
+ end
227
+ end
228
+ end
data/sig/types.rbs CHANGED
@@ -202,6 +202,13 @@ module Aws::ARCRegionswitch
202
202
  SENSITIVE: []
203
203
  end
204
204
 
205
+ class EventSourceMapping
206
+ attr_accessor cross_account_role: ::String
207
+ attr_accessor external_id: ::String
208
+ attr_accessor arn: ::String
209
+ SENSITIVE: []
210
+ end
211
+
205
212
  class ExecutionApprovalConfiguration
206
213
  attr_accessor timeout_minutes: ::Integer
207
214
  attr_accessor approval_role: ::String
@@ -222,6 +229,7 @@ module Aws::ARCRegionswitch
222
229
  attr_accessor document_db_config: Types::DocumentDbConfiguration
223
230
  attr_accessor rds_promote_read_replica_config: Types::RdsPromoteReadReplicaConfiguration
224
231
  attr_accessor rds_create_cross_region_read_replica_config: Types::RdsCreateCrossRegionReplicaConfiguration
232
+ attr_accessor lambda_event_source_mapping_config: Types::LambdaEventSourceMappingConfiguration
225
233
  attr_accessor unknown: untyped
226
234
  SENSITIVE: []
227
235
 
@@ -251,6 +259,8 @@ module Aws::ARCRegionswitch
251
259
  end
252
260
  class RdsCreateCrossRegionReadReplicaConfig < ExecutionBlockConfiguration
253
261
  end
262
+ class LambdaEventSourceMappingConfig < ExecutionBlockConfiguration
263
+ end
254
264
  class Unknown < ExecutionBlockConfiguration
255
265
  end
256
266
  end
@@ -259,7 +269,7 @@ module Aws::ARCRegionswitch
259
269
  attr_accessor timestamp: ::Time
260
270
  attr_accessor type: ("unknown" | "executionPending" | "executionStarted" | "executionSucceeded" | "executionFailed" | "executionPausing" | "executionPaused" | "executionCanceling" | "executionCanceled" | "executionPendingApproval" | "executionBehaviorChangedToUngraceful" | "executionBehaviorChangedToGraceful" | "executionPendingChildPlanManualApproval" | "executionSuccessMonitoringApplicationHealth" | "stepStarted" | "stepUpdate" | "stepSucceeded" | "stepFailed" | "stepSkipped" | "stepPausedByError" | "stepPausedByOperator" | "stepCanceled" | "stepPendingApproval" | "stepExecutionBehaviorChangedToUngraceful" | "stepPendingApplicationHealthMonitor" | "planEvaluationWarning")
261
271
  attr_accessor step_name: ::String
262
- attr_accessor execution_block_type: ("CustomActionLambda" | "ManualApproval" | "AuroraGlobalDatabase" | "EC2AutoScaling" | "ARCRoutingControl" | "ARCRegionSwitchPlan" | "Parallel" | "ECSServiceScaling" | "EKSResourceScaling" | "Route53HealthCheck" | "DocumentDb" | "RdsPromoteReadReplica" | "RdsCreateCrossRegionReplica")
272
+ attr_accessor execution_block_type: ("CustomActionLambda" | "ManualApproval" | "AuroraGlobalDatabase" | "EC2AutoScaling" | "ARCRoutingControl" | "ARCRegionSwitchPlan" | "Parallel" | "ECSServiceScaling" | "EKSResourceScaling" | "Route53HealthCheck" | "DocumentDb" | "RdsPromoteReadReplica" | "RdsCreateCrossRegionReplica" | "LambdaEventSourceMapping")
263
273
  attr_accessor resources: ::Array[::String]
264
274
  attr_accessor error: ::String
265
275
  attr_accessor description: ::String
@@ -391,6 +401,19 @@ module Aws::ARCRegionswitch
391
401
  SENSITIVE: []
392
402
  end
393
403
 
404
+ class LambdaEventSourceMappingConfiguration
405
+ attr_accessor timeout_minutes: ::Integer
406
+ attr_accessor action: ("enable" | "disable")
407
+ attr_accessor region_event_source_mappings: ::Hash[::String, Types::EventSourceMapping]
408
+ attr_accessor ungraceful: Types::LambdaEventSourceMappingUngraceful
409
+ SENSITIVE: []
410
+ end
411
+
412
+ class LambdaEventSourceMappingUngraceful
413
+ attr_accessor behavior: ("skip")
414
+ SENSITIVE: []
415
+ end
416
+
394
417
  class LambdaUngraceful
395
418
  attr_accessor behavior: ("skip")
396
419
  SENSITIVE: []
@@ -663,7 +686,7 @@ module Aws::ARCRegionswitch
663
686
  attr_accessor name: ::String
664
687
  attr_accessor description: ::String
665
688
  attr_accessor execution_block_configuration: Types::ExecutionBlockConfiguration
666
- attr_accessor execution_block_type: ("CustomActionLambda" | "ManualApproval" | "AuroraGlobalDatabase" | "EC2AutoScaling" | "ARCRoutingControl" | "ARCRegionSwitchPlan" | "Parallel" | "ECSServiceScaling" | "EKSResourceScaling" | "Route53HealthCheck" | "DocumentDb" | "RdsPromoteReadReplica" | "RdsCreateCrossRegionReplica")
689
+ attr_accessor execution_block_type: ("CustomActionLambda" | "ManualApproval" | "AuroraGlobalDatabase" | "EC2AutoScaling" | "ARCRoutingControl" | "ARCRegionSwitchPlan" | "Parallel" | "ECSServiceScaling" | "EKSResourceScaling" | "Route53HealthCheck" | "DocumentDb" | "RdsPromoteReadReplica" | "RdsCreateCrossRegionReplica" | "LambdaEventSourceMapping")
667
690
  SENSITIVE: []
668
691
  end
669
692
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-arcregionswitch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.0
4
+ version: 1.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
@@ -18,7 +18,7 @@ dependencies:
18
18
  version: '3'
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: 3.244.0
21
+ version: 3.247.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,7 +28,7 @@ dependencies:
28
28
  version: '3'
29
29
  - - ">="
30
30
  - !ruby/object:Gem::Version
31
- version: 3.244.0
31
+ version: 3.247.0
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: aws-sigv4
34
34
  requirement: !ruby/object:Gem::Requirement
@@ -68,6 +68,7 @@ files:
68
68
  - lib/aws-sdk-arcregionswitch/waiters.rb
69
69
  - sig/client.rbs
70
70
  - sig/errors.rbs
71
+ - sig/params.rbs
71
72
  - sig/resource.rbs
72
73
  - sig/types.rbs
73
74
  - sig/waiters.rbs