create_ops_item
¶
create_ops_item(
description: OpsItemDescription,
source: OpsItemSource,
title: OpsItemTitle,
*,
config_overrides: Optional[SSMClientConfig] = None,
ops_item_type: Optional[OpsItemType] = None,
operational_data: Optional[OpsItemOperationalData] = None,
notifications: Optional[OpsItemNotifications] = None,
priority: Optional[OpsItemPriority] = None,
related_ops_items: Optional[RelatedOpsItems] = None,
tags: Optional[TagList] = None,
category: Optional[OpsItemCategory] = None,
severity: Optional[OpsItemSeverity] = None,
actual_start_time: Optional[DateTime] = None,
actual_end_time: Optional[DateTime] = None,
planned_start_time: Optional[DateTime] = None,
planned_end_time: Optional[DateTime] = None,
account_id: Optional[OpsItemAccountId] = None,
) -> CreateOpsItemResponse
Creates a new OpsItem. You must have permission in Identity and Access Management (IAM) to create a new OpsItem. For more information, see Set up OpsCenter in the Amazon Web Services Systems Manager User Guide.
Operations engineers and IT professionals use Amazon Web Services Systems Manager OpsCenter to view, investigate, and remediate operational issues impacting the performance and health of their Amazon Web Services resources. For more information, see Amazon Web Services Systems Manager OpsCenter in the Amazon Web Services Systems Manager User Guide.
Parameters:
-
description(OpsItemDescription) –User-defined text that contains information about the OpsItem, in Markdown format.
Provide enough information so that users viewing this OpsItem for the first time understand the issue.
-
ops_item_type(Optional[OpsItemType], default:None) –The type of OpsItem to create. Systems Manager supports the following types of OpsItems:
-
/aws/issueThis type of OpsItem is used for default OpsItems created by OpsCenter.
-
/aws/insightThis type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate OpsItems.
-
/aws/changerequestThis type of OpsItem is used by Change Manager for reviewing and approving or rejecting change requests.
Amazon Web Services Systems Manager Change Manager is no longer open to new customers. Existing customers can continue to use the service as normal. For more information, see Amazon Web Services Systems Manager Change Manager availability change.
-
-
operational_data(Optional[OpsItemOperationalData], default:None) –Operational data is custom data that provides useful reference details about the OpsItem. For example, you can specify log files, error strings, license keys, troubleshooting tips, or other relevant data. You enter operational data as key-value pairs. The key has a maximum length of 128 characters. The value has a maximum size of 20 KB.
Operational data keys can't begin with the following:
amazon,aws,amzn,ssm,/amazon,/aws,/amzn,/ssm.You can choose to make the data searchable by other users in the account or you can restrict search access. Searchable data means that all users with access to the OpsItem Overview page (as provided by the DescribeOpsItems API operation) can view and search on the specified data. Operational data that isn't searchable is only viewable by users who have access to the OpsItem (as provided by the GetOpsItem API operation).
Use the
/aws/resourceskey in OperationalData to specify a related resource in the request. Use the/aws/automationskey in OperationalData to associate an Automation runbook with the OpsItem. To view Amazon Web Services CLI example commands that use these keys, see Create OpsItems manually in the Amazon Web Services Systems Manager User Guide. -
notifications(Optional[OpsItemNotifications], default:None) –The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when this OpsItem is edited or changed.
-
priority(Optional[OpsItemPriority], default:None) –The importance of this OpsItem in relation to other OpsItems in the system.
-
related_ops_items(Optional[RelatedOpsItems], default:None) –One or more OpsItems that share something in common with the current OpsItems. For example, related OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for the impacted resource.
-
source(OpsItemSource) –The origin of the OpsItem, such as Amazon EC2 or Systems Manager.
The source name can't contain the following strings:
aws,amazon, andamzn. -
title(OpsItemTitle) –A short heading that describes the nature of the OpsItem and the impacted resource.
-
tags(Optional[TagList], default:None) –Optional metadata that you assign to a resource.
Tags use a key-value pair. For example:
Key=Department,Value=FinanceTo add tags to a new OpsItem, a user must have IAM permissions for both the
ssm:CreateOpsItemsoperation and thessm:AddTagsToResourceoperation. To add tags to an existing OpsItem, use the AddTagsToResource operation. -
category(Optional[OpsItemCategory], default:None) –Specify a category to assign to an OpsItem.
-
severity(Optional[OpsItemSeverity], default:None) –Specify a severity to assign to an OpsItem.
-
actual_start_time(Optional[DateTime], default:None) –The time a runbook workflow started. Currently reported only for the OpsItem type
/aws/changerequest. -
actual_end_time(Optional[DateTime], default:None) –The time a runbook workflow ended. Currently reported only for the OpsItem type
/aws/changerequest. -
planned_start_time(Optional[DateTime], default:None) –The time specified in a change request for a runbook workflow to start. Currently supported only for the OpsItem type
/aws/changerequest. -
planned_end_time(Optional[DateTime], default:None) –The time specified in a change request for a runbook workflow to end. Currently supported only for the OpsItem type
/aws/changerequest. -
account_id(Optional[OpsItemAccountId], default:None) –The target Amazon Web Services account where you want to create an OpsItem. To make this call, your account must be configured to work with OpsItems across accounts. For more information, see Set up OpsCenter in the Amazon Web Services Systems Manager User Guide.
Raises:
-
InternalServerError–An error occurred on the server side.
-
OpsItemAccessDeniedException–You don't have permission to view OpsItems in the specified account. Verify that your account is configured either as a Systems Manager delegated administrator or that you are logged into the Organizations management account.
-
OpsItemAlreadyExistsException–The OpsItem already exists.
-
OpsItemInvalidParameterException–A specified parameter argument isn't valid. Verify the available arguments and try again.
-
OpsItemLimitExceededException–The request caused OpsItems to exceed one or more quotas.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ssm/_services/ssm.py
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 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 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 | |