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

Description

Returns information about an intent. In addition to the intent name, you must specify the intent version.

This operation requires permissions to perform the lex:GetIntent action.

Synopsis

Creating a Request

data GetIntent Source #

See: newGetIntent smart constructor.

Constructors

GetIntent' 

Fields

  • name :: Text

    The name of the intent. The name is case sensitive.

  • version :: Text

    The version of the intent.

Instances

Instances details
Eq GetIntent Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

Read GetIntent Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

Show GetIntent Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

Generic GetIntent Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

Associated Types

type Rep GetIntent :: Type -> Type #

NFData GetIntent Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

Methods

rnf :: GetIntent -> () #

Hashable GetIntent Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

AWSRequest GetIntent Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

Associated Types

type AWSResponse GetIntent #

ToHeaders GetIntent Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

Methods

toHeaders :: GetIntent -> [Header] #

ToPath GetIntent Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

ToQuery GetIntent Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

type Rep GetIntent Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

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

Defined in Amazonka.LexModels.GetIntent

newGetIntent Source #

Create a value of GetIntent 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:name:GetIntent', getIntent_name - The name of the intent. The name is case sensitive.

$sel:version:GetIntent', getIntent_version - The version of the intent.

Request Lenses

getIntent_name :: Lens' GetIntent Text Source #

The name of the intent. The name is case sensitive.

getIntent_version :: Lens' GetIntent Text Source #

The version of the intent.

Destructuring the Response

data GetIntentResponse Source #

See: newGetIntentResponse smart constructor.

Constructors

GetIntentResponse' 

Fields

Instances

Instances details
Eq GetIntentResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

Read GetIntentResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

Show GetIntentResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

Generic GetIntentResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

Associated Types

type Rep GetIntentResponse :: Type -> Type #

NFData GetIntentResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

Methods

rnf :: GetIntentResponse -> () #

type Rep GetIntentResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

type Rep GetIntentResponse = D1 ('MetaData "GetIntentResponse" "Amazonka.LexModels.GetIntent" "libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models" 'False) (C1 ('MetaCons "GetIntentResponse'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "fulfillmentActivity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FulfillmentActivity)) :*: S1 ('MetaSel ('Just "slots") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Slot]))) :*: (S1 ('MetaSel ('Just "rejectionStatement") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Statement)) :*: S1 ('MetaSel ('Just "checksum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "conclusionStatement") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Statement)) :*: S1 ('MetaSel ('Just "sampleUtterances") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 ('MetaSel ('Just "parentIntentSignature") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "createdDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "kendraConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe KendraConfiguration)))))) :*: (((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "inputContexts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [InputContext])) :*: (S1 ('MetaSel ('Just "followUpPrompt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FollowUpPrompt)) :*: S1 ('MetaSel ('Just "lastUpdatedDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))))) :*: ((S1 ('MetaSel ('Just "outputContexts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [OutputContext])) :*: S1 ('MetaSel ('Just "confirmationPrompt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Prompt))) :*: (S1 ('MetaSel ('Just "dialogCodeHook") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CodeHook)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))))

newGetIntentResponse Source #

Create a value of GetIntentResponse 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:fulfillmentActivity:GetIntentResponse', getIntentResponse_fulfillmentActivity - Describes how the intent is fulfilled. For more information, see PutIntent.

$sel:slots:GetIntentResponse', getIntentResponse_slots - An array of intent slots configured for the intent.

$sel:rejectionStatement:GetIntentResponse', getIntentResponse_rejectionStatement - If the user answers "no" to the question defined in confirmationPrompt, Amazon Lex responds with this statement to acknowledge that the intent was canceled.

$sel:checksum:GetIntentResponse', getIntentResponse_checksum - Checksum of the intent.

$sel:conclusionStatement:GetIntentResponse', getIntentResponse_conclusionStatement - After the Lambda function specified in the fulfillmentActivity element fulfills the intent, Amazon Lex conveys this statement to the user.

$sel:sampleUtterances:GetIntentResponse', getIntentResponse_sampleUtterances - An array of sample utterances configured for the intent.

$sel:parentIntentSignature:GetIntentResponse', getIntentResponse_parentIntentSignature - A unique identifier for a built-in intent.

$sel:createdDate:GetIntentResponse', getIntentResponse_createdDate - The date that the intent was created.

$sel:kendraConfiguration:GetIntentResponse', getIntentResponse_kendraConfiguration - Configuration information, if any, to connect to an Amazon Kendra index with the AMAZON.KendraSearchIntent intent.

$sel:name:GetIntent', getIntentResponse_name - The name of the intent.

$sel:version:GetIntent', getIntentResponse_version - The version of the intent.

$sel:inputContexts:GetIntentResponse', getIntentResponse_inputContexts - An array of InputContext objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.

$sel:followUpPrompt:GetIntentResponse', getIntentResponse_followUpPrompt - If defined in the bot, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled. For more information, see PutIntent.

$sel:lastUpdatedDate:GetIntentResponse', getIntentResponse_lastUpdatedDate - The date that the intent was updated. When you create a resource, the creation date and the last updated date are the same.

$sel:outputContexts:GetIntentResponse', getIntentResponse_outputContexts - An array of OutputContext objects that lists the contexts that the intent activates when the intent is fulfilled.

$sel:confirmationPrompt:GetIntentResponse', getIntentResponse_confirmationPrompt - If defined in the bot, Amazon Lex uses prompt to confirm the intent before fulfilling the user's request. For more information, see PutIntent.

$sel:dialogCodeHook:GetIntentResponse', getIntentResponse_dialogCodeHook - If defined in the bot, Amazon Amazon Lex invokes this Lambda function for each user input. For more information, see PutIntent.

$sel:description:GetIntentResponse', getIntentResponse_description - A description of the intent.

$sel:httpStatus:GetIntentResponse', getIntentResponse_httpStatus - The response's http status code.

Response Lenses

getIntentResponse_fulfillmentActivity :: Lens' GetIntentResponse (Maybe FulfillmentActivity) Source #

Describes how the intent is fulfilled. For more information, see PutIntent.

getIntentResponse_slots :: Lens' GetIntentResponse (Maybe [Slot]) Source #

An array of intent slots configured for the intent.

getIntentResponse_rejectionStatement :: Lens' GetIntentResponse (Maybe Statement) Source #

If the user answers "no" to the question defined in confirmationPrompt, Amazon Lex responds with this statement to acknowledge that the intent was canceled.

getIntentResponse_conclusionStatement :: Lens' GetIntentResponse (Maybe Statement) Source #

After the Lambda function specified in the fulfillmentActivity element fulfills the intent, Amazon Lex conveys this statement to the user.

getIntentResponse_sampleUtterances :: Lens' GetIntentResponse (Maybe [Text]) Source #

An array of sample utterances configured for the intent.

getIntentResponse_parentIntentSignature :: Lens' GetIntentResponse (Maybe Text) Source #

A unique identifier for a built-in intent.

getIntentResponse_createdDate :: Lens' GetIntentResponse (Maybe UTCTime) Source #

The date that the intent was created.

getIntentResponse_kendraConfiguration :: Lens' GetIntentResponse (Maybe KendraConfiguration) Source #

Configuration information, if any, to connect to an Amazon Kendra index with the AMAZON.KendraSearchIntent intent.

getIntentResponse_inputContexts :: Lens' GetIntentResponse (Maybe [InputContext]) Source #

An array of InputContext objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.

getIntentResponse_followUpPrompt :: Lens' GetIntentResponse (Maybe FollowUpPrompt) Source #

If defined in the bot, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled. For more information, see PutIntent.

getIntentResponse_lastUpdatedDate :: Lens' GetIntentResponse (Maybe UTCTime) Source #

The date that the intent was updated. When you create a resource, the creation date and the last updated date are the same.

getIntentResponse_outputContexts :: Lens' GetIntentResponse (Maybe [OutputContext]) Source #

An array of OutputContext objects that lists the contexts that the intent activates when the intent is fulfilled.

getIntentResponse_confirmationPrompt :: Lens' GetIntentResponse (Maybe Prompt) Source #

If defined in the bot, Amazon Lex uses prompt to confirm the intent before fulfilling the user's request. For more information, see PutIntent.

getIntentResponse_dialogCodeHook :: Lens' GetIntentResponse (Maybe CodeHook) Source #

If defined in the bot, Amazon Amazon Lex invokes this Lambda function for each user input. For more information, see PutIntent.

getIntentResponse_httpStatus :: Lens' GetIntentResponse Int Source #

The response's http status code.