start_incident
¶
start_incident(
response_plan_arn: Arn,
*,
config_overrides: Optional[SSMIncidentsClientConfig] = None,
client_token: Optional[ClientToken] = None,
title: Optional[IncidentTitle] = None,
impact: Optional[Impact] = None,
trigger_details: Optional[TriggerDetails] = None,
related_items: Optional[RelatedItemList] = None,
) -> StartIncidentOutput
Used to start an incident from CloudWatch alarms, EventBridge events, or manually.
Parameters:
-
client_token(Optional[ClientToken], default:None) –A token ensuring that the operation is called only once with the specified details.
-
response_plan_arn(Arn) –The Amazon Resource Name (ARN) of the response plan that pre-defines summary, chat channels, Amazon SNS topics, runbooks, title, and impact of the incident.
-
title(Optional[IncidentTitle], default:None) –Provide a title for the incident. Providing a title overwrites the title provided by the response plan.
-
impact(Optional[Impact], default:None) –Defines the impact to the customers. Providing an impact overwrites the impact provided by a response plan.
Supported impact codes
-
1- Critical -
2- High -
3- Medium -
4- Low -
5- No Impact
-
-
trigger_details(Optional[TriggerDetails], default:None) –Details of what created the incident record in Incident Manager.
-
related_items(Optional[RelatedItemList], default:None) –Add related items to the incident for other responders to use. Related items are Amazon Web Services resources, external links, or files uploaded to an Amazon S3 bucket.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this operation.
-
ConflictException–Updating or deleting a resource causes an inconsistent state.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–Request references a resource which doesn't exist.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ssm_incidents/_services/ssm_incidents.py
1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 | |