ssm_describe_sessions: Retrieves a list of all active sessions (both connected and...

Description Usage Arguments Value Request syntax

View source: R/ssm_operations.R

Description

Retrieves a list of all active sessions (both connected and disconnected) or terminated sessions from the past 30 days.

Usage

1
ssm_describe_sessions(State, MaxResults, NextToken, Filters)

Arguments

State

[required] The session status to retrieve a list of sessions for. For example, "Active".

MaxResults

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

NextToken

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

Filters

One or more filters to limit the type of sessions returned by the request.

Value

A list with the following syntax:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
list(
  Sessions = list(
    list(
      SessionId = "string",
      Target = "string",
      Status = "Connected"|"Connecting"|"Disconnected"|"Terminated"|"Terminating"|"Failed",
      StartDate = as.POSIXct(
        "2015-01-01"
      ),
      EndDate = as.POSIXct(
        "2015-01-01"
      ),
      DocumentName = "string",
      Owner = "string",
      Details = "string",
      OutputUrl = list(
        S3OutputUrl = "string",
        CloudWatchOutputUrl = "string"
      )
    )
  ),
  NextToken = "string"
)

Request syntax

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
svc$describe_sessions(
  State = "Active"|"History",
  MaxResults = 123,
  NextToken = "string",
  Filters = list(
    list(
      key = "InvokedAfter"|"InvokedBefore"|"Target"|"Owner"|"Status"|"SessionId",
      value = "string"
    )
  )
)

paws.management documentation built on Aug. 23, 2021, 9:11 a.m.