update_plan
async
¶
update_plan(
arn: PlanArn,
workflows: WorkflowList,
execution_role: IamRoleArn,
*,
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,
) -> UpdatePlanResponse
Updates an existing Region switch plan. You can modify the plan's description, workflows, execution role, recovery time objective, associated alarms, and triggers.
Parameters:
-
arn(PlanArn) –The Amazon Resource Name (ARN) of the plan.
-
description(Optional[str], default:None) –The updated description for the Region switch plan.
-
workflows(WorkflowList) –The updated workflows for the Region switch plan.
-
execution_role(IamRoleArn) –The updated IAM role ARN that grants Region switch the permissions needed to execute the plan steps.
-
recovery_time_objective_minutes(Optional[int], default:None) –The updated target recovery time objective (RTO) in minutes for the plan.
-
associated_alarms(Optional[AssociatedAlarmMap], default:None) –The updated CloudWatch alarms associated with the plan.
-
triggers(Optional[TriggerList], default:None) –The updated conditions that can automatically trigger the execution of the plan.
-
report_configuration(Optional[ReportConfiguration], default:None) –The updated report configuration for the plan.
-
service_quota_checks_enabled(Optional[bool], default:None) –Specifies whether service quota checks are enabled for the Region switch plan.
Raises:
-
ResourceNotFoundException–The specified resource was not found.
HTTP Status Code: 404
-
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
1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 | |