Skip to content

List Incident Records

ssmincidents_list_incident_records R Documentation

Lists all incident records in your account

Description

Lists all incident records in your account. Use this command to retrieve the Amazon Resource Name (ARN) of the incident record you want to update.

Usage

ssmincidents_list_incident_records(filters, maxResults, nextToken)

Arguments

filters

Filters the list of incident records you want to search through. You can filter on the following keys:

  • creationTime

  • impact

  • status

  • createdBy

Note the following when when you use Filters:

  • If you don't specify a Filter, the response includes all incident records.

  • If you specify more than one filter in a single request, the response returns incident records that match all filters.

  • If you specify a filter with more than one value, the response returns incident records that match any of the values provided.

maxResults

The maximum number of results per page.

nextToken

The pagination token for the next set of items to return. (You received this token from a previous call.)

Value

A list with the following syntax:

list(
  incidentRecordSummaries = list(
    list(
      arn = "string",
      creationTime = as.POSIXct(
        "2015-01-01"
      ),
      impact = 123,
      incidentRecordSource = list(
        createdBy = "string",
        invokedBy = "string",
        resourceArn = "string",
        source = "string"
      ),
      resolvedTime = as.POSIXct(
        "2015-01-01"
      ),
      status = "OPEN"|"RESOLVED",
      title = "string"
    )
  ),
  nextToken = "string"
)

Request syntax

svc$list_incident_records(
  filters = list(
    list(
      condition = list(
        after = as.POSIXct(
          "2015-01-01"
        ),
        before = as.POSIXct(
          "2015-01-01"
        ),
        equals = list(
          integerValues = list(
            123
          ),
          stringValues = list(
            "string"
          )
        )
      ),
      key = "string"
    )
  ),
  maxResults = 123,
  nextToken = "string"
)