aws ssm associate-ops-item-related-item
Associates a related item to a Systems Manager OpsCenter OpsItem. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To associate a related item
The following associate-ops-item-related-item example associates a related item to the OpsItem.
aws ssm associate-ops-item-related-item --ops-item-id "oi-649fExample" --association-type "RelatesTo" --resource-type "AWS::SSMIncidents::IncidentRecord" --resource-uri "arn:aws:ssm-incidents::123456789012:incident-record/Example-Response-Plan/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"Identify--ops-item-idThe ID of the OpsItem to which you want to associate a resource as a related item.--association-typeThe type of association that you want to create between an OpsItem and a resource.--resource-typeThe type of resource that you want to associate with an OpsItem.--resource-uriThe Amazon Resource Name (ARN) of the Amazon Web Services resource that you want to associate with the OpsItem.Its output
{
"AssociationId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222"
}For more information, see Creating an incident for an OpsItem in the AWS Systems Manager User Guide.
Options
--association-typeThe type of association that you want to create between an OpsItem and a resource.--ops-item-idThe ID of the OpsItem to which you want to associate a resource as a related item.--resource-typeThe type of resource that you want to associate with an OpsItem.--resource-uriThe Amazon Resource Name (ARN) of the Amazon Web Services resource that you want to associate with the OpsItem.