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
12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 | |