Skip to content

Update Related Items

ssmincidents_update_related_items R Documentation

Description

Add or remove related items from the related items tab of an incident record.

Usage

ssmincidents_update_related_items(clientToken, incidentRecordArn,
  relatedItemsUpdate)

Arguments

clientToken

A token that ensures that a client calls the operation only once with the specified details.

incidentRecordArn

[required] The Amazon Resource Name (ARN) of the incident record that contains the related items that you update.

relatedItemsUpdate

[required] Details about the item that you are add to, or delete from, an incident.

Value

An empty list.

Request syntax

svc$update_related_items(
  clientToken = "string",
  incidentRecordArn = "string",
  relatedItemsUpdate = list(
    itemToAdd = list(
      generatedId = "string",
      identifier = list(
        type = "ANALYSIS"|"INCIDENT"|"METRIC"|"PARENT"|"ATTACHMENT"|"OTHER"|"AUTOMATION"|"INVOLVED_RESOURCE"|"TASK",
        value = list(
          arn = "string",
          metricDefinition = "string",
          pagerDutyIncidentDetail = list(
            autoResolve = TRUE|FALSE,
            id = "string",
            secretId = "string"
          ),
          url = "string"
        )
      ),
      title = "string"
    ),
    itemToRemove = list(
      type = "ANALYSIS"|"INCIDENT"|"METRIC"|"PARENT"|"ATTACHMENT"|"OTHER"|"AUTOMATION"|"INVOLVED_RESOURCE"|"TASK",
      value = list(
        arn = "string",
        metricDefinition = "string",
        pagerDutyIncidentDetail = list(
          autoResolve = TRUE|FALSE,
          id = "string",
          secretId = "string"
        ),
        url = "string"
      )
    )
  )
)