create_plan
async
¶
create_plan(
workflows: WorkflowList,
execution_role: IamRoleArn,
name: PlanName,
regions: RegionList,
recovery_approach: RecoveryApproach,
*,
config_overrides: Optional[AsyncARCRegionswitchClientConfig] = None,
description: Optional[str] = None,
recovery_time_objective_minutes: Optional[int] = None,
associated_alarms: Optional[AssociatedAlarmMap] = None,
triggers: Optional[TriggerList] = None,
report_configuration: Optional[ReportConfiguration] = None,
service_quota_checks_enabled: Optional[bool] = None,
primary_region: Optional[Region] = None,
tags: Optional[Tags] = None,
) -> CreatePlanResponse
Creates a new Region switch plan. A plan defines the steps required to shift traffic from one Amazon Web Services Region to another.
You must specify a name for the plan, the primary Region, and at least one additional Region. You can also provide a description, execution role, recovery time objective, associated alarms, triggers, and workflows that define the steps to execute during a Region switch.
Parameters:
-
description(Optional[str], default:None) –The description of a Region switch plan.
-
workflows(WorkflowList) –An array of workflows included in a Region switch plan.
-
execution_role(IamRoleArn) –An execution role is a way to categorize a Region switch plan.
-
recovery_time_objective_minutes(Optional[int], default:None) –Optionally, you can specify an recovery time objective for a Region switch plan, in minutes.
-
associated_alarms(Optional[AssociatedAlarmMap], default:None) –The alarms associated with a Region switch plan.
-
triggers(Optional[TriggerList], default:None) –The triggers associated with a Region switch plan.
-
service_quota_checks_enabled(Optional[bool], default:None) –Specifies whether to enable service quota checks for the Region switch plan.
-
name(PlanName) –The name of a Region switch plan.
-
regions(RegionList) –An array that specifies the Amazon Web Services Regions for a Region switch plan. Specify two Regions.
-
recovery_approach(RecoveryApproach) –The recovery approach for a Region switch plan, which can be active/active (activeActive) or active/passive (activePassive).
-
primary_region(Optional[Region], default:None) –The primary Amazon Web Services Region for the application. This is the Region where the application normally runs before any Region switch occurs.
-
tags(Optional[Tags], default:None) –The tags to apply to the Region switch plan.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_arc_region_switch/_services/async_arc_regionswitch.py
1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 | |