:doc:`SSM <../../ssm>` / Client / update_ops_item

***************
update_ops_item
***************



.. py:method:: SSM.Client.update_ops_item(**kwargs)

  

  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 <https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-setup.html>`__ 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 <https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter.html>`__ in the *Amazon Web Services Systems Manager User Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateOpsItem>`_  


  **Request Syntax**
  ::

    response = client.update_ops_item(
        Description='string',
        OperationalData={
            'string': {
                'Value': 'string',
                'Type': 'SearchableString'|'String'
            }
        },
        OperationalDataToDelete=[
            'string',
        ],
        Notifications=[
            {
                'Arn': 'string'
            },
        ],
        Priority=123,
        RelatedOpsItems=[
            {
                'OpsItemId': 'string'
            },
        ],
        Status='Open'|'InProgress'|'Resolved'|'Pending'|'TimedOut'|'Cancelling'|'Cancelled'|'Failed'|'CompletedWithSuccess'|'CompletedWithFailure'|'Scheduled'|'RunbookInProgress'|'PendingChangeCalendarOverride'|'ChangeCalendarOverrideApproved'|'ChangeCalendarOverrideRejected'|'PendingApproval'|'Approved'|'Revoked'|'Rejected'|'Closed',
        OpsItemId='string',
        Title='string',
        Category='string',
        Severity='string',
        ActualStartTime=datetime(2015, 1, 1),
        ActualEndTime=datetime(2015, 1, 1),
        PlannedStartTime=datetime(2015, 1, 1),
        PlannedEndTime=datetime(2015, 1, 1),
        OpsItemArn='string'
    )
    
  :type Description: string
  :param Description: 

    User-defined text that contains information about the OpsItem, in Markdown format.

    

  
  :type OperationalData: dict
  :param OperationalData: 

    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.

     

    .. warning::

       

      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/resources`` key in OperationalData to specify a related resource in the request. Use the ``/aws/automations`` key 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 <https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-manually-create-OpsItems.html>`__ in the *Amazon Web Services Systems Manager User Guide*.

    

  
    - *(string) --* 

    
      - *(dict) --* 

        An object that defines the value of the key and its type in the OperationalData map.

        

      
        - **Value** *(string) --* 

          The value of the OperationalData key.

          

        
        - **Type** *(string) --* 

          The type of key-value pair. Valid types include ``SearchableString`` and ``String``.

          

        
      


  :type OperationalDataToDelete: list
  :param OperationalDataToDelete: 

    Keys that you want to remove from the OperationalData map.

    

  
    - *(string) --* 

    

  :type Notifications: list
  :param Notifications: 

    The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when this OpsItem is edited or changed.

    

  
    - *(dict) --* 

      A notification about the OpsItem.

      

    
      - **Arn** *(string) --* 

        The Amazon Resource Name (ARN) of an Amazon Simple Notification Service (Amazon SNS) topic where notifications are sent when this OpsItem is edited or changed.

        

      
    

  :type Priority: integer
  :param Priority: 

    The importance of this OpsItem in relation to other OpsItems in the system.

    

  
  :type RelatedOpsItems: list
  :param RelatedOpsItems: 

    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.

    

  
    - *(dict) --* 

      An OpsItems that shares something in common with the current OpsItem. For example, related OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for the impacted resource.

      

    
      - **OpsItemId** *(string) --* **[REQUIRED]** 

        The ID of an OpsItem related to the current OpsItem.

        

      
    

  :type Status: string
  :param Status: 

    The OpsItem status. For more information, see `Editing OpsItem details <https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-working-with-OpsItems-editing-details.html>`__ in the *Amazon Web Services Systems Manager User Guide*.

    

  
  :type OpsItemId: string
  :param OpsItemId: **[REQUIRED]** 

    The ID of the OpsItem.

    

  
  :type Title: string
  :param Title: 

    A short heading that describes the nature of the OpsItem and the impacted resource.

    

  
  :type Category: string
  :param Category: 

    Specify a new category for an OpsItem.

    

  
  :type Severity: string
  :param Severity: 

    Specify a new severity for an OpsItem.

    

  
  :type ActualStartTime: datetime
  :param ActualStartTime: 

    The time a runbook workflow started. Currently reported only for the OpsItem type ``/aws/changerequest``.

    

  
  :type ActualEndTime: datetime
  :param ActualEndTime: 

    The time a runbook workflow ended. Currently reported only for the OpsItem type ``/aws/changerequest``.

    

  
  :type PlannedStartTime: datetime
  :param PlannedStartTime: 

    The time specified in a change request for a runbook workflow to start. Currently supported only for the OpsItem type ``/aws/changerequest``.

    

  
  :type PlannedEndTime: datetime
  :param PlannedEndTime: 

    The time specified in a change request for a runbook workflow to end. Currently supported only for the OpsItem type ``/aws/changerequest``.

    

  
  :type OpsItemArn: string
  :param OpsItemArn: 

    The OpsItem Amazon Resource Name (ARN).

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`SSM.Client.exceptions.InternalServerError`

  
  *   :py:class:`SSM.Client.exceptions.OpsItemNotFoundException`

  
  *   :py:class:`SSM.Client.exceptions.OpsItemAlreadyExistsException`

  
  *   :py:class:`SSM.Client.exceptions.OpsItemLimitExceededException`

  
  *   :py:class:`SSM.Client.exceptions.OpsItemInvalidParameterException`

  
  *   :py:class:`SSM.Client.exceptions.OpsItemAccessDeniedException`

  
  *   :py:class:`SSM.Client.exceptions.OpsItemConflictException`

  