| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.LexModels.CreateIntentVersion
Description
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' {
- checksum :: Maybe Text
- conclusionStatement :: Maybe Statement
- confirmationPrompt :: Maybe Prompt
- createdDate :: Maybe POSIX
- description :: Maybe Text
- dialogCodeHook :: Maybe CodeHook
- followUpPrompt :: Maybe FollowUpPrompt
- fulfillmentActivity :: Maybe FulfillmentActivity
- inputContexts :: Maybe [InputContext]
- kendraConfiguration :: Maybe KendraConfiguration
- lastUpdatedDate :: Maybe POSIX
- name :: Maybe Text
- outputContexts :: Maybe [OutputContext]
- parentIntentSignature :: Maybe Text
- rejectionStatement :: Maybe Statement
- sampleUtterances :: Maybe [Text]
- slots :: Maybe [Slot]
- version :: Maybe Text
- httpStatus :: Int
- newCreateIntentVersionResponse :: Int -> CreateIntentVersionResponse
- createIntentVersionResponse_checksum :: Lens' CreateIntentVersionResponse (Maybe Text)
- createIntentVersionResponse_conclusionStatement :: Lens' CreateIntentVersionResponse (Maybe Statement)
- createIntentVersionResponse_confirmationPrompt :: Lens' CreateIntentVersionResponse (Maybe Prompt)
- createIntentVersionResponse_createdDate :: Lens' CreateIntentVersionResponse (Maybe UTCTime)
- createIntentVersionResponse_description :: Lens' CreateIntentVersionResponse (Maybe Text)
- createIntentVersionResponse_dialogCodeHook :: Lens' CreateIntentVersionResponse (Maybe CodeHook)
- createIntentVersionResponse_followUpPrompt :: Lens' CreateIntentVersionResponse (Maybe FollowUpPrompt)
- createIntentVersionResponse_fulfillmentActivity :: Lens' CreateIntentVersionResponse (Maybe FulfillmentActivity)
- createIntentVersionResponse_inputContexts :: Lens' CreateIntentVersionResponse (Maybe [InputContext])
- createIntentVersionResponse_kendraConfiguration :: Lens' CreateIntentVersionResponse (Maybe KendraConfiguration)
- createIntentVersionResponse_lastUpdatedDate :: Lens' CreateIntentVersionResponse (Maybe UTCTime)
- createIntentVersionResponse_name :: Lens' CreateIntentVersionResponse (Maybe Text)
- createIntentVersionResponse_outputContexts :: Lens' CreateIntentVersionResponse (Maybe [OutputContext])
- createIntentVersionResponse_parentIntentSignature :: Lens' CreateIntentVersionResponse (Maybe Text)
- createIntentVersionResponse_rejectionStatement :: Lens' CreateIntentVersionResponse (Maybe Statement)
- createIntentVersionResponse_sampleUtterances :: Lens' CreateIntentVersionResponse (Maybe [Text])
- createIntentVersionResponse_slots :: Lens' CreateIntentVersionResponse (Maybe [Slot])
- createIntentVersionResponse_version :: Lens' CreateIntentVersionResponse (Maybe Text)
- createIntentVersionResponse_httpStatus :: Lens' CreateIntentVersionResponse Int
Creating a Request
data CreateIntentVersion Source #
See: newCreateIntentVersion smart constructor.
Constructors
| CreateIntentVersion' | |
Fields
| |
Instances
newCreateIntentVersion Source #
Arguments
| :: Text | |
| -> CreateIntentVersion |
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:
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.
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.
Constructors
| CreateIntentVersionResponse' | |
Fields
| |
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:
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:confirmationPrompt:CreateIntentVersionResponse', createIntentVersionResponse_confirmationPrompt - If defined, the prompt that Amazon Lex uses to confirm the user's
intent before fulfilling it.
CreateIntentVersionResponse, createIntentVersionResponse_createdDate - The date that the intent was created.
CreateIntentVersionResponse, createIntentVersionResponse_description - A description of the intent.
$sel:dialogCodeHook:CreateIntentVersionResponse', createIntentVersionResponse_dialogCodeHook - If defined, Amazon Lex invokes this Lambda function for each user input.
$sel:followUpPrompt:CreateIntentVersionResponse', createIntentVersionResponse_followUpPrompt - If defined, Amazon Lex uses this prompt to solicit additional user
activity after the intent is fulfilled.
$sel:fulfillmentActivity:CreateIntentVersionResponse', createIntentVersionResponse_fulfillmentActivity - Describes how the intent is fulfilled.
$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:kendraConfiguration:CreateIntentVersionResponse', createIntentVersionResponse_kendraConfiguration - Configuration information, if any, for connecting an Amazon Kendra index
with the AMAZON.KendraSearchIntent intent.
CreateIntentVersionResponse, createIntentVersionResponse_lastUpdatedDate - The date that the intent was updated.
CreateIntentVersion, createIntentVersionResponse_name - The name of the intent.
$sel:outputContexts:CreateIntentVersionResponse', createIntentVersionResponse_outputContexts - An array of OutputContext objects that lists the contexts that the
intent activates when the intent is fulfilled.
$sel:parentIntentSignature:CreateIntentVersionResponse', createIntentVersionResponse_parentIntentSignature - A unique identifier for a built-in intent.
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.
CreateIntentVersionResponse, createIntentVersionResponse_sampleUtterances - An array of sample utterances configured for the intent.
$sel:slots:CreateIntentVersionResponse', createIntentVersionResponse_slots - An array of slot types that defines the information required to fulfill
the intent.
CreateIntentVersionResponse, createIntentVersionResponse_version - The version number assigned to the new version of the intent.
$sel:httpStatus:CreateIntentVersionResponse', createIntentVersionResponse_httpStatus - The response's http status code.
Response Lenses
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_confirmationPrompt :: Lens' CreateIntentVersionResponse (Maybe Prompt) Source #
If defined, the prompt that Amazon Lex uses to confirm the user's intent before fulfilling it.
createIntentVersionResponse_createdDate :: Lens' CreateIntentVersionResponse (Maybe UTCTime) Source #
The date that the intent was created.
createIntentVersionResponse_description :: Lens' CreateIntentVersionResponse (Maybe Text) Source #
A description of the intent.
createIntentVersionResponse_dialogCodeHook :: Lens' CreateIntentVersionResponse (Maybe CodeHook) Source #
If defined, Amazon Lex invokes this Lambda function for each user input.
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_fulfillmentActivity :: Lens' CreateIntentVersionResponse (Maybe FulfillmentActivity) Source #
Describes how the intent is fulfilled.
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_kendraConfiguration :: Lens' CreateIntentVersionResponse (Maybe KendraConfiguration) Source #
Configuration information, if any, for connecting an Amazon Kendra index
with the AMAZON.KendraSearchIntent intent.
createIntentVersionResponse_lastUpdatedDate :: Lens' CreateIntentVersionResponse (Maybe UTCTime) Source #
The date that the intent was updated.
createIntentVersionResponse_name :: Lens' CreateIntentVersionResponse (Maybe Text) Source #
The name of the intent.
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_parentIntentSignature :: Lens' CreateIntentVersionResponse (Maybe Text) Source #
A unique identifier for a built-in 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_sampleUtterances :: Lens' CreateIntentVersionResponse (Maybe [Text]) Source #
An array of sample utterances configured for the intent.
createIntentVersionResponse_slots :: Lens' CreateIntentVersionResponse (Maybe [Slot]) Source #
An array of slot types that defines the information required to fulfill the intent.
createIntentVersionResponse_version :: Lens' CreateIntentVersionResponse (Maybe Text) Source #
The version number assigned to the new version of the intent.
createIntentVersionResponse_httpStatus :: Lens' CreateIntentVersionResponse Int Source #
The response's http status code.