update_ops_item
async
¶
update_ops_item(
ops_item_id: OpsItemId,
*,
config_overrides: Optional[AsyncSSMClientConfig] = 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/async_ssm.py
12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 | |