Skip to content

Get Intent Versions

lexmodelbuildingservice_get_intent_versions R Documentation

Gets information about all of the versions of an intent

Description

Gets information about all of the versions of an intent.

The get_intent_versions operation returns an IntentMetadata object for each version of an intent. For example, if an intent has three numbered versions, the get_intent_versions operation returns four IntentMetadata objects in the response, one for each numbered version and one for the ⁠$LATEST⁠ version.

The get_intent_versions operation always returns at least one version, the ⁠$LATEST⁠ version.

This operation requires permissions for the lex:GetIntentVersions action.

Usage

lexmodelbuildingservice_get_intent_versions(name, nextToken, maxResults)

Arguments

name

[required] The name of the intent for which versions should be returned.

nextToken

A pagination token for fetching the next page of intent versions. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request.

maxResults

The maximum number of intent versions to return in the response. The default is 10.

Value

A list with the following syntax:

list(
  intents = list(
    list(
      name = "string",
      description = "string",
      lastUpdatedDate = as.POSIXct(
        "2015-01-01"
      ),
      createdDate = as.POSIXct(
        "2015-01-01"
      ),
      version = "string"
    )
  ),
  nextToken = "string"
)

Request syntax

svc$get_intent_versions(
  name = "string",
  nextToken = "string",
  maxResults = 123
)