Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a new version of an intent based on the $LATEST
version of the
intent. If the $LATEST
version of this intent hasn't changed since
you last updated it, Amazon Lex doesn't create a new version. It
returns the last version you created.
You can update only the $LATEST
version of the intent. You can't
update the numbered versions that you create with the
CreateIntentVersion
operation.
When you create a version of an intent, Amazon Lex sets the version to 1. Subsequent versions increment by 1. For more information, see versioning-intro.
This operation requires permissions to perform the
lex:CreateIntentVersion
action.
Synopsis
- data CreateIntentVersion = CreateIntentVersion' {}
- newCreateIntentVersion :: Text -> CreateIntentVersion
- createIntentVersion_checksum :: Lens' CreateIntentVersion (Maybe Text)
- createIntentVersion_name :: Lens' CreateIntentVersion Text
- data CreateIntentVersionResponse = CreateIntentVersionResponse' {
- fulfillmentActivity :: Maybe FulfillmentActivity
- slots :: Maybe [Slot]
- rejectionStatement :: Maybe Statement
- checksum :: Maybe Text
- conclusionStatement :: Maybe Statement
- sampleUtterances :: Maybe [Text]
- parentIntentSignature :: Maybe Text
- createdDate :: Maybe POSIX
- kendraConfiguration :: Maybe KendraConfiguration
- name :: Maybe Text
- version :: Maybe Text
- inputContexts :: Maybe [InputContext]
- followUpPrompt :: Maybe FollowUpPrompt
- lastUpdatedDate :: Maybe POSIX
- outputContexts :: Maybe [OutputContext]
- confirmationPrompt :: Maybe Prompt
- dialogCodeHook :: Maybe CodeHook
- description :: Maybe Text
- httpStatus :: Int
- newCreateIntentVersionResponse :: Int -> CreateIntentVersionResponse
- createIntentVersionResponse_fulfillmentActivity :: Lens' CreateIntentVersionResponse (Maybe FulfillmentActivity)
- createIntentVersionResponse_slots :: Lens' CreateIntentVersionResponse (Maybe [Slot])
- createIntentVersionResponse_rejectionStatement :: Lens' CreateIntentVersionResponse (Maybe Statement)
- createIntentVersionResponse_checksum :: Lens' CreateIntentVersionResponse (Maybe Text)
- createIntentVersionResponse_conclusionStatement :: Lens' CreateIntentVersionResponse (Maybe Statement)
- createIntentVersionResponse_sampleUtterances :: Lens' CreateIntentVersionResponse (Maybe [Text])
- createIntentVersionResponse_parentIntentSignature :: Lens' CreateIntentVersionResponse (Maybe Text)
- createIntentVersionResponse_createdDate :: Lens' CreateIntentVersionResponse (Maybe UTCTime)
- createIntentVersionResponse_kendraConfiguration :: Lens' CreateIntentVersionResponse (Maybe KendraConfiguration)
- createIntentVersionResponse_name :: Lens' CreateIntentVersionResponse (Maybe Text)
- createIntentVersionResponse_version :: Lens' CreateIntentVersionResponse (Maybe Text)
- createIntentVersionResponse_inputContexts :: Lens' CreateIntentVersionResponse (Maybe [InputContext])
- createIntentVersionResponse_followUpPrompt :: Lens' CreateIntentVersionResponse (Maybe FollowUpPrompt)
- createIntentVersionResponse_lastUpdatedDate :: Lens' CreateIntentVersionResponse (Maybe UTCTime)
- createIntentVersionResponse_outputContexts :: Lens' CreateIntentVersionResponse (Maybe [OutputContext])
- createIntentVersionResponse_confirmationPrompt :: Lens' CreateIntentVersionResponse (Maybe Prompt)
- createIntentVersionResponse_dialogCodeHook :: Lens' CreateIntentVersionResponse (Maybe CodeHook)
- createIntentVersionResponse_description :: Lens' CreateIntentVersionResponse (Maybe Text)
- createIntentVersionResponse_httpStatus :: Lens' CreateIntentVersionResponse Int
Creating a Request
data CreateIntentVersion Source #
See: newCreateIntentVersion
smart constructor.
CreateIntentVersion' | |
|
Instances
newCreateIntentVersion Source #
Create a value of CreateIntentVersion
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:checksum:CreateIntentVersion'
, createIntentVersion_checksum
- Checksum of the $LATEST
version of the intent that should be used to
create the new version. If you specify a checksum and the $LATEST
version of the intent has a different checksum, Amazon Lex returns a
PreconditionFailedException
exception and doesn't publish a new
version. If you don't specify a checksum, Amazon Lex publishes the
$LATEST
version.
$sel:name:CreateIntentVersion'
, createIntentVersion_name
- The name of the intent that you want to create a new version of. The
name is case sensitive.
Request Lenses
createIntentVersion_checksum :: Lens' CreateIntentVersion (Maybe Text) Source #
Checksum of the $LATEST
version of the intent that should be used to
create the new version. If you specify a checksum and the $LATEST
version of the intent has a different checksum, Amazon Lex returns a
PreconditionFailedException
exception and doesn't publish a new
version. If you don't specify a checksum, Amazon Lex publishes the
$LATEST
version.
createIntentVersion_name :: Lens' CreateIntentVersion Text Source #
The name of the intent that you want to create a new version of. The name is case sensitive.
Destructuring the Response
data CreateIntentVersionResponse Source #
See: newCreateIntentVersionResponse
smart constructor.
CreateIntentVersionResponse' | |
|
Instances
newCreateIntentVersionResponse Source #
Create a value of CreateIntentVersionResponse
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:CreateIntentVersionResponse'
, createIntentVersionResponse_fulfillmentActivity
- Describes how the intent is fulfilled.
$sel:slots:CreateIntentVersionResponse'
, createIntentVersionResponse_slots
- An array of slot types that defines the information required to fulfill
the intent.
$sel:rejectionStatement:CreateIntentVersionResponse'
, createIntentVersionResponse_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:CreateIntentVersion'
, createIntentVersionResponse_checksum
- Checksum of the intent version created.
$sel:conclusionStatement:CreateIntentVersionResponse'
, createIntentVersionResponse_conclusionStatement
- After the Lambda function specified in the fulfillmentActivity
field
fulfills the intent, Amazon Lex conveys this statement to the user.
$sel:sampleUtterances:CreateIntentVersionResponse'
, createIntentVersionResponse_sampleUtterances
- An array of sample utterances configured for the intent.
$sel:parentIntentSignature:CreateIntentVersionResponse'
, createIntentVersionResponse_parentIntentSignature
- A unique identifier for a built-in intent.
$sel:createdDate:CreateIntentVersionResponse'
, createIntentVersionResponse_createdDate
- The date that the intent was created.
$sel:kendraConfiguration:CreateIntentVersionResponse'
, createIntentVersionResponse_kendraConfiguration
- Configuration information, if any, for connecting an Amazon Kendra index
with the AMAZON.KendraSearchIntent
intent.
$sel:name:CreateIntentVersion'
, createIntentVersionResponse_name
- The name of the intent.
$sel:version:CreateIntentVersionResponse'
, createIntentVersionResponse_version
- The version number assigned to the new version of the intent.
$sel:inputContexts:CreateIntentVersionResponse'
, createIntentVersionResponse_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:CreateIntentVersionResponse'
, createIntentVersionResponse_followUpPrompt
- If defined, Amazon Lex uses this prompt to solicit additional user
activity after the intent is fulfilled.
$sel:lastUpdatedDate:CreateIntentVersionResponse'
, createIntentVersionResponse_lastUpdatedDate
- The date that the intent was updated.
$sel:outputContexts:CreateIntentVersionResponse'
, createIntentVersionResponse_outputContexts
- An array of OutputContext
objects that lists the contexts that the
intent activates when the intent is fulfilled.
$sel:confirmationPrompt:CreateIntentVersionResponse'
, createIntentVersionResponse_confirmationPrompt
- If defined, the prompt that Amazon Lex uses to confirm the user's
intent before fulfilling it.
$sel:dialogCodeHook:CreateIntentVersionResponse'
, createIntentVersionResponse_dialogCodeHook
- If defined, Amazon Lex invokes this Lambda function for each user input.
$sel:description:CreateIntentVersionResponse'
, createIntentVersionResponse_description
- A description of the intent.
$sel:httpStatus:CreateIntentVersionResponse'
, createIntentVersionResponse_httpStatus
- The response's http status code.
Response Lenses
createIntentVersionResponse_fulfillmentActivity :: Lens' CreateIntentVersionResponse (Maybe FulfillmentActivity) Source #
Describes how the intent is fulfilled.
createIntentVersionResponse_slots :: Lens' CreateIntentVersionResponse (Maybe [Slot]) Source #
An array of slot types that defines the information required to fulfill the intent.
createIntentVersionResponse_rejectionStatement :: Lens' CreateIntentVersionResponse (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.
createIntentVersionResponse_checksum :: Lens' CreateIntentVersionResponse (Maybe Text) Source #
Checksum of the intent version created.
createIntentVersionResponse_conclusionStatement :: Lens' CreateIntentVersionResponse (Maybe Statement) Source #
After the Lambda function specified in the fulfillmentActivity
field
fulfills the intent, Amazon Lex conveys this statement to the user.
createIntentVersionResponse_sampleUtterances :: Lens' CreateIntentVersionResponse (Maybe [Text]) Source #
An array of sample utterances configured for the intent.
createIntentVersionResponse_parentIntentSignature :: Lens' CreateIntentVersionResponse (Maybe Text) Source #
A unique identifier for a built-in intent.
createIntentVersionResponse_createdDate :: Lens' CreateIntentVersionResponse (Maybe UTCTime) Source #
The date that the intent was created.
createIntentVersionResponse_kendraConfiguration :: Lens' CreateIntentVersionResponse (Maybe KendraConfiguration) Source #
Configuration information, if any, for connecting an Amazon Kendra index
with the AMAZON.KendraSearchIntent
intent.
createIntentVersionResponse_name :: Lens' CreateIntentVersionResponse (Maybe Text) Source #
The name of the intent.
createIntentVersionResponse_version :: Lens' CreateIntentVersionResponse (Maybe Text) Source #
The version number assigned to the new version of the intent.
createIntentVersionResponse_inputContexts :: Lens' CreateIntentVersionResponse (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.
createIntentVersionResponse_followUpPrompt :: Lens' CreateIntentVersionResponse (Maybe FollowUpPrompt) Source #
If defined, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled.
createIntentVersionResponse_lastUpdatedDate :: Lens' CreateIntentVersionResponse (Maybe UTCTime) Source #
The date that the intent was updated.
createIntentVersionResponse_outputContexts :: Lens' CreateIntentVersionResponse (Maybe [OutputContext]) Source #
An array of OutputContext
objects that lists the contexts that the
intent activates when the intent is fulfilled.
createIntentVersionResponse_confirmationPrompt :: Lens' CreateIntentVersionResponse (Maybe Prompt) Source #
If defined, the prompt that Amazon Lex uses to confirm the user's intent before fulfilling it.
createIntentVersionResponse_dialogCodeHook :: Lens' CreateIntentVersionResponse (Maybe CodeHook) Source #
If defined, Amazon Lex invokes this Lambda function for each user input.
createIntentVersionResponse_description :: Lens' CreateIntentVersionResponse (Maybe Text) Source #
A description of the intent.
createIntentVersionResponse_httpStatus :: Lens' CreateIntentVersionResponse Int Source #
The response's http status code.