SSMClient.create_ops_item
rboto-ssm==0.4.0 · Service index · Types
Model summary (excerpt): 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...
Install and imports
from rboto import SSMClient
from collections.abc import Sequence
from rboto_ssm.types import (
CreateOpsItemOutput,
OpsItemDataValue,
OpsItemNotification,
RelatedOpsItem,
Tag,
)
Signature
async def create_ops_item(
*,
description: str,
source: str,
title: str,
ops_item_type: str | None = None,
operational_data: dict[str, OpsItemDataValue] | None = None,
notifications: Sequence[OpsItemNotification] | None = None,
priority: int | None = None,
related_ops_items: Sequence[RelatedOpsItem] | None = None,
tags: Sequence[Tag] | None = None,
category: str | None = None,
severity: str | None = None,
actual_start_time: str | None = None,
actual_end_time: str | None = None,
planned_start_time: str | None = None,
planned_end_time: str | None = None,
account_id: str | None = None,
) -> CreateOpsItemOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
description |
Yes | 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. |
source |
Yes | The origin of the OpsItem, such as Amazon EC2 or Systems Manager. The source name can't contain the following strings: aws , amazon , and amzn . |
title |
Yes | A short heading that describes the nature of the OpsItem and the impacted resource. |
ops_item_type |
No | The type of OpsItem to create. Systems Manager supports the following types of OpsItems: /aws/issue This type of OpsItem is used for default OpsItems created by OpsCenter. /aws/insight This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate OpsItems. /aws/changerequest This type of OpsItem is used by Change Manager for reviewing and approving or rejecting change... |
operational_data |
No | 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:... |
notifications |
No | The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when this OpsItem is edited or changed. |
priority |
No | The importance of this OpsItem in relation to other OpsItems in the system. |
related_ops_items |
No | 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. |
tags |
No | Optional metadata that you assign to a resource. Tags use a key-value pair. For example: Key=Department,Value=Finance To add tags to a new OpsItem, a user must have IAM permissions for both the ssm:CreateOpsItems operation and the ssm:AddTagsToResource operation. To add tags to an existing OpsItem, use the AddTagsToResource operation. |
category |
No | Specify a category to assign to an OpsItem. |
severity |
No | Specify a severity to assign to an OpsItem. |
actual_start_time |
No | The time a runbook workflow started. Currently reported only for the OpsItem type /aws/changerequest . |
actual_end_time |
No | The time a runbook workflow ended. Currently reported only for the OpsItem type /aws/changerequest . |
planned_start_time |
No | 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 |
No | The time specified in a change request for a runbook workflow to end. Currently supported only for the OpsItem type /aws/changerequest . |
account_id |
No | 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 . |
Output
CreateOpsItemOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
ops_item_id |
str | None |
Always present | — |
ops_item_arn |
str | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
CreateOpsItemOutput, OpsItemDataValue, OpsItemNotification, RelatedOpsItem, Tag
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_ssm.exceptions:
InternalServerError, OpsItemAccessDeniedError, OpsItemAlreadyExistsError, OpsItemInvalidParameterError, OpsItemLimitExceededError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.