update_ops_item
¶
update_ops_item(
ops_item_id: OpsItemId,
*,
config_overrides: Optional[SSMClientConfig] = None,
description: Optional[OpsItemDescription] = None,
operational_data: Optional[OpsItemOperationalData] = None,
operational_data_to_delete: Optional[OpsItemOpsDataKeysList] = None,
notifications: Optional[OpsItemNotifications] = None,
priority: Optional[OpsItemPriority] = None,
related_ops_items: Optional[RelatedOpsItems] = None,
status: Optional[OpsItemStatus] = None,
title: Optional[OpsItemTitle] = 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,
ops_item_arn: Optional[OpsItemArn] = None,
) -> UpdateOpsItemResponse
Edit or change an OpsItem. You must have permission in Identity and Access Management (IAM) to update an 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(Optional[OpsItemDescription], default:None) –User-defined text that contains information about the OpsItem, in Markdown format.
-
operational_data(Optional[OpsItemOperationalData], default:None) –Add new keys or edit existing key-value pairs of the OperationalData map in the OpsItem object.
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 Creating OpsItems manually in the Amazon Web Services Systems Manager User Guide. -
operational_data_to_delete(Optional[OpsItemOpsDataKeysList], default:None) –Keys that you want to remove from the OperationalData map.
-
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.
-
status(Optional[OpsItemStatus], default:None) –The OpsItem status. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.
-
ops_item_id(OpsItemId) –The ID of the OpsItem.
-
title(Optional[OpsItemTitle], default:None) –A short heading that describes the nature of the OpsItem and the impacted resource.
-
category(Optional[OpsItemCategory], default:None) –Specify a new category for an OpsItem.
-
severity(Optional[OpsItemSeverity], default:None) –Specify a new severity for 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. -
ops_item_arn(Optional[OpsItemArn], default:None) –The OpsItem Amazon Resource Name (ARN).
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.
-
OpsItemConflictException–The specified OpsItem is in the process of being deleted.
-
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.
-
OpsItemNotFoundException–The specified OpsItem ID doesn't exist. Verify the ID and try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ssm/_services/ssm.py
11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 | |