Skip to main content

ops_item_related_items

Creates, updates, deletes, gets or lists an ops_item_related_items resource.

Overview

Nameops_item_related_items
TypeResource
Idaws.ssm.ops_item_related_items

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
association_idstringThe association ID.
association_typestringThe association type.
created_byobjectInformation about the user or resource that created an OpsItem event.
created_timestring (date-time)The time the related-item association was created.
last_modified_byobjectInformation about the user or resource that created an OpsItem event.
last_modified_timestring (date-time)The time the related-item association was last updated.
ops_item_idstringThe OpsItem ID. (pattern: <code>^(oi)-[0-9a-f]{12}$</code>)
resource_typestringThe resource type.
resource_uristringThe Amazon Resource Name (ARN) of the related-item resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_ops_item_related_itemsselectregionLists all related-item resources associated with a Systems Manager OpsCenter OpsItem. OpsCenter is a tool in Amazon Web Services Systems Manager.
associate_ops_item_related_itemupdateregion, OpsItemId, AssociationType, ResourceType, ResourceUriAssociates a related item to a Systems Manager OpsCenter OpsItem. For example, you can associate an Incident Manager incident or analysis with an OpsItem. Incident Manager and OpsCenter are tools in Amazon Web Services Systems Manager.
disassociate_ops_item_related_itemupdateregion, OpsItemId, AssociationIdDeletes the association between an OpsItem and a related item. For example, this API operation can delete an Incident Manager incident from an OpsItem. Incident Manager is a tool in Amazon Web Services Systems Manager.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Lists all related-item resources associated with a Systems Manager OpsCenter OpsItem. OpsCenter is a tool in Amazon Web Services Systems Manager.

SELECT
association_id,
association_type,
created_by,
created_time,
last_modified_by,
last_modified_time,
ops_item_id,
resource_type,
resource_uri
FROM aws.ssm.ops_item_related_items
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Associates a related item to a Systems Manager OpsCenter OpsItem. For example, you can associate an Incident Manager incident or analysis with an OpsItem. Incident Manager and OpsCenter are tools in Amazon Web Services Systems Manager.

UPDATE aws.ssm.ops_item_related_items
SET
OpsItemId = '{{ OpsItemId }}',
AssociationType = '{{ AssociationType }}',
ResourceType = '{{ ResourceType }}',
ResourceUri = '{{ ResourceUri }}'
WHERE
region = '{{ region }}' --required
AND OpsItemId = '{{ OpsItemId }}' --required
AND AssociationType = '{{ AssociationType }}' --required
AND ResourceType = '{{ ResourceType }}' --required
AND ResourceUri = '{{ ResourceUri }}' --required
RETURNING
association_id;