Module Values.CreateIntentVersionResponseSource

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.

Sourcetype nonrec t = {
  1. name : IntentName.t option;
    (*

    The name of the intent.

    *)
  2. description : Description.t option;
    (*

    A description of the intent.

    *)
  3. slots : SlotList.t option;
    (*

    An array of slot types that defines the information required to fulfill the intent.

    *)
  4. sampleUtterances : IntentUtteranceList.t option;
    (*

    An array of sample utterances configured for the intent.

    *)
  5. confirmationPrompt : Prompt.t option;
    (*

    If defined, the prompt that Amazon Lex uses to confirm the user's intent before fulfilling it.

    *)
  6. rejectionStatement : Statement.t option;
    (*

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

    *)
  7. followUpPrompt : FollowUpPrompt.t option;
    (*

    If defined, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled.

    *)
  8. conclusionStatement : Statement.t option;
    (*

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

    *)
  9. dialogCodeHook : CodeHook.t option;
    (*

    If defined, Amazon Lex invokes this Lambda function for each user input.

    *)
  10. fulfillmentActivity : FulfillmentActivity.t option;
    (*

    Describes how the intent is fulfilled.

    *)
  11. parentIntentSignature : BuiltinIntentSignature.t option;
    (*

    A unique identifier for a built-in intent.

    *)
  12. lastUpdatedDate : Timestamp.t option;
    (*

    The date that the intent was updated.

    *)
  13. createdDate : Timestamp.t option;
    (*

    The date that the intent was created.

    *)
  14. version : Version.t option;
    (*

    The version number assigned to the new version of the intent.

    *)
  15. checksum : String_.t option;
    (*

    Checksum of the intent version created.

    *)
  16. kendraConfiguration : KendraConfiguration.t option;
    (*

    Configuration information, if any, for connecting an Amazon Kendra index with the AMAZON.KendraSearchIntent intent.

    *)
  17. inputContexts : InputContextList.t option;
    (*

    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.

    *)
  18. outputContexts : OutputContextList.t option;
    (*

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

    *)
}
Sourcetype nonrec error = [
  1. | `BadRequestException of BadRequestException.t
  2. | `ConflictException of ConflictException.t
  3. | `InternalFailureException of InternalFailureException.t
  4. | `LimitExceededException of LimitExceededException.t
  5. | `NotFoundException of NotFoundException.t
  6. | `PreconditionFailedException of PreconditionFailedException.t
  7. | `Unknown_operation_error of string * string option
]
Sourceval make : ?name:??? -> ?description:??? -> ?slots:??? -> ?sampleUtterances:??? -> ?confirmationPrompt:??? -> ?rejectionStatement:??? -> ?followUpPrompt:??? -> ?conclusionStatement:??? -> ?dialogCodeHook:??? -> ?fulfillmentActivity:??? -> ?parentIntentSignature:??? -> ?lastUpdatedDate:??? -> ?createdDate:??? -> ?version:??? -> ?checksum:??? -> ?kendraConfiguration:??? -> ?inputContexts:??? -> ?outputContexts:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `BadRequestException of BadRequestException.t | `ConflictException of ConflictException.t | `InternalFailureException of InternalFailureException.t | `LimitExceededException of LimitExceededException.t | `NotFoundException of NotFoundException.t | `PreconditionFailedException of PreconditionFailedException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `BadRequestException of BadRequestException.t | `ConflictException of ConflictException.t | `InternalFailureException of InternalFailureException.t | `LimitExceededException of LimitExceededException.t | `NotFoundException of NotFoundException.t | `PreconditionFailedException of PreconditionFailedException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `String of Utterance.t | `Structure of (string * [> `Enum of string | `Integer of Priority.t | `List of [> `String of Utterance.t ] list | `String of SlotName.t | `Structure of (string * [> `Integer of PromptMaxAttempts.t | `List of [> `Structure of (string * [> `Enum of string | `Integer of GroupNumber.t | `String of ContentString.t ]) list ] list | `String of ResponseCard.t ]) list ]) list ] list | `String of IntentName.t | `Structure of (string * [> `Enum of string | `Integer of PromptMaxAttempts.t | `List of [> `Structure of (string * [> `Enum of string | `Integer of GroupNumber.t | `String of ContentString.t ]) list ] list | `String of ResponseCard.t | `Structure of (string * [> `Integer of PromptMaxAttempts.t | `List of [> `Structure of (string * [> `Enum of string | `Integer of GroupNumber.t | `String of ContentString.t ]) list ] list | `String of ResponseCard.t ]) list ]) list | `Timestamp of Timestamp.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t