Intent

Provides an Amazon Lex Intent resource. For more information see Amazon Lex: How It Works

Example Usage

Coming soon!

Coming soon!

package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lex.Intent;
import com.pulumi.aws.lex.IntentArgs;
import com.pulumi.aws.lex.inputs.IntentConfirmationPromptArgs;
import com.pulumi.aws.lex.inputs.IntentFulfillmentActivityArgs;
import com.pulumi.aws.lex.inputs.IntentRejectionStatementArgs;
import com.pulumi.aws.lex.inputs.IntentSlotArgs;
import com.pulumi.aws.lex.inputs.IntentSlotValueElicitationPromptArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var orderFlowersIntent = new Intent("orderFlowersIntent", IntentArgs.builder()        
            .confirmationPrompt(IntentConfirmationPromptArgs.builder()
                .maxAttempts(2)
                .messages(IntentConfirmationPromptMessageArgs.builder()
                    .content("Okay, your {FlowerType} will be ready for pickup by {PickupTime} on {PickupDate}.  Does this sound okay?")
                    .contentType("PlainText")
                    .build())
                .build())
            .createVersion(false)
            .description("Intent to order a bouquet of flowers for pick up")
            .fulfillmentActivity(IntentFulfillmentActivityArgs.builder()
                .type("ReturnIntent")
                .build())
            .name("OrderFlowers")
            .rejectionStatement(IntentRejectionStatementArgs.builder()
                .messages(IntentRejectionStatementMessageArgs.builder()
                    .content("Okay, I will not place your order.")
                    .contentType("PlainText")
                    .build())
                .build())
            .sampleUtterances(            
                "I would like to order some flowers",
                "I would like to pick up flowers")
            .slots(            
                IntentSlotArgs.builder()
                    .description("The type of flowers to pick up")
                    .name("FlowerType")
                    .priority(1)
                    .sampleUtterances("I would like to order {FlowerType}")
                    .slotConstraint("Required")
                    .slotType("FlowerTypes")
                    .slotTypeVersion("$LATEST")
                    .valueElicitationPrompt(IntentSlotValueElicitationPromptArgs.builder()
                        .maxAttempts(2)
                        .message(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                        .build())
                    .build(),
                IntentSlotArgs.builder()
                    .description("The date to pick up the flowers")
                    .name("PickupDate")
                    .priority(2)
                    .sampleUtterances("I would like to order {FlowerType}")
                    .slotConstraint("Required")
                    .slotType("AMAZON.DATE")
                    .slotTypeVersion("$LATEST")
                    .valueElicitationPrompt(IntentSlotValueElicitationPromptArgs.builder()
                        .maxAttempts(2)
                        .message(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                        .build())
                    .build(),
                IntentSlotArgs.builder()
                    .description("The time to pick up the flowers")
                    .name("PickupTime")
                    .priority(3)
                    .sampleUtterances("I would like to order {FlowerType}")
                    .slotConstraint("Required")
                    .slotType("AMAZON.TIME")
                    .slotTypeVersion("$LATEST")
                    .valueElicitationPrompt(IntentSlotValueElicitationPromptArgs.builder()
                        .maxAttempts(2)
                        .message(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                        .build())
                    .build())
            .build());

    }
}

Coming soon!

Coming soon!

resources:
  orderFlowersIntent:
    type: aws:lex:Intent
    properties:
      confirmationPrompt:
        maxAttempts: 2
        messages:
          - content: Okay, your {FlowerType} will be ready for pickup by {PickupTime} on {PickupDate}.  Does this sound okay?
            contentType: PlainText
      createVersion: false
      description: Intent to order a bouquet of flowers for pick up
      fulfillmentActivity:
        type: ReturnIntent
      name: OrderFlowers
      rejectionStatement:
        messages:
          - content: Okay, I will not place your order.
            contentType: PlainText
      sampleUtterances:
        - I would like to order some flowers
        - I would like to pick up flowers
      slots:
        - description: The type of flowers to pick up
          name: FlowerType
          priority: 1
          sampleUtterances:
            - I would like to order {FlowerType}
          slotConstraint: Required
          slotType: FlowerTypes
          slotTypeVersion: $LATEST
          valueElicitationPrompt:
            maxAttempts: 2
            message:
              - content: What type of flowers would you like to order?
                contentType: PlainText
        - description: The date to pick up the flowers
          name: PickupDate
          priority: 2
          sampleUtterances:
            - I would like to order {FlowerType}
          slotConstraint: Required
          slotType: AMAZON.DATE
          slotTypeVersion: $LATEST
          valueElicitationPrompt:
            maxAttempts: 2
            message:
              - content: What day do you want the {FlowerType} to be picked up?
                contentType: PlainText
        - description: The time to pick up the flowers
          name: PickupTime
          priority: 3
          sampleUtterances:
            - I would like to order {FlowerType}
          slotConstraint: Required
          slotType: AMAZON.TIME
          slotTypeVersion: $LATEST
          valueElicitationPrompt:
            maxAttempts: 2
            message:
              - content: Pick up the {FlowerType} at what time on {PickupDate}?
                contentType: PlainText

Create Intent Resource

new Intent(name: string, args: IntentArgs, opts?: CustomResourceOptions);
@overload
def Intent(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           conclusion_statement: Optional[IntentConclusionStatementArgs] = None,
           confirmation_prompt: Optional[IntentConfirmationPromptArgs] = None,
           create_version: Optional[bool] = None,
           description: Optional[str] = None,
           dialog_code_hook: Optional[IntentDialogCodeHookArgs] = None,
           follow_up_prompt: Optional[IntentFollowUpPromptArgs] = None,
           fulfillment_activity: Optional[IntentFulfillmentActivityArgs] = None,
           name: Optional[str] = None,
           parent_intent_signature: Optional[str] = None,
           rejection_statement: Optional[IntentRejectionStatementArgs] = None,
           sample_utterances: Optional[Sequence[str]] = None,
           slots: Optional[Sequence[IntentSlotArgs]] = None)
@overload
def Intent(resource_name: str,
           args: IntentArgs,
           opts: Optional[ResourceOptions] = None)
func NewIntent(ctx *Context, name string, args IntentArgs, opts ...ResourceOption) (*Intent, error)
public Intent(string name, IntentArgs args, CustomResourceOptions? opts = null)
public Intent(String name, IntentArgs args)
public Intent(String name, IntentArgs args, CustomResourceOptions options)
type: aws:lex:Intent
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args IntentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args IntentArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args IntentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args IntentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args IntentArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Intent Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Intent resource accepts the following input properties:

FulfillmentActivity IntentFulfillmentActivityArgs

Describes how the intent is fulfilled. For example, after a user provides all of the information for a pizza order, fulfillment_activity defines how the bot places an order with a local pizza store. Attributes are documented under fulfillment_activity.

ConclusionStatement IntentConclusionStatementArgs

The statement that you want Amazon Lex to convey to the user after the intent is successfully fulfilled by the Lambda function. This element is relevant only if you provide a Lambda function in the fulfillment_activity. If you return the intent to the client application, you can't specify this element. The follow_up_prompt and conclusion_statement are mutually exclusive. You can specify only one. Attributes are documented under statement.

ConfirmationPrompt IntentConfirmationPromptArgs

Prompts the user to confirm the intent. This question should have a yes or no answer. You you must provide both the rejection_statement and confirmation_prompt, or neither. Attributes are documented under prompt.

CreateVersion bool

Determines if a new slot type version is created when the initial resource is created and on each update. Defaults to false.

Description string

A description of the bot. Must be less than or equal to 200 characters in length.

DialogCodeHook IntentDialogCodeHookArgs

Specifies a Lambda function to invoke for each user input. You can invoke this Lambda function to personalize user interaction. Attributes are documented under code_hook.

FollowUpPrompt IntentFollowUpPromptArgs

Amazon Lex uses this prompt to solicit additional activity after fulfilling an intent. For example, after the OrderPizza intent is fulfilled, you might prompt the user to order a drink. The follow_up_prompt field and the conclusion_statement field are mutually exclusive. You can specify only one. Attributes are documented under follow_up_prompt.

Name string

The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length.

ParentIntentSignature string

A unique identifier for the built-in intent to base this intent on. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit.

RejectionStatement IntentRejectionStatementArgs

If the user answers "no" to the question defined in the prompt field, Amazon Lex responds with this statement to acknowledge that the intent was canceled. Attributes are documented below under statement.

SampleUtterances List<string>

If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.

Slots List<IntentSlotArgs>

An list of intent slots. At runtime, Amazon Lex elicits required slot values from the user using prompts defined in the slots. Attributes are documented under slot.

FulfillmentActivity IntentFulfillmentActivityArgs

Describes how the intent is fulfilled. For example, after a user provides all of the information for a pizza order, fulfillment_activity defines how the bot places an order with a local pizza store. Attributes are documented under fulfillment_activity.

ConclusionStatement IntentConclusionStatementArgs

The statement that you want Amazon Lex to convey to the user after the intent is successfully fulfilled by the Lambda function. This element is relevant only if you provide a Lambda function in the fulfillment_activity. If you return the intent to the client application, you can't specify this element. The follow_up_prompt and conclusion_statement are mutually exclusive. You can specify only one. Attributes are documented under statement.

ConfirmationPrompt IntentConfirmationPromptArgs

Prompts the user to confirm the intent. This question should have a yes or no answer. You you must provide both the rejection_statement and confirmation_prompt, or neither. Attributes are documented under prompt.

CreateVersion bool

Determines if a new slot type version is created when the initial resource is created and on each update. Defaults to false.

Description string

A description of the bot. Must be less than or equal to 200 characters in length.

DialogCodeHook IntentDialogCodeHookArgs

Specifies a Lambda function to invoke for each user input. You can invoke this Lambda function to personalize user interaction. Attributes are documented under code_hook.

FollowUpPrompt IntentFollowUpPromptArgs

Amazon Lex uses this prompt to solicit additional activity after fulfilling an intent. For example, after the OrderPizza intent is fulfilled, you might prompt the user to order a drink. The follow_up_prompt field and the conclusion_statement field are mutually exclusive. You can specify only one. Attributes are documented under follow_up_prompt.

Name string

The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length.

ParentIntentSignature string

A unique identifier for the built-in intent to base this intent on. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit.

RejectionStatement IntentRejectionStatementArgs

If the user answers "no" to the question defined in the prompt field, Amazon Lex responds with this statement to acknowledge that the intent was canceled. Attributes are documented below under statement.

SampleUtterances []string

If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.

Slots []IntentSlotArgs

An list of intent slots. At runtime, Amazon Lex elicits required slot values from the user using prompts defined in the slots. Attributes are documented under slot.

fulfillmentActivity IntentFulfillmentActivityArgs

Describes how the intent is fulfilled. For example, after a user provides all of the information for a pizza order, fulfillment_activity defines how the bot places an order with a local pizza store. Attributes are documented under fulfillment_activity.

conclusionStatement IntentConclusionStatementArgs

The statement that you want Amazon Lex to convey to the user after the intent is successfully fulfilled by the Lambda function. This element is relevant only if you provide a Lambda function in the fulfillment_activity. If you return the intent to the client application, you can't specify this element. The follow_up_prompt and conclusion_statement are mutually exclusive. You can specify only one. Attributes are documented under statement.

confirmationPrompt IntentConfirmationPromptArgs

Prompts the user to confirm the intent. This question should have a yes or no answer. You you must provide both the rejection_statement and confirmation_prompt, or neither. Attributes are documented under prompt.

createVersion Boolean

Determines if a new slot type version is created when the initial resource is created and on each update. Defaults to false.

description String

A description of the bot. Must be less than or equal to 200 characters in length.

dialogCodeHook IntentDialogCodeHookArgs

Specifies a Lambda function to invoke for each user input. You can invoke this Lambda function to personalize user interaction. Attributes are documented under code_hook.

followUpPrompt IntentFollowUpPromptArgs

Amazon Lex uses this prompt to solicit additional activity after fulfilling an intent. For example, after the OrderPizza intent is fulfilled, you might prompt the user to order a drink. The follow_up_prompt field and the conclusion_statement field are mutually exclusive. You can specify only one. Attributes are documented under follow_up_prompt.

name String

The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length.

parentIntentSignature String

A unique identifier for the built-in intent to base this intent on. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit.

rejectionStatement IntentRejectionStatementArgs

If the user answers "no" to the question defined in the prompt field, Amazon Lex responds with this statement to acknowledge that the intent was canceled. Attributes are documented below under statement.

sampleUtterances List<String>

If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.

slots List<IntentSlotArgs>

An list of intent slots. At runtime, Amazon Lex elicits required slot values from the user using prompts defined in the slots. Attributes are documented under slot.

fulfillmentActivity IntentFulfillmentActivityArgs

Describes how the intent is fulfilled. For example, after a user provides all of the information for a pizza order, fulfillment_activity defines how the bot places an order with a local pizza store. Attributes are documented under fulfillment_activity.

conclusionStatement IntentConclusionStatementArgs

The statement that you want Amazon Lex to convey to the user after the intent is successfully fulfilled by the Lambda function. This element is relevant only if you provide a Lambda function in the fulfillment_activity. If you return the intent to the client application, you can't specify this element. The follow_up_prompt and conclusion_statement are mutually exclusive. You can specify only one. Attributes are documented under statement.

confirmationPrompt IntentConfirmationPromptArgs

Prompts the user to confirm the intent. This question should have a yes or no answer. You you must provide both the rejection_statement and confirmation_prompt, or neither. Attributes are documented under prompt.

createVersion boolean

Determines if a new slot type version is created when the initial resource is created and on each update. Defaults to false.

description string

A description of the bot. Must be less than or equal to 200 characters in length.

dialogCodeHook IntentDialogCodeHookArgs

Specifies a Lambda function to invoke for each user input. You can invoke this Lambda function to personalize user interaction. Attributes are documented under code_hook.

followUpPrompt IntentFollowUpPromptArgs

Amazon Lex uses this prompt to solicit additional activity after fulfilling an intent. For example, after the OrderPizza intent is fulfilled, you might prompt the user to order a drink. The follow_up_prompt field and the conclusion_statement field are mutually exclusive. You can specify only one. Attributes are documented under follow_up_prompt.

name string

The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length.

parentIntentSignature string

A unique identifier for the built-in intent to base this intent on. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit.

rejectionStatement IntentRejectionStatementArgs

If the user answers "no" to the question defined in the prompt field, Amazon Lex responds with this statement to acknowledge that the intent was canceled. Attributes are documented below under statement.

sampleUtterances string[]

If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.

slots IntentSlotArgs[]

An list of intent slots. At runtime, Amazon Lex elicits required slot values from the user using prompts defined in the slots. Attributes are documented under slot.

fulfillment_activity IntentFulfillmentActivityArgs

Describes how the intent is fulfilled. For example, after a user provides all of the information for a pizza order, fulfillment_activity defines how the bot places an order with a local pizza store. Attributes are documented under fulfillment_activity.

conclusion_statement IntentConclusionStatementArgs

The statement that you want Amazon Lex to convey to the user after the intent is successfully fulfilled by the Lambda function. This element is relevant only if you provide a Lambda function in the fulfillment_activity. If you return the intent to the client application, you can't specify this element. The follow_up_prompt and conclusion_statement are mutually exclusive. You can specify only one. Attributes are documented under statement.

confirmation_prompt IntentConfirmationPromptArgs

Prompts the user to confirm the intent. This question should have a yes or no answer. You you must provide both the rejection_statement and confirmation_prompt, or neither. Attributes are documented under prompt.

create_version bool

Determines if a new slot type version is created when the initial resource is created and on each update. Defaults to false.

description str

A description of the bot. Must be less than or equal to 200 characters in length.

dialog_code_hook IntentDialogCodeHookArgs

Specifies a Lambda function to invoke for each user input. You can invoke this Lambda function to personalize user interaction. Attributes are documented under code_hook.

follow_up_prompt IntentFollowUpPromptArgs

Amazon Lex uses this prompt to solicit additional activity after fulfilling an intent. For example, after the OrderPizza intent is fulfilled, you might prompt the user to order a drink. The follow_up_prompt field and the conclusion_statement field are mutually exclusive. You can specify only one. Attributes are documented under follow_up_prompt.

name str

The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length.

parent_intent_signature str

A unique identifier for the built-in intent to base this intent on. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit.

rejection_statement IntentRejectionStatementArgs

If the user answers "no" to the question defined in the prompt field, Amazon Lex responds with this statement to acknowledge that the intent was canceled. Attributes are documented below under statement.

sample_utterances Sequence[str]

If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.

slots Sequence[IntentSlotArgs]

An list of intent slots. At runtime, Amazon Lex elicits required slot values from the user using prompts defined in the slots. Attributes are documented under slot.

fulfillmentActivity Property Map

Describes how the intent is fulfilled. For example, after a user provides all of the information for a pizza order, fulfillment_activity defines how the bot places an order with a local pizza store. Attributes are documented under fulfillment_activity.

conclusionStatement Property Map

The statement that you want Amazon Lex to convey to the user after the intent is successfully fulfilled by the Lambda function. This element is relevant only if you provide a Lambda function in the fulfillment_activity. If you return the intent to the client application, you can't specify this element. The follow_up_prompt and conclusion_statement are mutually exclusive. You can specify only one. Attributes are documented under statement.

confirmationPrompt Property Map

Prompts the user to confirm the intent. This question should have a yes or no answer. You you must provide both the rejection_statement and confirmation_prompt, or neither. Attributes are documented under prompt.

createVersion Boolean

Determines if a new slot type version is created when the initial resource is created and on each update. Defaults to false.

description String

A description of the bot. Must be less than or equal to 200 characters in length.

dialogCodeHook Property Map

Specifies a Lambda function to invoke for each user input. You can invoke this Lambda function to personalize user interaction. Attributes are documented under code_hook.

followUpPrompt Property Map

Amazon Lex uses this prompt to solicit additional activity after fulfilling an intent. For example, after the OrderPizza intent is fulfilled, you might prompt the user to order a drink. The follow_up_prompt field and the conclusion_statement field are mutually exclusive. You can specify only one. Attributes are documented under follow_up_prompt.

name String

The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length.

parentIntentSignature String

A unique identifier for the built-in intent to base this intent on. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit.

rejectionStatement Property Map

If the user answers "no" to the question defined in the prompt field, Amazon Lex responds with this statement to acknowledge that the intent was canceled. Attributes are documented below under statement.

sampleUtterances List<String>

If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.

slots List<Property Map>

An list of intent slots. At runtime, Amazon Lex elicits required slot values from the user using prompts defined in the slots. Attributes are documented under slot.

Outputs

All input properties are implicitly available as output properties. Additionally, the Intent resource produces the following output properties:

Arn string

The ARN of the Lex intent.

Checksum string

Checksum identifying the version of the intent that was created. The checksum is not included as an argument because the resource will add it automatically when updating the intent.

CreatedDate string

The date when the intent version was created.

Id string

The provider-assigned unique ID for this managed resource.

LastUpdatedDate string

The date when the $LATEST version of this intent was updated.

Version string

The version of the bot.

Arn string

The ARN of the Lex intent.

Checksum string

Checksum identifying the version of the intent that was created. The checksum is not included as an argument because the resource will add it automatically when updating the intent.

CreatedDate string

The date when the intent version was created.

Id string

The provider-assigned unique ID for this managed resource.

LastUpdatedDate string

The date when the $LATEST version of this intent was updated.

Version string

The version of the bot.

arn String

The ARN of the Lex intent.

checksum String

Checksum identifying the version of the intent that was created. The checksum is not included as an argument because the resource will add it automatically when updating the intent.

createdDate String

The date when the intent version was created.

id String

The provider-assigned unique ID for this managed resource.

lastUpdatedDate String

The date when the $LATEST version of this intent was updated.

version String

The version of the bot.

arn string

The ARN of the Lex intent.

checksum string

Checksum identifying the version of the intent that was created. The checksum is not included as an argument because the resource will add it automatically when updating the intent.

createdDate string

The date when the intent version was created.

id string

The provider-assigned unique ID for this managed resource.

lastUpdatedDate string

The date when the $LATEST version of this intent was updated.

version string

The version of the bot.

arn str

The ARN of the Lex intent.

checksum str

Checksum identifying the version of the intent that was created. The checksum is not included as an argument because the resource will add it automatically when updating the intent.

created_date str

The date when the intent version was created.

id str

The provider-assigned unique ID for this managed resource.

last_updated_date str

The date when the $LATEST version of this intent was updated.

version str

The version of the bot.

arn String

The ARN of the Lex intent.

checksum String

Checksum identifying the version of the intent that was created. The checksum is not included as an argument because the resource will add it automatically when updating the intent.

createdDate String

The date when the intent version was created.

id String

The provider-assigned unique ID for this managed resource.

lastUpdatedDate String

The date when the $LATEST version of this intent was updated.

version String

The version of the bot.

Look up Existing Intent Resource

Get an existing Intent resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: IntentState, opts?: CustomResourceOptions): Intent
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        checksum: Optional[str] = None,
        conclusion_statement: Optional[IntentConclusionStatementArgs] = None,
        confirmation_prompt: Optional[IntentConfirmationPromptArgs] = None,
        create_version: Optional[bool] = None,
        created_date: Optional[str] = None,
        description: Optional[str] = None,
        dialog_code_hook: Optional[IntentDialogCodeHookArgs] = None,
        follow_up_prompt: Optional[IntentFollowUpPromptArgs] = None,
        fulfillment_activity: Optional[IntentFulfillmentActivityArgs] = None,
        last_updated_date: Optional[str] = None,
        name: Optional[str] = None,
        parent_intent_signature: Optional[str] = None,
        rejection_statement: Optional[IntentRejectionStatementArgs] = None,
        sample_utterances: Optional[Sequence[str]] = None,
        slots: Optional[Sequence[IntentSlotArgs]] = None,
        version: Optional[str] = None) -> Intent
func GetIntent(ctx *Context, name string, id IDInput, state *IntentState, opts ...ResourceOption) (*Intent, error)
public static Intent Get(string name, Input<string> id, IntentState? state, CustomResourceOptions? opts = null)
public static Intent get(String name, Output<String> id, IntentState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Arn string

The ARN of the Lex intent.

Checksum string

Checksum identifying the version of the intent that was created. The checksum is not included as an argument because the resource will add it automatically when updating the intent.

ConclusionStatement IntentConclusionStatementArgs

The statement that you want Amazon Lex to convey to the user after the intent is successfully fulfilled by the Lambda function. This element is relevant only if you provide a Lambda function in the fulfillment_activity. If you return the intent to the client application, you can't specify this element. The follow_up_prompt and conclusion_statement are mutually exclusive. You can specify only one. Attributes are documented under statement.

ConfirmationPrompt IntentConfirmationPromptArgs

Prompts the user to confirm the intent. This question should have a yes or no answer. You you must provide both the rejection_statement and confirmation_prompt, or neither. Attributes are documented under prompt.

CreateVersion bool

Determines if a new slot type version is created when the initial resource is created and on each update. Defaults to false.

CreatedDate string

The date when the intent version was created.

Description string

A description of the bot. Must be less than or equal to 200 characters in length.

DialogCodeHook IntentDialogCodeHookArgs

Specifies a Lambda function to invoke for each user input. You can invoke this Lambda function to personalize user interaction. Attributes are documented under code_hook.

FollowUpPrompt IntentFollowUpPromptArgs

Amazon Lex uses this prompt to solicit additional activity after fulfilling an intent. For example, after the OrderPizza intent is fulfilled, you might prompt the user to order a drink. The follow_up_prompt field and the conclusion_statement field are mutually exclusive. You can specify only one. Attributes are documented under follow_up_prompt.

FulfillmentActivity IntentFulfillmentActivityArgs

Describes how the intent is fulfilled. For example, after a user provides all of the information for a pizza order, fulfillment_activity defines how the bot places an order with a local pizza store. Attributes are documented under fulfillment_activity.

LastUpdatedDate string

The date when the $LATEST version of this intent was updated.

Name string

The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length.

ParentIntentSignature string

A unique identifier for the built-in intent to base this intent on. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit.

RejectionStatement IntentRejectionStatementArgs

If the user answers "no" to the question defined in the prompt field, Amazon Lex responds with this statement to acknowledge that the intent was canceled. Attributes are documented below under statement.

SampleUtterances List<string>

If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.

Slots List<IntentSlotArgs>

An list of intent slots. At runtime, Amazon Lex elicits required slot values from the user using prompts defined in the slots. Attributes are documented under slot.

Version string

The version of the bot.

Arn string

The ARN of the Lex intent.

Checksum string

Checksum identifying the version of the intent that was created. The checksum is not included as an argument because the resource will add it automatically when updating the intent.

ConclusionStatement IntentConclusionStatementArgs

The statement that you want Amazon Lex to convey to the user after the intent is successfully fulfilled by the Lambda function. This element is relevant only if you provide a Lambda function in the fulfillment_activity. If you return the intent to the client application, you can't specify this element. The follow_up_prompt and conclusion_statement are mutually exclusive. You can specify only one. Attributes are documented under statement.

ConfirmationPrompt IntentConfirmationPromptArgs

Prompts the user to confirm the intent. This question should have a yes or no answer. You you must provide both the rejection_statement and confirmation_prompt, or neither. Attributes are documented under prompt.

CreateVersion bool

Determines if a new slot type version is created when the initial resource is created and on each update. Defaults to false.

CreatedDate string

The date when the intent version was created.

Description string

A description of the bot. Must be less than or equal to 200 characters in length.

DialogCodeHook IntentDialogCodeHookArgs

Specifies a Lambda function to invoke for each user input. You can invoke this Lambda function to personalize user interaction. Attributes are documented under code_hook.

FollowUpPrompt IntentFollowUpPromptArgs

Amazon Lex uses this prompt to solicit additional activity after fulfilling an intent. For example, after the OrderPizza intent is fulfilled, you might prompt the user to order a drink. The follow_up_prompt field and the conclusion_statement field are mutually exclusive. You can specify only one. Attributes are documented under follow_up_prompt.

FulfillmentActivity IntentFulfillmentActivityArgs

Describes how the intent is fulfilled. For example, after a user provides all of the information for a pizza order, fulfillment_activity defines how the bot places an order with a local pizza store. Attributes are documented under fulfillment_activity.

LastUpdatedDate string

The date when the $LATEST version of this intent was updated.

Name string

The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length.

ParentIntentSignature string

A unique identifier for the built-in intent to base this intent on. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit.

RejectionStatement IntentRejectionStatementArgs

If the user answers "no" to the question defined in the prompt field, Amazon Lex responds with this statement to acknowledge that the intent was canceled. Attributes are documented below under statement.

SampleUtterances []string

If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.

Slots []IntentSlotArgs

An list of intent slots. At runtime, Amazon Lex elicits required slot values from the user using prompts defined in the slots. Attributes are documented under slot.

Version string

The version of the bot.

arn String

The ARN of the Lex intent.

checksum String

Checksum identifying the version of the intent that was created. The checksum is not included as an argument because the resource will add it automatically when updating the intent.

conclusionStatement IntentConclusionStatementArgs

The statement that you want Amazon Lex to convey to the user after the intent is successfully fulfilled by the Lambda function. This element is relevant only if you provide a Lambda function in the fulfillment_activity. If you return the intent to the client application, you can't specify this element. The follow_up_prompt and conclusion_statement are mutually exclusive. You can specify only one. Attributes are documented under statement.

confirmationPrompt IntentConfirmationPromptArgs

Prompts the user to confirm the intent. This question should have a yes or no answer. You you must provide both the rejection_statement and confirmation_prompt, or neither. Attributes are documented under prompt.

createVersion Boolean

Determines if a new slot type version is created when the initial resource is created and on each update. Defaults to false.

createdDate String

The date when the intent version was created.

description String

A description of the bot. Must be less than or equal to 200 characters in length.

dialogCodeHook IntentDialogCodeHookArgs

Specifies a Lambda function to invoke for each user input. You can invoke this Lambda function to personalize user interaction. Attributes are documented under code_hook.

followUpPrompt IntentFollowUpPromptArgs

Amazon Lex uses this prompt to solicit additional activity after fulfilling an intent. For example, after the OrderPizza intent is fulfilled, you might prompt the user to order a drink. The follow_up_prompt field and the conclusion_statement field are mutually exclusive. You can specify only one. Attributes are documented under follow_up_prompt.

fulfillmentActivity IntentFulfillmentActivityArgs

Describes how the intent is fulfilled. For example, after a user provides all of the information for a pizza order, fulfillment_activity defines how the bot places an order with a local pizza store. Attributes are documented under fulfillment_activity.

lastUpdatedDate String

The date when the $LATEST version of this intent was updated.

name String

The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length.

parentIntentSignature String

A unique identifier for the built-in intent to base this intent on. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit.

rejectionStatement IntentRejectionStatementArgs

If the user answers "no" to the question defined in the prompt field, Amazon Lex responds with this statement to acknowledge that the intent was canceled. Attributes are documented below under statement.

sampleUtterances List<String>

If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.

slots List<IntentSlotArgs>

An list of intent slots. At runtime, Amazon Lex elicits required slot values from the user using prompts defined in the slots. Attributes are documented under slot.

version String

The version of the bot.

arn string

The ARN of the Lex intent.

checksum string

Checksum identifying the version of the intent that was created. The checksum is not included as an argument because the resource will add it automatically when updating the intent.

conclusionStatement IntentConclusionStatementArgs

The statement that you want Amazon Lex to convey to the user after the intent is successfully fulfilled by the Lambda function. This element is relevant only if you provide a Lambda function in the fulfillment_activity. If you return the intent to the client application, you can't specify this element. The follow_up_prompt and conclusion_statement are mutually exclusive. You can specify only one. Attributes are documented under statement.

confirmationPrompt IntentConfirmationPromptArgs

Prompts the user to confirm the intent. This question should have a yes or no answer. You you must provide both the rejection_statement and confirmation_prompt, or neither. Attributes are documented under prompt.

createVersion boolean

Determines if a new slot type version is created when the initial resource is created and on each update. Defaults to false.

createdDate string

The date when the intent version was created.

description string

A description of the bot. Must be less than or equal to 200 characters in length.

dialogCodeHook IntentDialogCodeHookArgs

Specifies a Lambda function to invoke for each user input. You can invoke this Lambda function to personalize user interaction. Attributes are documented under code_hook.

followUpPrompt IntentFollowUpPromptArgs

Amazon Lex uses this prompt to solicit additional activity after fulfilling an intent. For example, after the OrderPizza intent is fulfilled, you might prompt the user to order a drink. The follow_up_prompt field and the conclusion_statement field are mutually exclusive. You can specify only one. Attributes are documented under follow_up_prompt.

fulfillmentActivity IntentFulfillmentActivityArgs

Describes how the intent is fulfilled. For example, after a user provides all of the information for a pizza order, fulfillment_activity defines how the bot places an order with a local pizza store. Attributes are documented under fulfillment_activity.

lastUpdatedDate string

The date when the $LATEST version of this intent was updated.

name string

The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length.

parentIntentSignature string

A unique identifier for the built-in intent to base this intent on. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit.

rejectionStatement IntentRejectionStatementArgs

If the user answers "no" to the question defined in the prompt field, Amazon Lex responds with this statement to acknowledge that the intent was canceled. Attributes are documented below under statement.

sampleUtterances string[]

If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.

slots IntentSlotArgs[]

An list of intent slots. At runtime, Amazon Lex elicits required slot values from the user using prompts defined in the slots. Attributes are documented under slot.

version string

The version of the bot.

arn str

The ARN of the Lex intent.

checksum str

Checksum identifying the version of the intent that was created. The checksum is not included as an argument because the resource will add it automatically when updating the intent.

conclusion_statement IntentConclusionStatementArgs

The statement that you want Amazon Lex to convey to the user after the intent is successfully fulfilled by the Lambda function. This element is relevant only if you provide a Lambda function in the fulfillment_activity. If you return the intent to the client application, you can't specify this element. The follow_up_prompt and conclusion_statement are mutually exclusive. You can specify only one. Attributes are documented under statement.

confirmation_prompt IntentConfirmationPromptArgs

Prompts the user to confirm the intent. This question should have a yes or no answer. You you must provide both the rejection_statement and confirmation_prompt, or neither. Attributes are documented under prompt.

create_version bool

Determines if a new slot type version is created when the initial resource is created and on each update. Defaults to false.

created_date str

The date when the intent version was created.

description str

A description of the bot. Must be less than or equal to 200 characters in length.

dialog_code_hook IntentDialogCodeHookArgs

Specifies a Lambda function to invoke for each user input. You can invoke this Lambda function to personalize user interaction. Attributes are documented under code_hook.

follow_up_prompt IntentFollowUpPromptArgs

Amazon Lex uses this prompt to solicit additional activity after fulfilling an intent. For example, after the OrderPizza intent is fulfilled, you might prompt the user to order a drink. The follow_up_prompt field and the conclusion_statement field are mutually exclusive. You can specify only one. Attributes are documented under follow_up_prompt.

fulfillment_activity IntentFulfillmentActivityArgs

Describes how the intent is fulfilled. For example, after a user provides all of the information for a pizza order, fulfillment_activity defines how the bot places an order with a local pizza store. Attributes are documented under fulfillment_activity.

last_updated_date str

The date when the $LATEST version of this intent was updated.

name str

The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length.

parent_intent_signature str

A unique identifier for the built-in intent to base this intent on. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit.

rejection_statement IntentRejectionStatementArgs

If the user answers "no" to the question defined in the prompt field, Amazon Lex responds with this statement to acknowledge that the intent was canceled. Attributes are documented below under statement.

sample_utterances Sequence[str]

If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.

slots Sequence[IntentSlotArgs]

An list of intent slots. At runtime, Amazon Lex elicits required slot values from the user using prompts defined in the slots. Attributes are documented under slot.

version str

The version of the bot.

arn String

The ARN of the Lex intent.

checksum String

Checksum identifying the version of the intent that was created. The checksum is not included as an argument because the resource will add it automatically when updating the intent.

conclusionStatement Property Map

The statement that you want Amazon Lex to convey to the user after the intent is successfully fulfilled by the Lambda function. This element is relevant only if you provide a Lambda function in the fulfillment_activity. If you return the intent to the client application, you can't specify this element. The follow_up_prompt and conclusion_statement are mutually exclusive. You can specify only one. Attributes are documented under statement.

confirmationPrompt Property Map

Prompts the user to confirm the intent. This question should have a yes or no answer. You you must provide both the rejection_statement and confirmation_prompt, or neither. Attributes are documented under prompt.

createVersion Boolean

Determines if a new slot type version is created when the initial resource is created and on each update. Defaults to false.

createdDate String

The date when the intent version was created.

description String

A description of the bot. Must be less than or equal to 200 characters in length.

dialogCodeHook Property Map

Specifies a Lambda function to invoke for each user input. You can invoke this Lambda function to personalize user interaction. Attributes are documented under code_hook.

followUpPrompt Property Map

Amazon Lex uses this prompt to solicit additional activity after fulfilling an intent. For example, after the OrderPizza intent is fulfilled, you might prompt the user to order a drink. The follow_up_prompt field and the conclusion_statement field are mutually exclusive. You can specify only one. Attributes are documented under follow_up_prompt.

fulfillmentActivity Property Map

Describes how the intent is fulfilled. For example, after a user provides all of the information for a pizza order, fulfillment_activity defines how the bot places an order with a local pizza store. Attributes are documented under fulfillment_activity.

lastUpdatedDate String

The date when the $LATEST version of this intent was updated.

name String

The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length.

parentIntentSignature String

A unique identifier for the built-in intent to base this intent on. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit.

rejectionStatement Property Map

If the user answers "no" to the question defined in the prompt field, Amazon Lex responds with this statement to acknowledge that the intent was canceled. Attributes are documented below under statement.

sampleUtterances List<String>

If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.

slots List<Property Map>

An list of intent slots. At runtime, Amazon Lex elicits required slot values from the user using prompts defined in the slots. Attributes are documented under slot.

version String

The version of the bot.

Supporting Types

IntentConclusionStatement

Messages List<IntentConclusionStatementMessage>

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

ResponseCard string

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

Messages []IntentConclusionStatementMessage

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

ResponseCard string

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

messages List<IntentConclusionStatementMessage>

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

responseCard String

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

messages IntentConclusionStatementMessage[]

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

responseCard string

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

messages Sequence[IntentConclusionStatementMessage]

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

response_card str

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

messages List<Property Map>

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

responseCard String

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

IntentConclusionStatementMessage

Content string

The text of the message. Must be less than or equal to 1000 characters in length.

ContentType string

The content type of the message string.

GroupNumber int

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

Content string

The text of the message. Must be less than or equal to 1000 characters in length.

ContentType string

The content type of the message string.

GroupNumber int

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

content String

The text of the message. Must be less than or equal to 1000 characters in length.

contentType String

The content type of the message string.

groupNumber Integer

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

content string

The text of the message. Must be less than or equal to 1000 characters in length.

contentType string

The content type of the message string.

groupNumber number

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

content str

The text of the message. Must be less than or equal to 1000 characters in length.

content_type str

The content type of the message string.

group_number int

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

content String

The text of the message. Must be less than or equal to 1000 characters in length.

contentType String

The content type of the message string.

groupNumber Number

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

IntentConfirmationPrompt

MaxAttempts int

The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).

Messages List<IntentConfirmationPromptMessage>

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

ResponseCard string

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

MaxAttempts int

The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).

Messages []IntentConfirmationPromptMessage

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

ResponseCard string

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

maxAttempts Integer

The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).

messages List<IntentConfirmationPromptMessage>

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

responseCard String

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

maxAttempts number

The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).

messages IntentConfirmationPromptMessage[]

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

responseCard string

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

max_attempts int

The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).

messages Sequence[IntentConfirmationPromptMessage]

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

response_card str

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

maxAttempts Number

The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).

messages List<Property Map>

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

responseCard String

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

IntentConfirmationPromptMessage

Content string

The text of the message. Must be less than or equal to 1000 characters in length.

ContentType string

The content type of the message string.

GroupNumber int

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

Content string

The text of the message. Must be less than or equal to 1000 characters in length.

ContentType string

The content type of the message string.

GroupNumber int

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

content String

The text of the message. Must be less than or equal to 1000 characters in length.

contentType String

The content type of the message string.

groupNumber Integer

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

content string

The text of the message. Must be less than or equal to 1000 characters in length.

contentType string

The content type of the message string.

groupNumber number

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

content str

The text of the message. Must be less than or equal to 1000 characters in length.

content_type str

The content type of the message string.

group_number int

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

content String

The text of the message. Must be less than or equal to 1000 characters in length.

contentType String

The content type of the message string.

groupNumber Number

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

IntentDialogCodeHook

MessageVersion string

The version of the request-response that you want Amazon Lex to use to invoke your Lambda function. For more information, see Using Lambda Functions. Must be less than or equal to 5 characters in length.

Uri string

The Amazon Resource Name (ARN) of the Lambda function.

MessageVersion string

The version of the request-response that you want Amazon Lex to use to invoke your Lambda function. For more information, see Using Lambda Functions. Must be less than or equal to 5 characters in length.

Uri string

The Amazon Resource Name (ARN) of the Lambda function.

messageVersion String

The version of the request-response that you want Amazon Lex to use to invoke your Lambda function. For more information, see Using Lambda Functions. Must be less than or equal to 5 characters in length.

uri String

The Amazon Resource Name (ARN) of the Lambda function.

messageVersion string

The version of the request-response that you want Amazon Lex to use to invoke your Lambda function. For more information, see Using Lambda Functions. Must be less than or equal to 5 characters in length.

uri string

The Amazon Resource Name (ARN) of the Lambda function.

message_version str

The version of the request-response that you want Amazon Lex to use to invoke your Lambda function. For more information, see Using Lambda Functions. Must be less than or equal to 5 characters in length.

uri str

The Amazon Resource Name (ARN) of the Lambda function.

messageVersion String

The version of the request-response that you want Amazon Lex to use to invoke your Lambda function. For more information, see Using Lambda Functions. Must be less than or equal to 5 characters in length.

uri String

The Amazon Resource Name (ARN) of the Lambda function.

IntentFollowUpPrompt

Prompt IntentFollowUpPromptPrompt

Prompts for information from the user. Attributes are documented under prompt.

RejectionStatement IntentFollowUpPromptRejectionStatement

If the user answers "no" to the question defined in the prompt field, Amazon Lex responds with this statement to acknowledge that the intent was canceled. Attributes are documented below under statement.

Prompt IntentFollowUpPromptPrompt

Prompts for information from the user. Attributes are documented under prompt.

RejectionStatement IntentFollowUpPromptRejectionStatement

If the user answers "no" to the question defined in the prompt field, Amazon Lex responds with this statement to acknowledge that the intent was canceled. Attributes are documented below under statement.

prompt IntentFollowUpPromptPrompt

Prompts for information from the user. Attributes are documented under prompt.

rejectionStatement IntentFollowUpPromptRejectionStatement

If the user answers "no" to the question defined in the prompt field, Amazon Lex responds with this statement to acknowledge that the intent was canceled. Attributes are documented below under statement.

prompt IntentFollowUpPromptPrompt

Prompts for information from the user. Attributes are documented under prompt.

rejectionStatement IntentFollowUpPromptRejectionStatement

If the user answers "no" to the question defined in the prompt field, Amazon Lex responds with this statement to acknowledge that the intent was canceled. Attributes are documented below under statement.

prompt IntentFollowUpPromptPrompt

Prompts for information from the user. Attributes are documented under prompt.

rejection_statement IntentFollowUpPromptRejectionStatement

If the user answers "no" to the question defined in the prompt field, Amazon Lex responds with this statement to acknowledge that the intent was canceled. Attributes are documented below under statement.

prompt Property Map

Prompts for information from the user. Attributes are documented under prompt.

rejectionStatement Property Map

If the user answers "no" to the question defined in the prompt field, Amazon Lex responds with this statement to acknowledge that the intent was canceled. Attributes are documented below under statement.

IntentFollowUpPromptPrompt

MaxAttempts int

The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).

Messages List<IntentFollowUpPromptPromptMessage>

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

ResponseCard string

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

MaxAttempts int

The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).

Messages []IntentFollowUpPromptPromptMessage

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

ResponseCard string

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

maxAttempts Integer

The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).

messages List<IntentFollowUpPromptPromptMessage>

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

responseCard String

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

maxAttempts number

The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).

messages IntentFollowUpPromptPromptMessage[]

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

responseCard string

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

max_attempts int

The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).

messages Sequence[IntentFollowUpPromptPromptMessage]

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

response_card str

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

maxAttempts Number

The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).

messages List<Property Map>

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

responseCard String

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

IntentFollowUpPromptPromptMessage

Content string

The text of the message. Must be less than or equal to 1000 characters in length.

ContentType string

The content type of the message string.

GroupNumber int

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

Content string

The text of the message. Must be less than or equal to 1000 characters in length.

ContentType string

The content type of the message string.

GroupNumber int

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

content String

The text of the message. Must be less than or equal to 1000 characters in length.

contentType String

The content type of the message string.

groupNumber Integer

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

content string

The text of the message. Must be less than or equal to 1000 characters in length.

contentType string

The content type of the message string.

groupNumber number

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

content str

The text of the message. Must be less than or equal to 1000 characters in length.

content_type str

The content type of the message string.

group_number int

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

content String

The text of the message. Must be less than or equal to 1000 characters in length.

contentType String

The content type of the message string.

groupNumber Number

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

IntentFollowUpPromptRejectionStatement

Messages List<IntentFollowUpPromptRejectionStatementMessage>

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

ResponseCard string

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

Messages []IntentFollowUpPromptRejectionStatementMessage

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

ResponseCard string

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

messages List<IntentFollowUpPromptRejectionStatementMessage>

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

responseCard String

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

messages IntentFollowUpPromptRejectionStatementMessage[]

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

responseCard string

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

messages Sequence[IntentFollowUpPromptRejectionStatementMessage]

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

response_card str

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

messages List<Property Map>

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

responseCard String

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

IntentFollowUpPromptRejectionStatementMessage

Content string

The text of the message. Must be less than or equal to 1000 characters in length.

ContentType string

The content type of the message string.

GroupNumber int

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

Content string

The text of the message. Must be less than or equal to 1000 characters in length.

ContentType string

The content type of the message string.

GroupNumber int

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

content String

The text of the message. Must be less than or equal to 1000 characters in length.

contentType String

The content type of the message string.

groupNumber Integer

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

content string

The text of the message. Must be less than or equal to 1000 characters in length.

contentType string

The content type of the message string.

groupNumber number

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

content str

The text of the message. Must be less than or equal to 1000 characters in length.

content_type str

The content type of the message string.

group_number int

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

content String

The text of the message. Must be less than or equal to 1000 characters in length.

contentType String

The content type of the message string.

groupNumber Number

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

IntentFulfillmentActivity

Type string

How the intent should be fulfilled, either by running a Lambda function or by returning the slot data to the client application. Type can be either ReturnIntent or CodeHook, as documented here.

CodeHook IntentFulfillmentActivityCodeHook

A description of the Lambda function that is run to fulfill the intent. Required if type is CodeHook. Attributes are documented under code_hook.

Type string

How the intent should be fulfilled, either by running a Lambda function or by returning the slot data to the client application. Type can be either ReturnIntent or CodeHook, as documented here.

CodeHook IntentFulfillmentActivityCodeHook

A description of the Lambda function that is run to fulfill the intent. Required if type is CodeHook. Attributes are documented under code_hook.

type String

How the intent should be fulfilled, either by running a Lambda function or by returning the slot data to the client application. Type can be either ReturnIntent or CodeHook, as documented here.

codeHook IntentFulfillmentActivityCodeHook

A description of the Lambda function that is run to fulfill the intent. Required if type is CodeHook. Attributes are documented under code_hook.

type string

How the intent should be fulfilled, either by running a Lambda function or by returning the slot data to the client application. Type can be either ReturnIntent or CodeHook, as documented here.

codeHook IntentFulfillmentActivityCodeHook

A description of the Lambda function that is run to fulfill the intent. Required if type is CodeHook. Attributes are documented under code_hook.

type str

How the intent should be fulfilled, either by running a Lambda function or by returning the slot data to the client application. Type can be either ReturnIntent or CodeHook, as documented here.

code_hook IntentFulfillmentActivityCodeHook

A description of the Lambda function that is run to fulfill the intent. Required if type is CodeHook. Attributes are documented under code_hook.

type String

How the intent should be fulfilled, either by running a Lambda function or by returning the slot data to the client application. Type can be either ReturnIntent or CodeHook, as documented here.

codeHook Property Map

A description of the Lambda function that is run to fulfill the intent. Required if type is CodeHook. Attributes are documented under code_hook.

IntentFulfillmentActivityCodeHook

MessageVersion string

The version of the request-response that you want Amazon Lex to use to invoke your Lambda function. For more information, see Using Lambda Functions. Must be less than or equal to 5 characters in length.

Uri string

The Amazon Resource Name (ARN) of the Lambda function.

MessageVersion string

The version of the request-response that you want Amazon Lex to use to invoke your Lambda function. For more information, see Using Lambda Functions. Must be less than or equal to 5 characters in length.

Uri string

The Amazon Resource Name (ARN) of the Lambda function.

messageVersion String

The version of the request-response that you want Amazon Lex to use to invoke your Lambda function. For more information, see Using Lambda Functions. Must be less than or equal to 5 characters in length.

uri String

The Amazon Resource Name (ARN) of the Lambda function.

messageVersion string

The version of the request-response that you want Amazon Lex to use to invoke your Lambda function. For more information, see Using Lambda Functions. Must be less than or equal to 5 characters in length.

uri string

The Amazon Resource Name (ARN) of the Lambda function.

message_version str

The version of the request-response that you want Amazon Lex to use to invoke your Lambda function. For more information, see Using Lambda Functions. Must be less than or equal to 5 characters in length.

uri str

The Amazon Resource Name (ARN) of the Lambda function.

messageVersion String

The version of the request-response that you want Amazon Lex to use to invoke your Lambda function. For more information, see Using Lambda Functions. Must be less than or equal to 5 characters in length.

uri String

The Amazon Resource Name (ARN) of the Lambda function.

IntentRejectionStatement

Messages List<IntentRejectionStatementMessage>

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

ResponseCard string

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

Messages []IntentRejectionStatementMessage

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

ResponseCard string

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

messages List<IntentRejectionStatementMessage>

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

responseCard String

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

messages IntentRejectionStatementMessage[]

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

responseCard string

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

messages Sequence[IntentRejectionStatementMessage]

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

response_card str

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

messages List<Property Map>

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

responseCard String

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

IntentRejectionStatementMessage

Content string

The text of the message. Must be less than or equal to 1000 characters in length.

ContentType string

The content type of the message string.

GroupNumber int

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

Content string

The text of the message. Must be less than or equal to 1000 characters in length.

ContentType string

The content type of the message string.

GroupNumber int

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

content String

The text of the message. Must be less than or equal to 1000 characters in length.

contentType String

The content type of the message string.

groupNumber Integer

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

content string

The text of the message. Must be less than or equal to 1000 characters in length.

contentType string

The content type of the message string.

groupNumber number

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

content str

The text of the message. Must be less than or equal to 1000 characters in length.

content_type str

The content type of the message string.

group_number int

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

content String

The text of the message. Must be less than or equal to 1000 characters in length.

contentType String

The content type of the message string.

groupNumber Number

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

IntentSlot

Name string

The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length.

SlotConstraint string

Specifies whether the slot is required or optional.

SlotType string

The type of the slot, either a custom slot type that you defined or one of the built-in slot types. Must be less than or equal to 100 characters in length.

Description string

A description of the bot. Must be less than or equal to 200 characters in length.

Priority int

Directs Lex the order in which to elicit this slot value from the user. For example, if the intent has two slots with priorities 1 and 2, AWS Lex first elicits a value for the slot with priority 1. If multiple slots share the same priority, the order in which Lex elicits values is arbitrary. Must be between 1 and 100.

ResponseCard string

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

SampleUtterances List<string>

If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.

SlotTypeVersion string

The version of the slot type. Must be less than or equal to 64 characters in length.

ValueElicitationPrompt IntentSlotValueElicitationPrompt

The prompt that Amazon Lex uses to elicit the slot value from the user. Attributes are documented under prompt.

Name string

The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length.

SlotConstraint string

Specifies whether the slot is required or optional.

SlotType string

The type of the slot, either a custom slot type that you defined or one of the built-in slot types. Must be less than or equal to 100 characters in length.

Description string

A description of the bot. Must be less than or equal to 200 characters in length.

Priority int

Directs Lex the order in which to elicit this slot value from the user. For example, if the intent has two slots with priorities 1 and 2, AWS Lex first elicits a value for the slot with priority 1. If multiple slots share the same priority, the order in which Lex elicits values is arbitrary. Must be between 1 and 100.

ResponseCard string

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

SampleUtterances []string

If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.

SlotTypeVersion string

The version of the slot type. Must be less than or equal to 64 characters in length.

ValueElicitationPrompt IntentSlotValueElicitationPrompt

The prompt that Amazon Lex uses to elicit the slot value from the user. Attributes are documented under prompt.

name String

The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length.

slotConstraint String

Specifies whether the slot is required or optional.

slotType String

The type of the slot, either a custom slot type that you defined or one of the built-in slot types. Must be less than or equal to 100 characters in length.

description String

A description of the bot. Must be less than or equal to 200 characters in length.

priority Integer

Directs Lex the order in which to elicit this slot value from the user. For example, if the intent has two slots with priorities 1 and 2, AWS Lex first elicits a value for the slot with priority 1. If multiple slots share the same priority, the order in which Lex elicits values is arbitrary. Must be between 1 and 100.

responseCard String

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

sampleUtterances List<String>

If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.

slotTypeVersion String

The version of the slot type. Must be less than or equal to 64 characters in length.

valueElicitationPrompt IntentSlotValueElicitationPrompt

The prompt that Amazon Lex uses to elicit the slot value from the user. Attributes are documented under prompt.

name string

The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length.

slotConstraint string

Specifies whether the slot is required or optional.

slotType string

The type of the slot, either a custom slot type that you defined or one of the built-in slot types. Must be less than or equal to 100 characters in length.

description string

A description of the bot. Must be less than or equal to 200 characters in length.

priority number

Directs Lex the order in which to elicit this slot value from the user. For example, if the intent has two slots with priorities 1 and 2, AWS Lex first elicits a value for the slot with priority 1. If multiple slots share the same priority, the order in which Lex elicits values is arbitrary. Must be between 1 and 100.

responseCard string

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

sampleUtterances string[]

If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.

slotTypeVersion string

The version of the slot type. Must be less than or equal to 64 characters in length.

valueElicitationPrompt IntentSlotValueElicitationPrompt

The prompt that Amazon Lex uses to elicit the slot value from the user. Attributes are documented under prompt.

name str

The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length.

slot_constraint str

Specifies whether the slot is required or optional.

slot_type str

The type of the slot, either a custom slot type that you defined or one of the built-in slot types. Must be less than or equal to 100 characters in length.

description str

A description of the bot. Must be less than or equal to 200 characters in length.

priority int

Directs Lex the order in which to elicit this slot value from the user. For example, if the intent has two slots with priorities 1 and 2, AWS Lex first elicits a value for the slot with priority 1. If multiple slots share the same priority, the order in which Lex elicits values is arbitrary. Must be between 1 and 100.

response_card str

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

sample_utterances Sequence[str]

If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.

slot_type_version str

The version of the slot type. Must be less than or equal to 64 characters in length.

value_elicitation_prompt IntentSlotValueElicitationPrompt

The prompt that Amazon Lex uses to elicit the slot value from the user. Attributes are documented under prompt.

name String

The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length.

slotConstraint String

Specifies whether the slot is required or optional.

slotType String

The type of the slot, either a custom slot type that you defined or one of the built-in slot types. Must be less than or equal to 100 characters in length.

description String

A description of the bot. Must be less than or equal to 200 characters in length.

priority Number

Directs Lex the order in which to elicit this slot value from the user. For example, if the intent has two slots with priorities 1 and 2, AWS Lex first elicits a value for the slot with priority 1. If multiple slots share the same priority, the order in which Lex elicits values is arbitrary. Must be between 1 and 100.

responseCard String

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

sampleUtterances List<String>

If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.

slotTypeVersion String

The version of the slot type. Must be less than or equal to 64 characters in length.

valueElicitationPrompt Property Map

The prompt that Amazon Lex uses to elicit the slot value from the user. Attributes are documented under prompt.

IntentSlotValueElicitationPrompt

MaxAttempts int

The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).

Messages List<IntentSlotValueElicitationPromptMessage>

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

ResponseCard string

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

MaxAttempts int

The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).

Messages []IntentSlotValueElicitationPromptMessage

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

ResponseCard string

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

maxAttempts Integer

The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).

messages List<IntentSlotValueElicitationPromptMessage>

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

responseCard String

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

maxAttempts number

The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).

messages IntentSlotValueElicitationPromptMessage[]

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

responseCard string

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

max_attempts int

The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).

messages Sequence[IntentSlotValueElicitationPromptMessage]

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

response_card str

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

maxAttempts Number

The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).

messages List<Property Map>

A set of messages, each of which provides a message string and its type. You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes are documented under message. Must contain between 1 and 15 messages.

responseCard String

The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.

IntentSlotValueElicitationPromptMessage

Content string

The text of the message. Must be less than or equal to 1000 characters in length.

ContentType string

The content type of the message string.

GroupNumber int

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

Content string

The text of the message. Must be less than or equal to 1000 characters in length.

ContentType string

The content type of the message string.

GroupNumber int

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

content String

The text of the message. Must be less than or equal to 1000 characters in length.

contentType String

The content type of the message string.

groupNumber Integer

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

content string

The text of the message. Must be less than or equal to 1000 characters in length.

contentType string

The content type of the message string.

groupNumber number

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

content str

The text of the message. Must be less than or equal to 1000 characters in length.

content_type str

The content type of the message string.

group_number int

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

content String

The text of the message. Must be less than or equal to 1000 characters in length.

contentType String

The content type of the message string.

groupNumber Number

Identifies the message group that the message belongs to. When a group is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive).

Import

Intents can be imported using their name.

 $ pulumi import aws:lex/intent:Intent order_flowers_intent OrderFlowers

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.