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

AWSRequest GetIntent Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

Associated Types

type AWSResponse GetIntent #

Generic GetIntent Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

Associated Types

type Rep GetIntent :: Type -> Type #

Read GetIntent Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

Show GetIntent Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

NFData GetIntent Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

Methods

rnf :: GetIntent -> () #

Eq GetIntent Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

Hashable GetIntent Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

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

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:

GetIntent, getIntent_name - The name of the intent. The name is case sensitive.

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

Defined in Amazonka.LexModels.GetIntent

Associated Types

type Rep GetIntentResponse :: Type -> Type #

Read GetIntentResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

Show GetIntentResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

NFData GetIntentResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

Methods

rnf :: GetIntentResponse -> () #

Eq GetIntentResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

type Rep GetIntentResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetIntent

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

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

GetIntentResponse, getIntentResponse_createdDate - The date that the intent was created.

GetIntentResponse, getIntentResponse_description - A description of the intent.

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

$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:kendraConfiguration:GetIntentResponse', getIntentResponse_kendraConfiguration - Configuration information, if any, to connect to an Amazon Kendra index with the AMAZON.KendraSearchIntent intent.

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.

GetIntent, getIntentResponse_name - The name of the intent.

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

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

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.

GetIntentResponse, getIntentResponse_sampleUtterances - An array of sample utterances configured for the intent.

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

GetIntent, getIntentResponse_version - The version of the intent.

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

Response Lenses

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_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_createdDate :: Lens' GetIntentResponse (Maybe UTCTime) Source #

The date that the intent was created.

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_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_fulfillmentActivity :: Lens' GetIntentResponse (Maybe FulfillmentActivity) Source #

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

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_kendraConfiguration :: Lens' GetIntentResponse (Maybe KendraConfiguration) Source #

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

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_parentIntentSignature :: Lens' GetIntentResponse (Maybe Text) Source #

A unique identifier for a built-in 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_sampleUtterances :: Lens' GetIntentResponse (Maybe [Text]) Source #

An array of sample utterances configured for the intent.

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

An array of intent slots configured for the intent.

getIntentResponse_httpStatus :: Lens' GetIntentResponse Int Source #

The response's http status code.