amazonka-lex-models-1.6.1: Amazon Lex Model Building Service SDK.

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

Network.AWS.LexModels.GetIntent

Contents

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

getIntent Source #

Creates a value of GetIntent with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • giName - The name of the intent. The name is case sensitive.
  • giVersion - The version of the intent.

data GetIntent Source #

See: getIntent smart constructor.

Instances
Eq GetIntent Source # 
Instance details

Defined in Network.AWS.LexModels.GetIntent

Data GetIntent Source # 
Instance details

Defined in Network.AWS.LexModels.GetIntent

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetIntent -> c GetIntent #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetIntent #

toConstr :: GetIntent -> Constr #

dataTypeOf :: GetIntent -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetIntent) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetIntent) #

gmapT :: (forall b. Data b => b -> b) -> GetIntent -> GetIntent #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetIntent -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetIntent -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetIntent -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetIntent -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetIntent -> m GetIntent #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetIntent -> m GetIntent #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetIntent -> m GetIntent #

Read GetIntent Source # 
Instance details

Defined in Network.AWS.LexModels.GetIntent

Show GetIntent Source # 
Instance details

Defined in Network.AWS.LexModels.GetIntent

Generic GetIntent Source # 
Instance details

Defined in Network.AWS.LexModels.GetIntent

Associated Types

type Rep GetIntent :: Type -> Type #

Hashable GetIntent Source # 
Instance details

Defined in Network.AWS.LexModels.GetIntent

AWSRequest GetIntent Source # 
Instance details

Defined in Network.AWS.LexModels.GetIntent

Associated Types

type Rs GetIntent :: Type #

ToHeaders GetIntent Source # 
Instance details

Defined in Network.AWS.LexModels.GetIntent

Methods

toHeaders :: GetIntent -> [Header] #

ToPath GetIntent Source # 
Instance details

Defined in Network.AWS.LexModels.GetIntent

ToQuery GetIntent Source # 
Instance details

Defined in Network.AWS.LexModels.GetIntent

NFData GetIntent Source # 
Instance details

Defined in Network.AWS.LexModels.GetIntent

Methods

rnf :: GetIntent -> () #

type Rep GetIntent Source # 
Instance details

Defined in Network.AWS.LexModels.GetIntent

type Rep GetIntent = D1 (MetaData "GetIntent" "Network.AWS.LexModels.GetIntent" "amazonka-lex-models-1.6.1-16JSA2D34IH7p8RxcjidTj" False) (C1 (MetaCons "GetIntent'" PrefixI True) (S1 (MetaSel (Just "_giName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_giVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs GetIntent Source # 
Instance details

Defined in Network.AWS.LexModels.GetIntent

Request Lenses

giName :: Lens' GetIntent Text Source #

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

giVersion :: Lens' GetIntent Text Source #

The version of the intent.

Destructuring the Response

getIntentResponse Source #

Creates a value of GetIntentResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • getrsFulfillmentActivity - Describes how the intent is fulfilled. For more information, see PutIntent .
  • getrsSlots - An array of intent slots configured for the intent.
  • getrsRejectionStatement - If the user answers "no" to the question defined in confirmationPrompt , Amazon Lex responds with this statement to acknowledge that the intent was canceled.
  • getrsChecksum - Checksum of the intent.
  • getrsConclusionStatement - After the Lambda function specified in the fulfillmentActivity element fulfills the intent, Amazon Lex conveys this statement to the user.
  • getrsSampleUtterances - An array of sample utterances configured for the intent.
  • getrsParentIntentSignature - A unique identifier for a built-in intent.
  • getrsCreatedDate - The date that the intent was created.
  • getrsName - The name of the intent.
  • getrsVersion - The version of the intent.
  • getrsFollowUpPrompt - 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 .
  • getrsLastUpdatedDate - The date that the intent was updated. When you create a resource, the creation date and the last updated date are the same.
  • getrsConfirmationPrompt - If defined in the bot, Amazon Lex uses prompt to confirm the intent before fulfilling the user's request. For more information, see PutIntent .
  • getrsDialogCodeHook - If defined in the bot, Amazon Amazon Lex invokes this Lambda function for each user input. For more information, see PutIntent .
  • getrsDescription - A description of the intent.
  • getrsResponseStatus - -- | The response status code.

data GetIntentResponse Source #

See: getIntentResponse smart constructor.

Instances
Eq GetIntentResponse Source # 
Instance details

Defined in Network.AWS.LexModels.GetIntent

Data GetIntentResponse Source # 
Instance details

Defined in Network.AWS.LexModels.GetIntent

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetIntentResponse -> c GetIntentResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetIntentResponse #

toConstr :: GetIntentResponse -> Constr #

dataTypeOf :: GetIntentResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetIntentResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetIntentResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetIntentResponse -> GetIntentResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetIntentResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetIntentResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetIntentResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetIntentResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetIntentResponse -> m GetIntentResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetIntentResponse -> m GetIntentResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetIntentResponse -> m GetIntentResponse #

Read GetIntentResponse Source # 
Instance details

Defined in Network.AWS.LexModels.GetIntent

Show GetIntentResponse Source # 
Instance details

Defined in Network.AWS.LexModels.GetIntent

Generic GetIntentResponse Source # 
Instance details

Defined in Network.AWS.LexModels.GetIntent

Associated Types

type Rep GetIntentResponse :: Type -> Type #

NFData GetIntentResponse Source # 
Instance details

Defined in Network.AWS.LexModels.GetIntent

Methods

rnf :: GetIntentResponse -> () #

type Rep GetIntentResponse Source # 
Instance details

Defined in Network.AWS.LexModels.GetIntent

type Rep GetIntentResponse = D1 (MetaData "GetIntentResponse" "Network.AWS.LexModels.GetIntent" "amazonka-lex-models-1.6.1-16JSA2D34IH7p8RxcjidTj" False) (C1 (MetaCons "GetIntentResponse'" PrefixI True) ((((S1 (MetaSel (Just "_getrsFulfillmentActivity") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe FulfillmentActivity)) :*: S1 (MetaSel (Just "_getrsSlots") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Slot]))) :*: (S1 (MetaSel (Just "_getrsRejectionStatement") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Statement)) :*: S1 (MetaSel (Just "_getrsChecksum") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_getrsConclusionStatement") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Statement)) :*: S1 (MetaSel (Just "_getrsSampleUtterances") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 (MetaSel (Just "_getrsParentIntentSignature") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_getrsCreatedDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX))))) :*: (((S1 (MetaSel (Just "_getrsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_getrsVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_getrsFollowUpPrompt") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe FollowUpPrompt)) :*: S1 (MetaSel (Just "_getrsLastUpdatedDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX)))) :*: ((S1 (MetaSel (Just "_getrsConfirmationPrompt") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Prompt)) :*: S1 (MetaSel (Just "_getrsDialogCodeHook") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe CodeHook))) :*: (S1 (MetaSel (Just "_getrsDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_getrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))))

Response Lenses

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

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

getrsSlots :: Lens' GetIntentResponse [Slot] Source #

An array of intent slots configured for the intent.

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

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

Checksum of the intent.

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

getrsSampleUtterances :: Lens' GetIntentResponse [Text] Source #

An array of sample utterances configured for the intent.

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

A unique identifier for a built-in intent.

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

The date that the intent was created.

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

The name of the intent.

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

The version of the intent.

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

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

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

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

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

A description of the intent.

getrsResponseStatus :: Lens' GetIntentResponse Int Source #

  • - | The response status code.