amazonka-lex-models-2.0: Amazon Lex Model Building Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

  • maxResults :: Maybe Natural

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

  • 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.

  • name :: Text

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

Instances

Instances details
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

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 #

Generic GetIntentVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

Associated Types

type Rep GetIntentVersions :: Type -> Type #

Read GetIntentVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

Show GetIntentVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

NFData GetIntentVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

Methods

rnf :: GetIntentVersions -> () #

Eq GetIntentVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

Hashable GetIntentVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

type AWSResponse 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" "amazonka-lex-models-2.0-8Q1WIjnrCCIAMPuyNOCiG7" 'False) (C1 ('MetaCons "GetIntentVersions'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

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:maxResults:GetIntentVersions', getIntentVersions_maxResults - The maximum number of intent versions to return in the response. The default is 10.

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.

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

Request Lenses

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

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

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_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
Generic GetIntentVersionsResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

Associated Types

type Rep GetIntentVersionsResponse :: Type -> Type #

Read GetIntentVersionsResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

Show GetIntentVersionsResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

NFData GetIntentVersionsResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetIntentVersions

Eq 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" "amazonka-lex-models-2.0-8Q1WIjnrCCIAMPuyNOCiG7" '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.

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.