Skip to content

List Contexts

sagemaker_list_contexts R Documentation

Lists the contexts in your account and their properties

Description

Lists the contexts in your account and their properties.

Usage

sagemaker_list_contexts(SourceUri, ContextType, CreatedAfter,
  CreatedBefore, SortBy, SortOrder, NextToken, MaxResults)

Arguments

SourceUri

A filter that returns only contexts with the specified source URI.

ContextType

A filter that returns only contexts of the specified type.

CreatedAfter

A filter that returns only contexts created on or after the specified time.

CreatedBefore

A filter that returns only contexts created on or before the specified time.

SortBy

The property used to sort results. The default value is CreationTime.

SortOrder

The sort order. The default value is Descending.

NextToken

If the previous call to list_contexts didn't return the full set of contexts, the call returns a token for getting the next set of contexts.

MaxResults

The maximum number of contexts to return in the response. The default value is 10.

Value

A list with the following syntax:

list(
  ContextSummaries = list(
    list(
      ContextArn = "string",
      ContextName = "string",
      Source = list(
        SourceUri = "string",
        SourceType = "string",
        SourceId = "string"
      ),
      ContextType = "string",
      CreationTime = as.POSIXct(
        "2015-01-01"
      ),
      LastModifiedTime = as.POSIXct(
        "2015-01-01"
      )
    )
  ),
  NextToken = "string"
)

Request syntax

svc$list_contexts(
  SourceUri = "string",
  ContextType = "string",
  CreatedAfter = as.POSIXct(
    "2015-01-01"
  ),
  CreatedBefore = as.POSIXct(
    "2015-01-01"
  ),
  SortBy = "Name"|"CreationTime",
  SortOrder = "Ascending"|"Descending",
  NextToken = "string",
  MaxResults = 123
)