libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.LexModels.GetIntentVersions

Description

Gets information about all of the versions of an intent.

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

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

This operation requires permissions for the lex:GetIntentVersions action.

This operation returns paginated results.

Synopsis

Creating a Request

data GetIntentVersions Source #

See: newGetIntentVersions smart constructor.

Constructors

GetIntentVersions' 

Fields

  • nextToken :: Maybe Text

    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 :: Maybe Natural

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

  • name :: Text

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

Instances

Instances details
Eq GetIntentVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

Read GetIntentVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

Show GetIntentVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

Generic GetIntentVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

Associated Types

type Rep GetIntentVersions :: Type -> Type #

NFData GetIntentVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

Methods

rnf :: GetIntentVersions -> () #

Hashable GetIntentVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

AWSPager GetIntentVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

AWSRequest GetIntentVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

Associated Types

type AWSResponse GetIntentVersions #

ToHeaders GetIntentVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

ToPath GetIntentVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

ToQuery GetIntentVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

type Rep GetIntentVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

type Rep GetIntentVersions = D1 ('MetaData "GetIntentVersions" "Amazonka.LexModels.GetIntentVersions" "libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models" 'False) (C1 ('MetaCons "GetIntentVersions'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse GetIntentVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

newGetIntentVersions Source #

Create a value of GetIntentVersions with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:nextToken:GetIntentVersions', getIntentVersions_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.

$sel:maxResults:GetIntentVersions', getIntentVersions_maxResults - The maximum number of intent versions to return in the response. The default is 10.

$sel:name:GetIntentVersions', getIntentVersions_name - The name of the intent for which versions should be returned.

Request Lenses

getIntentVersions_nextToken :: Lens' GetIntentVersions (Maybe Text) Source #

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.

getIntentVersions_maxResults :: Lens' GetIntentVersions (Maybe Natural) Source #

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

getIntentVersions_name :: Lens' GetIntentVersions Text Source #

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

Destructuring the Response

data GetIntentVersionsResponse Source #

See: newGetIntentVersionsResponse smart constructor.

Constructors

GetIntentVersionsResponse' 

Fields

  • intents :: Maybe [IntentMetadata]

    An array of IntentMetadata objects, one for each numbered version of the intent plus one for the $LATEST version.

  • nextToken :: Maybe Text

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq GetIntentVersionsResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

Read GetIntentVersionsResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

Show GetIntentVersionsResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

Generic GetIntentVersionsResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

Associated Types

type Rep GetIntentVersionsResponse :: Type -> Type #

NFData GetIntentVersionsResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

type Rep GetIntentVersionsResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

type Rep GetIntentVersionsResponse = D1 ('MetaData "GetIntentVersionsResponse" "Amazonka.LexModels.GetIntentVersions" "libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models" 'False) (C1 ('MetaCons "GetIntentVersionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "intents") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [IntentMetadata])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetIntentVersionsResponse Source #

Create a value of GetIntentVersionsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:intents:GetIntentVersionsResponse', getIntentVersionsResponse_intents - An array of IntentMetadata objects, one for each numbered version of the intent plus one for the $LATEST version.

$sel:nextToken:GetIntentVersions', getIntentVersionsResponse_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.

$sel:httpStatus:GetIntentVersionsResponse', getIntentVersionsResponse_httpStatus - The response's http status code.

Response Lenses

getIntentVersionsResponse_intents :: Lens' GetIntentVersionsResponse (Maybe [IntentMetadata]) Source #

An array of IntentMetadata objects, one for each numbered version of the intent plus one for the $LATEST version.

getIntentVersionsResponse_nextToken :: Lens' GetIntentVersionsResponse (Maybe Text) Source #

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.