aws-sdk-drs 1.67.0 → 1.69.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.
@@ -541,6 +541,44 @@ module Aws::Drs
541
541
  req.send_request(options)
542
542
  end
543
543
 
544
+ # Cancels an in-progress Recovery Plan execution. Remaining steps are
545
+ # skipped.
546
+ #
547
+ # @option params [required, String] :recovery_plan_execution_arn
548
+ # The ARN of the Recovery Plan execution to cancel.
549
+ #
550
+ # @return [Types::CancelRecoveryPlanExecutionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
551
+ #
552
+ # * {Types::CancelRecoveryPlanExecutionResponse#recovery_plan_execution #recovery_plan_execution} => Types::RecoveryPlanExecution
553
+ #
554
+ # @example Request syntax with placeholder values
555
+ #
556
+ # resp = client.cancel_recovery_plan_execution({
557
+ # recovery_plan_execution_arn: "StrictDRSARN", # required
558
+ # })
559
+ #
560
+ # @example Response structure
561
+ #
562
+ # resp.recovery_plan_execution.recovery_plan_execution_arn #=> String
563
+ # resp.recovery_plan_execution.recovery_plan_arn #=> String
564
+ # resp.recovery_plan_execution.mode #=> String, one of "DRILL", "RECOVERY"
565
+ # resp.recovery_plan_execution.status #=> String, one of "CREATED", "IN_PROGRESS", "COMPLETED", "FAILED", "CANCELLING", "CANCELLED"
566
+ # resp.recovery_plan_execution.started_at #=> String
567
+ # resp.recovery_plan_execution.completed_at #=> String
568
+ # resp.recovery_plan_execution.error_detail.message #=> String
569
+ # resp.recovery_plan_execution.error_detail.code #=> String
570
+ # resp.recovery_plan_execution.tags #=> Hash
571
+ # resp.recovery_plan_execution.tags["TagKey"] #=> String
572
+ #
573
+ # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/CancelRecoveryPlanExecution AWS API Documentation
574
+ #
575
+ # @overload cancel_recovery_plan_execution(params = {})
576
+ # @param [Hash] params ({})
577
+ def cancel_recovery_plan_execution(params = {}, options = {})
578
+ req = build_request(:cancel_recovery_plan_execution, params)
579
+ req.send_request(options)
580
+ end
581
+
544
582
  # Create an extended source server in the target Account based on the
545
583
  # source server in staging account.
546
584
  #
@@ -673,6 +711,9 @@ module Aws::Drs
673
711
  # performing a drill, recovery or failback to the previous region or
674
712
  # availability zone, using the instance ID of the source instance.
675
713
  #
714
+ # @option params [String] :recovery_mode
715
+ # Recovery mode.
716
+ #
676
717
  # @return [Types::CreateLaunchConfigurationTemplateResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
677
718
  #
678
719
  # * {Types::CreateLaunchConfigurationTemplateResponse#launch_configuration_template #launch_configuration_template} => Types::LaunchConfigurationTemplate
@@ -693,6 +734,7 @@ module Aws::Drs
693
734
  # export_bucket_arn: "ARN",
694
735
  # post_launch_enabled: false,
695
736
  # launch_into_source_instance: false,
737
+ # recovery_mode: "FAST", # accepts FAST, OPTIMAL
696
738
  # })
697
739
  #
698
740
  # @example Response structure
@@ -709,6 +751,7 @@ module Aws::Drs
709
751
  # resp.launch_configuration_template.export_bucket_arn #=> String
710
752
  # resp.launch_configuration_template.post_launch_enabled #=> Boolean
711
753
  # resp.launch_configuration_template.launch_into_source_instance #=> Boolean
754
+ # resp.launch_configuration_template.recovery_mode #=> String, one of "FAST", "OPTIMAL"
712
755
  #
713
756
  # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/CreateLaunchConfigurationTemplate AWS API Documentation
714
757
  #
@@ -719,6 +762,128 @@ module Aws::Drs
719
762
  req.send_request(options)
720
763
  end
721
764
 
765
+ # Creates a Recovery Plan to orchestrate multi-server disaster recovery.
766
+ #
767
+ # @option params [required, String] :name
768
+ # The name of a Recovery Plan.
769
+ #
770
+ # @option params [String] :description
771
+ # The description of a Recovery Plan.
772
+ #
773
+ # @option params [String] :client_token
774
+ # A unique string provided to ensure request idempotency.
775
+ #
776
+ # **A suitable default value is auto-generated.** You should normally
777
+ # not need to pass this option.**
778
+ #
779
+ # @option params [Hash<String,String>] :tags
780
+ # The tags to apply to the Recovery Plan.
781
+ #
782
+ # @return [Types::CreateRecoveryPlanResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
783
+ #
784
+ # * {Types::CreateRecoveryPlanResponse#recovery_plan #recovery_plan} => Types::RecoveryPlan
785
+ #
786
+ # @example Request syntax with placeholder values
787
+ #
788
+ # resp = client.create_recovery_plan({
789
+ # name: "RecoveryPlanName", # required
790
+ # description: "RecoveryPlanDescription",
791
+ # client_token: "ClientIdempotencyToken",
792
+ # tags: {
793
+ # "TagKey" => "TagValue",
794
+ # },
795
+ # })
796
+ #
797
+ # @example Response structure
798
+ #
799
+ # resp.recovery_plan.recovery_plan_arn #=> String
800
+ # resp.recovery_plan.name #=> String
801
+ # resp.recovery_plan.description #=> String
802
+ # resp.recovery_plan.status #=> String, one of "ACTIVE", "INVALID"
803
+ # resp.recovery_plan.created_at #=> String
804
+ # resp.recovery_plan.updated_at #=> String
805
+ # resp.recovery_plan.tags #=> Hash
806
+ # resp.recovery_plan.tags["TagKey"] #=> String
807
+ #
808
+ # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/CreateRecoveryPlan AWS API Documentation
809
+ #
810
+ # @overload create_recovery_plan(params = {})
811
+ # @param [Hash] params ({})
812
+ def create_recovery_plan(params = {}, options = {})
813
+ req = build_request(:create_recovery_plan, params)
814
+ req.send_request(options)
815
+ end
816
+
817
+ # Creates a step in a Recovery Plan. A step is either `SERVER` type
818
+ # (servers to recover in parallel) or `WAIT` type (timed pause between
819
+ # steps).
820
+ #
821
+ # @option params [required, String] :recovery_plan_arn
822
+ # The ARN of the Recovery Plan to add the step to.
823
+ #
824
+ # @option params [required, String] :step_name
825
+ # The name of a Recovery Plan Step.
826
+ #
827
+ # @option params [Integer] :step_order
828
+ # The order of a step within a Recovery Plan (1-based).
829
+ #
830
+ # @option params [required, Types::RecoveryPlanStepConfiguration] :configuration
831
+ # Type-specific configuration for a recovery plan step. Exactly one
832
+ # member must be set.
833
+ #
834
+ # @option params [String] :client_token
835
+ # A unique string provided to ensure request idempotency.
836
+ #
837
+ # **A suitable default value is auto-generated.** You should normally
838
+ # not need to pass this option.**
839
+ #
840
+ # @return [Types::CreateRecoveryPlanStepResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
841
+ #
842
+ # * {Types::CreateRecoveryPlanStepResponse#recovery_plan_step #recovery_plan_step} => Types::RecoveryPlanStep
843
+ #
844
+ # @example Request syntax with placeholder values
845
+ #
846
+ # resp = client.create_recovery_plan_step({
847
+ # recovery_plan_arn: "StrictDRSARN", # required
848
+ # step_name: "RecoveryPlanStepName", # required
849
+ # step_order: 1,
850
+ # configuration: { # required
851
+ # server_step_configuration: {
852
+ # servers: [ # required
853
+ # {
854
+ # server_arn: "SourceServerARN", # required
855
+ # impact_level: "CRITICAL", # accepts CRITICAL, OPTIONAL
856
+ # },
857
+ # ],
858
+ # },
859
+ # wait_step_configuration: {
860
+ # wait_duration_minutes: 1, # required
861
+ # },
862
+ # },
863
+ # client_token: "ClientIdempotencyToken",
864
+ # })
865
+ #
866
+ # @example Response structure
867
+ #
868
+ # resp.recovery_plan_step.recovery_plan_step_arn #=> String
869
+ # resp.recovery_plan_step.step_order #=> Integer
870
+ # resp.recovery_plan_step.step_name #=> String
871
+ # resp.recovery_plan_step.configuration.server_step_configuration.servers #=> Array
872
+ # resp.recovery_plan_step.configuration.server_step_configuration.servers[0].server_arn #=> String
873
+ # resp.recovery_plan_step.configuration.server_step_configuration.servers[0].impact_level #=> String, one of "CRITICAL", "OPTIONAL"
874
+ # resp.recovery_plan_step.configuration.wait_step_configuration.wait_duration_minutes #=> Integer
875
+ # resp.recovery_plan_step.created_at #=> String
876
+ # resp.recovery_plan_step.updated_at #=> String
877
+ #
878
+ # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/CreateRecoveryPlanStep AWS API Documentation
879
+ #
880
+ # @overload create_recovery_plan_step(params = {})
881
+ # @param [Hash] params ({})
882
+ def create_recovery_plan_step(params = {}, options = {})
883
+ req = build_request(:create_recovery_plan_step, params)
884
+ req.send_request(options)
885
+ end
886
+
722
887
  # Creates a new ReplicationConfigurationTemplate.
723
888
  #
724
889
  # @option params [required, String] :staging_area_subnet_id
@@ -1006,6 +1171,92 @@ module Aws::Drs
1006
1171
  req.send_request(options)
1007
1172
  end
1008
1173
 
1174
+ # Deletes a Recovery Plan. Cannot delete a plan that has an execution in
1175
+ # a non-terminal status (`CREATED`, `IN_PROGRESS`).
1176
+ #
1177
+ # @option params [required, String] :recovery_plan_arn
1178
+ # The ARN of the Recovery Plan to delete.
1179
+ #
1180
+ # @return [Types::DeleteRecoveryPlanResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1181
+ #
1182
+ # * {Types::DeleteRecoveryPlanResponse#recovery_plan_arn #recovery_plan_arn} => String
1183
+ #
1184
+ # @example Request syntax with placeholder values
1185
+ #
1186
+ # resp = client.delete_recovery_plan({
1187
+ # recovery_plan_arn: "StrictDRSARN", # required
1188
+ # })
1189
+ #
1190
+ # @example Response structure
1191
+ #
1192
+ # resp.recovery_plan_arn #=> String
1193
+ #
1194
+ # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/DeleteRecoveryPlan AWS API Documentation
1195
+ #
1196
+ # @overload delete_recovery_plan(params = {})
1197
+ # @param [Hash] params ({})
1198
+ def delete_recovery_plan(params = {}, options = {})
1199
+ req = build_request(:delete_recovery_plan, params)
1200
+ req.send_request(options)
1201
+ end
1202
+
1203
+ # Deletes a Recovery Plan execution record. Must be in a terminal
1204
+ # status.
1205
+ #
1206
+ # @option params [required, String] :recovery_plan_execution_arn
1207
+ # The ARN of the Recovery Plan execution to delete.
1208
+ #
1209
+ # @return [Types::DeleteRecoveryPlanExecutionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1210
+ #
1211
+ # * {Types::DeleteRecoveryPlanExecutionResponse#recovery_plan_execution_arn #recovery_plan_execution_arn} => String
1212
+ #
1213
+ # @example Request syntax with placeholder values
1214
+ #
1215
+ # resp = client.delete_recovery_plan_execution({
1216
+ # recovery_plan_execution_arn: "StrictDRSARN", # required
1217
+ # })
1218
+ #
1219
+ # @example Response structure
1220
+ #
1221
+ # resp.recovery_plan_execution_arn #=> String
1222
+ #
1223
+ # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/DeleteRecoveryPlanExecution AWS API Documentation
1224
+ #
1225
+ # @overload delete_recovery_plan_execution(params = {})
1226
+ # @param [Hash] params ({})
1227
+ def delete_recovery_plan_execution(params = {}, options = {})
1228
+ req = build_request(:delete_recovery_plan_execution, params)
1229
+ req.send_request(options)
1230
+ end
1231
+
1232
+ # Deletes a step from a Recovery Plan.
1233
+ #
1234
+ # @option params [required, String] :recovery_plan_step_arn
1235
+ # The ARN of the Recovery Plan step to delete.
1236
+ #
1237
+ # @return [Types::DeleteRecoveryPlanStepResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1238
+ #
1239
+ # * {Types::DeleteRecoveryPlanStepResponse#recovery_plan_step_arn #recovery_plan_step_arn} => String
1240
+ #
1241
+ # @example Request syntax with placeholder values
1242
+ #
1243
+ # resp = client.delete_recovery_plan_step({
1244
+ # recovery_plan_step_arn: "StrictDRSARN", # required
1245
+ # })
1246
+ #
1247
+ # @example Response structure
1248
+ #
1249
+ # resp.recovery_plan_step_arn #=> String
1250
+ #
1251
+ # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/DeleteRecoveryPlanStep AWS API Documentation
1252
+ #
1253
+ # @overload delete_recovery_plan_step(params = {})
1254
+ # @param [Hash] params ({})
1255
+ def delete_recovery_plan_step(params = {}, options = {})
1256
+ req = build_request(:delete_recovery_plan_step, params)
1257
+ req.send_request(options)
1258
+ end
1259
+
1009
1260
  # Deletes a single Replication Configuration Template by ID
1010
1261
  #
1011
1262
  # @option params [required, String] :replication_configuration_template_id
@@ -1265,6 +1516,7 @@ module Aws::Drs
1265
1516
  # resp.items[0].export_bucket_arn #=> String
1266
1517
  # resp.items[0].post_launch_enabled #=> Boolean
1267
1518
  # resp.items[0].launch_into_source_instance #=> Boolean
1519
+ # resp.items[0].recovery_mode #=> String, one of "FAST", "OPTIMAL"
1268
1520
  # resp.next_token #=> String
1269
1521
  #
1270
1522
  # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/DescribeLaunchConfigurationTemplates AWS API Documentation
@@ -1908,6 +2160,7 @@ module Aws::Drs
1908
2160
  # * {Types::LaunchConfiguration#licensing #licensing} => Types::Licensing
1909
2161
  # * {Types::LaunchConfiguration#post_launch_enabled #post_launch_enabled} => Boolean
1910
2162
  # * {Types::LaunchConfiguration#launch_into_instance_properties #launch_into_instance_properties} => Types::LaunchIntoInstanceProperties
2163
+ # * {Types::LaunchConfiguration#recovery_mode #recovery_mode} => String
1911
2164
  #
1912
2165
  # @example Request syntax with placeholder values
1913
2166
  #
@@ -1927,6 +2180,7 @@ module Aws::Drs
1927
2180
  # resp.licensing.os_byol #=> Boolean
1928
2181
  # resp.post_launch_enabled #=> Boolean
1929
2182
  # resp.launch_into_instance_properties.launch_into_ec2_instance_id #=> String
2183
+ # resp.recovery_mode #=> String, one of "FAST", "OPTIMAL"
1930
2184
  #
1931
2185
  # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/GetLaunchConfiguration AWS API Documentation
1932
2186
  #
@@ -1937,6 +2191,155 @@ module Aws::Drs
1937
2191
  req.send_request(options)
1938
2192
  end
1939
2193
 
2194
+ # Gets a Recovery Plan by ARN.
2195
+ #
2196
+ # @option params [required, String] :recovery_plan_arn
2197
+ # The ARN of the Recovery Plan to retrieve.
2198
+ #
2199
+ # @return [Types::GetRecoveryPlanResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2200
+ #
2201
+ # * {Types::GetRecoveryPlanResponse#recovery_plan #recovery_plan} => Types::RecoveryPlan
2202
+ #
2203
+ # @example Request syntax with placeholder values
2204
+ #
2205
+ # resp = client.get_recovery_plan({
2206
+ # recovery_plan_arn: "StrictDRSARN", # required
2207
+ # })
2208
+ #
2209
+ # @example Response structure
2210
+ #
2211
+ # resp.recovery_plan.recovery_plan_arn #=> String
2212
+ # resp.recovery_plan.name #=> String
2213
+ # resp.recovery_plan.description #=> String
2214
+ # resp.recovery_plan.status #=> String, one of "ACTIVE", "INVALID"
2215
+ # resp.recovery_plan.created_at #=> String
2216
+ # resp.recovery_plan.updated_at #=> String
2217
+ # resp.recovery_plan.tags #=> Hash
2218
+ # resp.recovery_plan.tags["TagKey"] #=> String
2219
+ #
2220
+ # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/GetRecoveryPlan AWS API Documentation
2221
+ #
2222
+ # @overload get_recovery_plan(params = {})
2223
+ # @param [Hash] params ({})
2224
+ def get_recovery_plan(params = {}, options = {})
2225
+ req = build_request(:get_recovery_plan, params)
2226
+ req.send_request(options)
2227
+ end
2228
+
2229
+ # Gets the details of a Recovery Plan execution.
2230
+ #
2231
+ # @option params [required, String] :recovery_plan_execution_arn
2232
+ # The ARN of the Recovery Plan execution.
2233
+ #
2234
+ # @return [Types::GetRecoveryPlanExecutionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2235
+ #
2236
+ # * {Types::GetRecoveryPlanExecutionResponse#recovery_plan_execution #recovery_plan_execution} => Types::RecoveryPlanExecution
2237
+ #
2238
+ # @example Request syntax with placeholder values
2239
+ #
2240
+ # resp = client.get_recovery_plan_execution({
2241
+ # recovery_plan_execution_arn: "StrictDRSARN", # required
2242
+ # })
2243
+ #
2244
+ # @example Response structure
2245
+ #
2246
+ # resp.recovery_plan_execution.recovery_plan_execution_arn #=> String
2247
+ # resp.recovery_plan_execution.recovery_plan_arn #=> String
2248
+ # resp.recovery_plan_execution.mode #=> String, one of "DRILL", "RECOVERY"
2249
+ # resp.recovery_plan_execution.status #=> String, one of "CREATED", "IN_PROGRESS", "COMPLETED", "FAILED", "CANCELLING", "CANCELLED"
2250
+ # resp.recovery_plan_execution.started_at #=> String
2251
+ # resp.recovery_plan_execution.completed_at #=> String
2252
+ # resp.recovery_plan_execution.error_detail.message #=> String
2253
+ # resp.recovery_plan_execution.error_detail.code #=> String
2254
+ # resp.recovery_plan_execution.tags #=> Hash
2255
+ # resp.recovery_plan_execution.tags["TagKey"] #=> String
2256
+ #
2257
+ # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/GetRecoveryPlanExecution AWS API Documentation
2258
+ #
2259
+ # @overload get_recovery_plan_execution(params = {})
2260
+ # @param [Hash] params ({})
2261
+ def get_recovery_plan_execution(params = {}, options = {})
2262
+ req = build_request(:get_recovery_plan_execution, params)
2263
+ req.send_request(options)
2264
+ end
2265
+
2266
+ # Gets the details of a step within a Recovery Plan execution.
2267
+ #
2268
+ # @option params [required, String] :recovery_plan_execution_step_arn
2269
+ # The ARN of the execution step.
2270
+ #
2271
+ # @return [Types::GetRecoveryPlanExecutionStepResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2272
+ #
2273
+ # * {Types::GetRecoveryPlanExecutionStepResponse#recovery_plan_execution_step #recovery_plan_execution_step} => Types::RecoveryPlanExecutionStep
2274
+ #
2275
+ # @example Request syntax with placeholder values
2276
+ #
2277
+ # resp = client.get_recovery_plan_execution_step({
2278
+ # recovery_plan_execution_step_arn: "StrictDRSARN", # required
2279
+ # })
2280
+ #
2281
+ # @example Response structure
2282
+ #
2283
+ # resp.recovery_plan_execution_step.recovery_plan_execution_step_arn #=> String
2284
+ # resp.recovery_plan_execution_step.step_index #=> Integer
2285
+ # resp.recovery_plan_execution_step.status #=> String, one of "NOT_STARTED", "EXECUTING", "WAITING", "COMPLETED", "FAILED", "TIMED_OUT", "SKIPPED"
2286
+ # resp.recovery_plan_execution_step.step_name #=> String
2287
+ # resp.recovery_plan_execution_step.configuration.execution_server_step_configuration.servers #=> Array
2288
+ # resp.recovery_plan_execution_step.configuration.execution_server_step_configuration.servers[0].server_arn #=> String
2289
+ # resp.recovery_plan_execution_step.configuration.execution_server_step_configuration.servers[0].impact_level #=> String, one of "CRITICAL", "OPTIONAL"
2290
+ # resp.recovery_plan_execution_step.configuration.execution_server_step_configuration.servers[0].job_id #=> String
2291
+ # resp.recovery_plan_execution_step.configuration.wait_step_configuration.wait_duration_minutes #=> Integer
2292
+ # resp.recovery_plan_execution_step.error_detail.message #=> String
2293
+ # resp.recovery_plan_execution_step.error_detail.code #=> String
2294
+ # resp.recovery_plan_execution_step.attempt #=> Integer
2295
+ # resp.recovery_plan_execution_step.created_at #=> String
2296
+ # resp.recovery_plan_execution_step.updated_at #=> String
2297
+ #
2298
+ # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/GetRecoveryPlanExecutionStep AWS API Documentation
2299
+ #
2300
+ # @overload get_recovery_plan_execution_step(params = {})
2301
+ # @param [Hash] params ({})
2302
+ def get_recovery_plan_execution_step(params = {}, options = {})
2303
+ req = build_request(:get_recovery_plan_execution_step, params)
2304
+ req.send_request(options)
2305
+ end
2306
+
2307
+ # Gets a Recovery Plan step by ARN.
2308
+ #
2309
+ # @option params [required, String] :recovery_plan_step_arn
2310
+ # The ARN of the Recovery Plan step to retrieve.
2311
+ #
2312
+ # @return [Types::GetRecoveryPlanStepResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2313
+ #
2314
+ # * {Types::GetRecoveryPlanStepResponse#recovery_plan_step #recovery_plan_step} => Types::RecoveryPlanStep
2315
+ #
2316
+ # @example Request syntax with placeholder values
2317
+ #
2318
+ # resp = client.get_recovery_plan_step({
2319
+ # recovery_plan_step_arn: "StrictDRSARN", # required
2320
+ # })
2321
+ #
2322
+ # @example Response structure
2323
+ #
2324
+ # resp.recovery_plan_step.recovery_plan_step_arn #=> String
2325
+ # resp.recovery_plan_step.step_order #=> Integer
2326
+ # resp.recovery_plan_step.step_name #=> String
2327
+ # resp.recovery_plan_step.configuration.server_step_configuration.servers #=> Array
2328
+ # resp.recovery_plan_step.configuration.server_step_configuration.servers[0].server_arn #=> String
2329
+ # resp.recovery_plan_step.configuration.server_step_configuration.servers[0].impact_level #=> String, one of "CRITICAL", "OPTIONAL"
2330
+ # resp.recovery_plan_step.configuration.wait_step_configuration.wait_duration_minutes #=> Integer
2331
+ # resp.recovery_plan_step.created_at #=> String
2332
+ # resp.recovery_plan_step.updated_at #=> String
2333
+ #
2334
+ # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/GetRecoveryPlanStep AWS API Documentation
2335
+ #
2336
+ # @overload get_recovery_plan_step(params = {})
2337
+ # @param [Hash] params ({})
2338
+ def get_recovery_plan_step(params = {}, options = {})
2339
+ req = build_request(:get_recovery_plan_step, params)
2340
+ req.send_request(options)
2341
+ end
2342
+
1940
2343
  # Gets a ReplicationConfiguration, filtered by Source Server ID.
1941
2344
  #
1942
2345
  # @option params [required, String] :source_server_id
@@ -2133,6 +2536,205 @@ module Aws::Drs
2133
2536
  req.send_request(options)
2134
2537
  end
2135
2538
 
2539
+ # Lists all steps within a Recovery Plan execution.
2540
+ #
2541
+ # @option params [required, String] :recovery_plan_execution_arn
2542
+ # The ARN of the Recovery Plan execution.
2543
+ #
2544
+ # @option params [Types::ListRecoveryPlanExecutionStepsFilter] :filter
2545
+ # Filters for listing execution steps.
2546
+ #
2547
+ # @option params [Integer] :max_results
2548
+ # Maximum number of results to return.
2549
+ #
2550
+ # @option params [String] :next_token
2551
+ # The token for the next page of results.
2552
+ #
2553
+ # @return [Types::ListRecoveryPlanExecutionStepsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2554
+ #
2555
+ # * {Types::ListRecoveryPlanExecutionStepsResponse#recovery_plan_execution_steps #recovery_plan_execution_steps} => Array&lt;Types::RecoveryPlanExecutionStepSummary&gt;
2556
+ # * {Types::ListRecoveryPlanExecutionStepsResponse#next_token #next_token} => String
2557
+ #
2558
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2559
+ #
2560
+ # @example Request syntax with placeholder values
2561
+ #
2562
+ # resp = client.list_recovery_plan_execution_steps({
2563
+ # recovery_plan_execution_arn: "StrictDRSARN", # required
2564
+ # filter: {
2565
+ # status: "NOT_STARTED", # accepts NOT_STARTED, EXECUTING, WAITING, COMPLETED, FAILED, TIMED_OUT, SKIPPED
2566
+ # },
2567
+ # max_results: 1,
2568
+ # next_token: "PaginationToken",
2569
+ # })
2570
+ #
2571
+ # @example Response structure
2572
+ #
2573
+ # resp.recovery_plan_execution_steps #=> Array
2574
+ # resp.recovery_plan_execution_steps[0].recovery_plan_execution_step_arn #=> String
2575
+ # resp.recovery_plan_execution_steps[0].step_name #=> String
2576
+ # resp.recovery_plan_execution_steps[0].step_index #=> Integer
2577
+ # resp.recovery_plan_execution_steps[0].status #=> String, one of "NOT_STARTED", "EXECUTING", "WAITING", "COMPLETED", "FAILED", "TIMED_OUT", "SKIPPED"
2578
+ # resp.recovery_plan_execution_steps[0].configuration.execution_server_step_configuration.servers #=> Array
2579
+ # resp.recovery_plan_execution_steps[0].configuration.execution_server_step_configuration.servers[0].server_arn #=> String
2580
+ # resp.recovery_plan_execution_steps[0].configuration.execution_server_step_configuration.servers[0].impact_level #=> String, one of "CRITICAL", "OPTIONAL"
2581
+ # resp.recovery_plan_execution_steps[0].configuration.execution_server_step_configuration.servers[0].job_id #=> String
2582
+ # resp.recovery_plan_execution_steps[0].configuration.wait_step_configuration.wait_duration_minutes #=> Integer
2583
+ # resp.recovery_plan_execution_steps[0].error_detail.message #=> String
2584
+ # resp.recovery_plan_execution_steps[0].error_detail.code #=> String
2585
+ # resp.next_token #=> String
2586
+ #
2587
+ # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/ListRecoveryPlanExecutionSteps AWS API Documentation
2588
+ #
2589
+ # @overload list_recovery_plan_execution_steps(params = {})
2590
+ # @param [Hash] params ({})
2591
+ def list_recovery_plan_execution_steps(params = {}, options = {})
2592
+ req = build_request(:list_recovery_plan_execution_steps, params)
2593
+ req.send_request(options)
2594
+ end
2595
+
2596
+ # Lists executions of Recovery Plans, optionally filtered by plan or
2597
+ # status.
2598
+ #
2599
+ # @option params [String] :recovery_plan_arn
2600
+ # Filter executions by Recovery Plan ARN.
2601
+ #
2602
+ # @option params [String] :status
2603
+ # Filter executions by status.
2604
+ #
2605
+ # @option params [Integer] :max_results
2606
+ # Maximum number of results to return.
2607
+ #
2608
+ # @option params [String] :next_token
2609
+ # The token for the next page of results.
2610
+ #
2611
+ # @return [Types::ListRecoveryPlanExecutionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2612
+ #
2613
+ # * {Types::ListRecoveryPlanExecutionsResponse#recovery_plan_executions #recovery_plan_executions} => Array&lt;Types::RecoveryPlanExecutionSummary&gt;
2614
+ # * {Types::ListRecoveryPlanExecutionsResponse#next_token #next_token} => String
2615
+ #
2616
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2617
+ #
2618
+ # @example Request syntax with placeholder values
2619
+ #
2620
+ # resp = client.list_recovery_plan_executions({
2621
+ # recovery_plan_arn: "StrictDRSARN",
2622
+ # status: "CREATED", # accepts CREATED, IN_PROGRESS, COMPLETED, FAILED, CANCELLING, CANCELLED
2623
+ # max_results: 1,
2624
+ # next_token: "PaginationToken",
2625
+ # })
2626
+ #
2627
+ # @example Response structure
2628
+ #
2629
+ # resp.recovery_plan_executions #=> Array
2630
+ # resp.recovery_plan_executions[0].recovery_plan_execution_arn #=> String
2631
+ # resp.recovery_plan_executions[0].recovery_plan_arn #=> String
2632
+ # resp.recovery_plan_executions[0].mode #=> String, one of "DRILL", "RECOVERY"
2633
+ # resp.recovery_plan_executions[0].status #=> String, one of "CREATED", "IN_PROGRESS", "COMPLETED", "FAILED", "CANCELLING", "CANCELLED"
2634
+ # resp.recovery_plan_executions[0].started_at #=> String
2635
+ # resp.recovery_plan_executions[0].error_detail.message #=> String
2636
+ # resp.recovery_plan_executions[0].error_detail.code #=> String
2637
+ # resp.next_token #=> String
2638
+ #
2639
+ # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/ListRecoveryPlanExecutions AWS API Documentation
2640
+ #
2641
+ # @overload list_recovery_plan_executions(params = {})
2642
+ # @param [Hash] params ({})
2643
+ def list_recovery_plan_executions(params = {}, options = {})
2644
+ req = build_request(:list_recovery_plan_executions, params)
2645
+ req.send_request(options)
2646
+ end
2647
+
2648
+ # Lists all steps in a Recovery Plan.
2649
+ #
2650
+ # @option params [required, String] :recovery_plan_arn
2651
+ # The ARN of the Recovery Plan.
2652
+ #
2653
+ # @option params [Integer] :max_results
2654
+ # Maximum number of results to return.
2655
+ #
2656
+ # @option params [String] :next_token
2657
+ # The token for the next page of results.
2658
+ #
2659
+ # @return [Types::ListRecoveryPlanStepsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2660
+ #
2661
+ # * {Types::ListRecoveryPlanStepsResponse#recovery_plan_steps #recovery_plan_steps} => Array&lt;Types::RecoveryPlanStep&gt;
2662
+ # * {Types::ListRecoveryPlanStepsResponse#next_token #next_token} => String
2663
+ #
2664
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2665
+ #
2666
+ # @example Request syntax with placeholder values
2667
+ #
2668
+ # resp = client.list_recovery_plan_steps({
2669
+ # recovery_plan_arn: "StrictDRSARN", # required
2670
+ # max_results: 1,
2671
+ # next_token: "PaginationToken",
2672
+ # })
2673
+ #
2674
+ # @example Response structure
2675
+ #
2676
+ # resp.recovery_plan_steps #=> Array
2677
+ # resp.recovery_plan_steps[0].recovery_plan_step_arn #=> String
2678
+ # resp.recovery_plan_steps[0].step_order #=> Integer
2679
+ # resp.recovery_plan_steps[0].step_name #=> String
2680
+ # resp.recovery_plan_steps[0].configuration.server_step_configuration.servers #=> Array
2681
+ # resp.recovery_plan_steps[0].configuration.server_step_configuration.servers[0].server_arn #=> String
2682
+ # resp.recovery_plan_steps[0].configuration.server_step_configuration.servers[0].impact_level #=> String, one of "CRITICAL", "OPTIONAL"
2683
+ # resp.recovery_plan_steps[0].configuration.wait_step_configuration.wait_duration_minutes #=> Integer
2684
+ # resp.recovery_plan_steps[0].created_at #=> String
2685
+ # resp.recovery_plan_steps[0].updated_at #=> String
2686
+ # resp.next_token #=> String
2687
+ #
2688
+ # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/ListRecoveryPlanSteps AWS API Documentation
2689
+ #
2690
+ # @overload list_recovery_plan_steps(params = {})
2691
+ # @param [Hash] params ({})
2692
+ def list_recovery_plan_steps(params = {}, options = {})
2693
+ req = build_request(:list_recovery_plan_steps, params)
2694
+ req.send_request(options)
2695
+ end
2696
+
2697
+ # Lists all Recovery Plans in the account.
2698
+ #
2699
+ # @option params [Integer] :max_results
2700
+ # Maximum number of results to return.
2701
+ #
2702
+ # @option params [String] :next_token
2703
+ # The token for the next page of results.
2704
+ #
2705
+ # @return [Types::ListRecoveryPlansResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2706
+ #
2707
+ # * {Types::ListRecoveryPlansResponse#recovery_plans #recovery_plans} => Array&lt;Types::RecoveryPlanSummary&gt;
2708
+ # * {Types::ListRecoveryPlansResponse#next_token #next_token} => String
2709
+ #
2710
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2711
+ #
2712
+ # @example Request syntax with placeholder values
2713
+ #
2714
+ # resp = client.list_recovery_plans({
2715
+ # max_results: 1,
2716
+ # next_token: "PaginationToken",
2717
+ # })
2718
+ #
2719
+ # @example Response structure
2720
+ #
2721
+ # resp.recovery_plans #=> Array
2722
+ # resp.recovery_plans[0].recovery_plan_arn #=> String
2723
+ # resp.recovery_plans[0].name #=> String
2724
+ # resp.recovery_plans[0].status #=> String, one of "ACTIVE", "INVALID"
2725
+ # resp.recovery_plans[0].created_at #=> String
2726
+ # resp.recovery_plans[0].updated_at #=> String
2727
+ # resp.next_token #=> String
2728
+ #
2729
+ # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/ListRecoveryPlans AWS API Documentation
2730
+ #
2731
+ # @overload list_recovery_plans(params = {})
2732
+ # @param [Hash] params ({})
2733
+ def list_recovery_plans(params = {}, options = {})
2734
+ req = build_request(:list_recovery_plans, params)
2735
+ req.send_request(options)
2736
+ end
2737
+
2136
2738
  # Returns an array of staging accounts for existing extended source
2137
2739
  # servers.
2138
2740
  #
@@ -2297,6 +2899,48 @@ module Aws::Drs
2297
2899
  req.send_request(options)
2298
2900
  end
2299
2901
 
2902
+ # Reorders steps in a Recovery Plan. Accepts a complete ordered list of
2903
+ # step ARNs.
2904
+ #
2905
+ # @option params [required, String] :recovery_plan_arn
2906
+ # The ARN of the Recovery Plan.
2907
+ #
2908
+ # @option params [required, Array<String>] :ordered_step_arns
2909
+ # Ordered list of all step ARNs representing the desired sequence.
2910
+ #
2911
+ # @return [Types::ReorderRecoveryPlanStepsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2912
+ #
2913
+ # * {Types::ReorderRecoveryPlanStepsResponse#recovery_plan_steps #recovery_plan_steps} => Array&lt;Types::RecoveryPlanStep&gt;
2914
+ #
2915
+ # @example Request syntax with placeholder values
2916
+ #
2917
+ # resp = client.reorder_recovery_plan_steps({
2918
+ # recovery_plan_arn: "StrictDRSARN", # required
2919
+ # ordered_step_arns: ["StrictDRSARN"], # required
2920
+ # })
2921
+ #
2922
+ # @example Response structure
2923
+ #
2924
+ # resp.recovery_plan_steps #=> Array
2925
+ # resp.recovery_plan_steps[0].recovery_plan_step_arn #=> String
2926
+ # resp.recovery_plan_steps[0].step_order #=> Integer
2927
+ # resp.recovery_plan_steps[0].step_name #=> String
2928
+ # resp.recovery_plan_steps[0].configuration.server_step_configuration.servers #=> Array
2929
+ # resp.recovery_plan_steps[0].configuration.server_step_configuration.servers[0].server_arn #=> String
2930
+ # resp.recovery_plan_steps[0].configuration.server_step_configuration.servers[0].impact_level #=> String, one of "CRITICAL", "OPTIONAL"
2931
+ # resp.recovery_plan_steps[0].configuration.wait_step_configuration.wait_duration_minutes #=> Integer
2932
+ # resp.recovery_plan_steps[0].created_at #=> String
2933
+ # resp.recovery_plan_steps[0].updated_at #=> String
2934
+ #
2935
+ # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/ReorderRecoveryPlanSteps AWS API Documentation
2936
+ #
2937
+ # @overload reorder_recovery_plan_steps(params = {})
2938
+ # @param [Hash] params ({})
2939
+ def reorder_recovery_plan_steps(params = {}, options = {})
2940
+ req = build_request(:reorder_recovery_plan_steps, params)
2941
+ req.send_request(options)
2942
+ end
2943
+
2300
2944
  # WARNING: RetryDataReplication is deprecated. Causes the data
2301
2945
  # replication initiation sequence to begin immediately upon next
2302
2946
  # Handshake for the specified Source Server ID, regardless of when the
@@ -2406,6 +3050,47 @@ module Aws::Drs
2406
3050
  req.send_request(options)
2407
3051
  end
2408
3052
 
3053
+ # Retries a failed `SERVER` type execution step.
3054
+ #
3055
+ # @option params [required, String] :recovery_plan_execution_step_arn
3056
+ # The ARN of the execution step to retry.
3057
+ #
3058
+ # @return [Types::RetryRecoveryPlanExecutionStepResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3059
+ #
3060
+ # * {Types::RetryRecoveryPlanExecutionStepResponse#recovery_plan_execution_step #recovery_plan_execution_step} => Types::RecoveryPlanExecutionStep
3061
+ #
3062
+ # @example Request syntax with placeholder values
3063
+ #
3064
+ # resp = client.retry_recovery_plan_execution_step({
3065
+ # recovery_plan_execution_step_arn: "StrictDRSARN", # required
3066
+ # })
3067
+ #
3068
+ # @example Response structure
3069
+ #
3070
+ # resp.recovery_plan_execution_step.recovery_plan_execution_step_arn #=> String
3071
+ # resp.recovery_plan_execution_step.step_index #=> Integer
3072
+ # resp.recovery_plan_execution_step.status #=> String, one of "NOT_STARTED", "EXECUTING", "WAITING", "COMPLETED", "FAILED", "TIMED_OUT", "SKIPPED"
3073
+ # resp.recovery_plan_execution_step.step_name #=> String
3074
+ # resp.recovery_plan_execution_step.configuration.execution_server_step_configuration.servers #=> Array
3075
+ # resp.recovery_plan_execution_step.configuration.execution_server_step_configuration.servers[0].server_arn #=> String
3076
+ # resp.recovery_plan_execution_step.configuration.execution_server_step_configuration.servers[0].impact_level #=> String, one of "CRITICAL", "OPTIONAL"
3077
+ # resp.recovery_plan_execution_step.configuration.execution_server_step_configuration.servers[0].job_id #=> String
3078
+ # resp.recovery_plan_execution_step.configuration.wait_step_configuration.wait_duration_minutes #=> Integer
3079
+ # resp.recovery_plan_execution_step.error_detail.message #=> String
3080
+ # resp.recovery_plan_execution_step.error_detail.code #=> String
3081
+ # resp.recovery_plan_execution_step.attempt #=> Integer
3082
+ # resp.recovery_plan_execution_step.created_at #=> String
3083
+ # resp.recovery_plan_execution_step.updated_at #=> String
3084
+ #
3085
+ # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/RetryRecoveryPlanExecutionStep AWS API Documentation
3086
+ #
3087
+ # @overload retry_recovery_plan_execution_step(params = {})
3088
+ # @param [Hash] params ({})
3089
+ def retry_recovery_plan_execution_step(params = {}, options = {})
3090
+ req = build_request(:retry_recovery_plan_execution_step, params)
3091
+ req.send_request(options)
3092
+ end
3093
+
2409
3094
  # Start replication to origin / target region - applies only to
2410
3095
  # protected instances that originated in EC2. For recovery instances on
2411
3096
  # target region - starts replication back to origin region. For failback
@@ -2588,6 +3273,72 @@ module Aws::Drs
2588
3273
  req.send_request(options)
2589
3274
  end
2590
3275
 
3276
+ # Starts executing a Recovery Plan in `DRILL` or `RECOVERY` mode. A plan
3277
+ # cannot have more than one execution in a non-terminal status at a
3278
+ # time.
3279
+ #
3280
+ # @option params [required, String] :recovery_plan_arn
3281
+ # The ARN of the Recovery Plan to execute.
3282
+ #
3283
+ # @option params [required, String] :mode
3284
+ # The execution mode (`DRILL` or `RECOVERY`).
3285
+ #
3286
+ # @option params [String] :client_token
3287
+ # A unique string provided to ensure request idempotency.
3288
+ #
3289
+ # **A suitable default value is auto-generated.** You should normally
3290
+ # not need to pass this option.**
3291
+ #
3292
+ # @option params [Array<Types::RecoveryPlanExecutionSourceServer>] :source_servers
3293
+ # Optional list of source servers with specific recovery snapshots. If
3294
+ # not provided, the latest snapshot is used for each server.
3295
+ #
3296
+ # @option params [Hash<String,String>] :tags
3297
+ # The tags to apply to the Recovery Plan execution.
3298
+ #
3299
+ # @return [Types::StartRecoveryPlanExecutionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3300
+ #
3301
+ # * {Types::StartRecoveryPlanExecutionResponse#recovery_plan_execution #recovery_plan_execution} => Types::RecoveryPlanExecution
3302
+ #
3303
+ # @example Request syntax with placeholder values
3304
+ #
3305
+ # resp = client.start_recovery_plan_execution({
3306
+ # recovery_plan_arn: "StrictDRSARN", # required
3307
+ # mode: "DRILL", # required, accepts DRILL, RECOVERY
3308
+ # client_token: "ClientIdempotencyToken",
3309
+ # source_servers: [
3310
+ # {
3311
+ # source_server_id: "SourceServerID", # required
3312
+ # recovery_snapshot_id: "RecoverySnapshotID", # required
3313
+ # },
3314
+ # ],
3315
+ # tags: {
3316
+ # "TagKey" => "TagValue",
3317
+ # },
3318
+ # })
3319
+ #
3320
+ # @example Response structure
3321
+ #
3322
+ # resp.recovery_plan_execution.recovery_plan_execution_arn #=> String
3323
+ # resp.recovery_plan_execution.recovery_plan_arn #=> String
3324
+ # resp.recovery_plan_execution.mode #=> String, one of "DRILL", "RECOVERY"
3325
+ # resp.recovery_plan_execution.status #=> String, one of "CREATED", "IN_PROGRESS", "COMPLETED", "FAILED", "CANCELLING", "CANCELLED"
3326
+ # resp.recovery_plan_execution.started_at #=> String
3327
+ # resp.recovery_plan_execution.completed_at #=> String
3328
+ # resp.recovery_plan_execution.error_detail.message #=> String
3329
+ # resp.recovery_plan_execution.error_detail.code #=> String
3330
+ # resp.recovery_plan_execution.tags #=> Hash
3331
+ # resp.recovery_plan_execution.tags["TagKey"] #=> String
3332
+ #
3333
+ # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/StartRecoveryPlanExecution AWS API Documentation
3334
+ #
3335
+ # @overload start_recovery_plan_execution(params = {})
3336
+ # @param [Hash] params ({})
3337
+ def start_recovery_plan_execution(params = {}, options = {})
3338
+ req = build_request(:start_recovery_plan_execution, params)
3339
+ req.send_request(options)
3340
+ end
3341
+
2591
3342
  # Starts replication for a stopped Source Server. This action would make
2592
3343
  # the Source Server protected again and restart billing for it.
2593
3344
  #
@@ -3161,6 +3912,9 @@ module Aws::Drs
3161
3912
  # @option params [Types::LaunchIntoInstanceProperties] :launch_into_instance_properties
3162
3913
  # Launch into existing instance properties.
3163
3914
  #
3915
+ # @option params [String] :recovery_mode
3916
+ # Recovery mode.
3917
+ #
3164
3918
  # @return [Types::LaunchConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3165
3919
  #
3166
3920
  # * {Types::LaunchConfiguration#source_server_id #source_server_id} => String
@@ -3173,6 +3927,7 @@ module Aws::Drs
3173
3927
  # * {Types::LaunchConfiguration#licensing #licensing} => Types::Licensing
3174
3928
  # * {Types::LaunchConfiguration#post_launch_enabled #post_launch_enabled} => Boolean
3175
3929
  # * {Types::LaunchConfiguration#launch_into_instance_properties #launch_into_instance_properties} => Types::LaunchIntoInstanceProperties
3930
+ # * {Types::LaunchConfiguration#recovery_mode #recovery_mode} => String
3176
3931
  #
3177
3932
  # @example Request syntax with placeholder values
3178
3933
  #
@@ -3190,6 +3945,7 @@ module Aws::Drs
3190
3945
  # launch_into_instance_properties: {
3191
3946
  # launch_into_ec2_instance_id: "EC2InstanceID",
3192
3947
  # },
3948
+ # recovery_mode: "FAST", # accepts FAST, OPTIMAL
3193
3949
  # })
3194
3950
  #
3195
3951
  # @example Response structure
@@ -3204,6 +3960,7 @@ module Aws::Drs
3204
3960
  # resp.licensing.os_byol #=> Boolean
3205
3961
  # resp.post_launch_enabled #=> Boolean
3206
3962
  # resp.launch_into_instance_properties.launch_into_ec2_instance_id #=> String
3963
+ # resp.recovery_mode #=> String, one of "FAST", "OPTIMAL"
3207
3964
  #
3208
3965
  # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/UpdateLaunchConfiguration AWS API Documentation
3209
3966
  #
@@ -3245,6 +4002,9 @@ module Aws::Drs
3245
4002
  # performing a drill, recovery or failback to the previous region or
3246
4003
  # availability zone, using the instance ID of the source instance.
3247
4004
  #
4005
+ # @option params [String] :recovery_mode
4006
+ # Recovery mode.
4007
+ #
3248
4008
  # @return [Types::UpdateLaunchConfigurationTemplateResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3249
4009
  #
3250
4010
  # * {Types::UpdateLaunchConfigurationTemplateResponse#launch_configuration_template #launch_configuration_template} => Types::LaunchConfigurationTemplate
@@ -3263,6 +4023,7 @@ module Aws::Drs
3263
4023
  # export_bucket_arn: "ARN",
3264
4024
  # post_launch_enabled: false,
3265
4025
  # launch_into_source_instance: false,
4026
+ # recovery_mode: "FAST", # accepts FAST, OPTIMAL
3266
4027
  # })
3267
4028
  #
3268
4029
  # @example Response structure
@@ -3279,6 +4040,7 @@ module Aws::Drs
3279
4040
  # resp.launch_configuration_template.export_bucket_arn #=> String
3280
4041
  # resp.launch_configuration_template.post_launch_enabled #=> Boolean
3281
4042
  # resp.launch_configuration_template.launch_into_source_instance #=> Boolean
4043
+ # resp.launch_configuration_template.recovery_mode #=> String, one of "FAST", "OPTIMAL"
3282
4044
  #
3283
4045
  # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/UpdateLaunchConfigurationTemplate AWS API Documentation
3284
4046
  #
@@ -3289,6 +4051,170 @@ module Aws::Drs
3289
4051
  req.send_request(options)
3290
4052
  end
3291
4053
 
4054
+ # Updates a Recovery Plan's name or description.
4055
+ #
4056
+ # @option params [required, String] :recovery_plan_arn
4057
+ # The ARN of the Recovery Plan to update.
4058
+ #
4059
+ # @option params [String] :name
4060
+ # The name of a Recovery Plan.
4061
+ #
4062
+ # @option params [String] :description
4063
+ # The description of a Recovery Plan.
4064
+ #
4065
+ # @return [Types::UpdateRecoveryPlanResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4066
+ #
4067
+ # * {Types::UpdateRecoveryPlanResponse#recovery_plan #recovery_plan} => Types::RecoveryPlan
4068
+ #
4069
+ # @example Request syntax with placeholder values
4070
+ #
4071
+ # resp = client.update_recovery_plan({
4072
+ # recovery_plan_arn: "StrictDRSARN", # required
4073
+ # name: "RecoveryPlanName",
4074
+ # description: "RecoveryPlanDescription",
4075
+ # })
4076
+ #
4077
+ # @example Response structure
4078
+ #
4079
+ # resp.recovery_plan.recovery_plan_arn #=> String
4080
+ # resp.recovery_plan.name #=> String
4081
+ # resp.recovery_plan.description #=> String
4082
+ # resp.recovery_plan.status #=> String, one of "ACTIVE", "INVALID"
4083
+ # resp.recovery_plan.created_at #=> String
4084
+ # resp.recovery_plan.updated_at #=> String
4085
+ # resp.recovery_plan.tags #=> Hash
4086
+ # resp.recovery_plan.tags["TagKey"] #=> String
4087
+ #
4088
+ # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/UpdateRecoveryPlan AWS API Documentation
4089
+ #
4090
+ # @overload update_recovery_plan(params = {})
4091
+ # @param [Hash] params ({})
4092
+ def update_recovery_plan(params = {}, options = {})
4093
+ req = build_request(:update_recovery_plan, params)
4094
+ req.send_request(options)
4095
+ end
4096
+
4097
+ # Updates an execution step. Supports two actions: (1) skip a step that
4098
+ # is in `NOT_STARTED` or `FAILED` status; (2) update the wait duration
4099
+ # of a `WAIT` type step that is in `NOT_STARTED` status.
4100
+ #
4101
+ # @option params [required, String] :recovery_plan_execution_step_arn
4102
+ # The ARN of the execution step to update.
4103
+ #
4104
+ # @option params [String] :status
4105
+ # Only SKIPPED is accepted. Step must be in NOT\_STARTED or FAILED
4106
+ # status.
4107
+ #
4108
+ # @option params [Array<Types::RecoveryPlanServer>] :servers
4109
+ # Full replacement of the server list. Only allowed when the step is in
4110
+ # NOT\_STARTED status (Server type steps only).
4111
+ #
4112
+ # @option params [Integer] :wait_duration_minutes
4113
+ # Updated wait duration. Only allowed when the step is in NOT\_STARTED
4114
+ # status (Wait type steps only).
4115
+ #
4116
+ # @return [Types::UpdateRecoveryPlanExecutionStepResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4117
+ #
4118
+ # * {Types::UpdateRecoveryPlanExecutionStepResponse#recovery_plan_execution_step #recovery_plan_execution_step} => Types::RecoveryPlanExecutionStep
4119
+ #
4120
+ # @example Request syntax with placeholder values
4121
+ #
4122
+ # resp = client.update_recovery_plan_execution_step({
4123
+ # recovery_plan_execution_step_arn: "StrictDRSARN", # required
4124
+ # status: "NOT_STARTED", # accepts NOT_STARTED, EXECUTING, WAITING, COMPLETED, FAILED, TIMED_OUT, SKIPPED
4125
+ # servers: [
4126
+ # {
4127
+ # server_arn: "SourceServerARN", # required
4128
+ # impact_level: "CRITICAL", # accepts CRITICAL, OPTIONAL
4129
+ # },
4130
+ # ],
4131
+ # wait_duration_minutes: 1,
4132
+ # })
4133
+ #
4134
+ # @example Response structure
4135
+ #
4136
+ # resp.recovery_plan_execution_step.recovery_plan_execution_step_arn #=> String
4137
+ # resp.recovery_plan_execution_step.step_index #=> Integer
4138
+ # resp.recovery_plan_execution_step.status #=> String, one of "NOT_STARTED", "EXECUTING", "WAITING", "COMPLETED", "FAILED", "TIMED_OUT", "SKIPPED"
4139
+ # resp.recovery_plan_execution_step.step_name #=> String
4140
+ # resp.recovery_plan_execution_step.configuration.execution_server_step_configuration.servers #=> Array
4141
+ # resp.recovery_plan_execution_step.configuration.execution_server_step_configuration.servers[0].server_arn #=> String
4142
+ # resp.recovery_plan_execution_step.configuration.execution_server_step_configuration.servers[0].impact_level #=> String, one of "CRITICAL", "OPTIONAL"
4143
+ # resp.recovery_plan_execution_step.configuration.execution_server_step_configuration.servers[0].job_id #=> String
4144
+ # resp.recovery_plan_execution_step.configuration.wait_step_configuration.wait_duration_minutes #=> Integer
4145
+ # resp.recovery_plan_execution_step.error_detail.message #=> String
4146
+ # resp.recovery_plan_execution_step.error_detail.code #=> String
4147
+ # resp.recovery_plan_execution_step.attempt #=> Integer
4148
+ # resp.recovery_plan_execution_step.created_at #=> String
4149
+ # resp.recovery_plan_execution_step.updated_at #=> String
4150
+ #
4151
+ # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/UpdateRecoveryPlanExecutionStep AWS API Documentation
4152
+ #
4153
+ # @overload update_recovery_plan_execution_step(params = {})
4154
+ # @param [Hash] params ({})
4155
+ def update_recovery_plan_execution_step(params = {}, options = {})
4156
+ req = build_request(:update_recovery_plan_execution_step, params)
4157
+ req.send_request(options)
4158
+ end
4159
+
4160
+ # Updates a Recovery Plan step's name or configuration. Step type is
4161
+ # immutable.
4162
+ #
4163
+ # @option params [required, String] :recovery_plan_step_arn
4164
+ # The ARN of the Recovery Plan step to update.
4165
+ #
4166
+ # @option params [String] :step_name
4167
+ # The name of a Recovery Plan Step.
4168
+ #
4169
+ # @option params [Types::RecoveryPlanStepConfiguration] :configuration
4170
+ # Type-specific configuration for a recovery plan step. Exactly one
4171
+ # member must be set.
4172
+ #
4173
+ # @return [Types::UpdateRecoveryPlanStepResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4174
+ #
4175
+ # * {Types::UpdateRecoveryPlanStepResponse#recovery_plan_step #recovery_plan_step} => Types::RecoveryPlanStep
4176
+ #
4177
+ # @example Request syntax with placeholder values
4178
+ #
4179
+ # resp = client.update_recovery_plan_step({
4180
+ # recovery_plan_step_arn: "StrictDRSARN", # required
4181
+ # step_name: "RecoveryPlanStepName",
4182
+ # configuration: {
4183
+ # server_step_configuration: {
4184
+ # servers: [ # required
4185
+ # {
4186
+ # server_arn: "SourceServerARN", # required
4187
+ # impact_level: "CRITICAL", # accepts CRITICAL, OPTIONAL
4188
+ # },
4189
+ # ],
4190
+ # },
4191
+ # wait_step_configuration: {
4192
+ # wait_duration_minutes: 1, # required
4193
+ # },
4194
+ # },
4195
+ # })
4196
+ #
4197
+ # @example Response structure
4198
+ #
4199
+ # resp.recovery_plan_step.recovery_plan_step_arn #=> String
4200
+ # resp.recovery_plan_step.step_order #=> Integer
4201
+ # resp.recovery_plan_step.step_name #=> String
4202
+ # resp.recovery_plan_step.configuration.server_step_configuration.servers #=> Array
4203
+ # resp.recovery_plan_step.configuration.server_step_configuration.servers[0].server_arn #=> String
4204
+ # resp.recovery_plan_step.configuration.server_step_configuration.servers[0].impact_level #=> String, one of "CRITICAL", "OPTIONAL"
4205
+ # resp.recovery_plan_step.configuration.wait_step_configuration.wait_duration_minutes #=> Integer
4206
+ # resp.recovery_plan_step.created_at #=> String
4207
+ # resp.recovery_plan_step.updated_at #=> String
4208
+ #
4209
+ # @see http://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/UpdateRecoveryPlanStep AWS API Documentation
4210
+ #
4211
+ # @overload update_recovery_plan_step(params = {})
4212
+ # @param [Hash] params ({})
4213
+ def update_recovery_plan_step(params = {}, options = {})
4214
+ req = build_request(:update_recovery_plan_step, params)
4215
+ req.send_request(options)
4216
+ end
4217
+
3292
4218
  # Allows you to update a ReplicationConfiguration by Source Server ID.
3293
4219
  #
3294
4220
  # @option params [required, String] :source_server_id
@@ -3629,7 +4555,7 @@ module Aws::Drs
3629
4555
  tracer: tracer
3630
4556
  )
3631
4557
  context[:gem_name] = 'aws-sdk-drs'
3632
- context[:gem_version] = '1.67.0'
4558
+ context[:gem_version] = '1.69.0'
3633
4559
  Seahorse::Client::Request.new(handlers, context)
3634
4560
  end
3635
4561