aws.lex.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:
- Fulfillment
Activity IntentFulfillment Activity Args 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 IntentConclusion Statement Args 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. Thefollow_up_prompt
andconclusion_statement
are mutually exclusive. You can specify only one. Attributes are documented under statement.- Confirmation
Prompt IntentConfirmation Prompt Args Prompts the user to confirm the intent. This question should have a yes or no answer. You you must provide both the
rejection_statement
andconfirmation_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 string
A description of the intent. Must be less than or equal to 200 characters in length.
- Dialog
Code IntentHook Dialog Code Hook Args 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 IntentPrompt Follow Up Prompt Args 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 theconclusion_statement
field are mutually exclusive. You can specify only one. Attributes are documented under follow_up_prompt.- Name string
The name of the intent, not case sensitive. Must be less than or equal to 100 characters in length.
- Parent
Intent stringSignature 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 IntentRejection Statement Args When the user answers "no" to the question defined in
confirmation_prompt
, Amazon Lex responds with this statement to acknowledge that the intent was canceled. You must provide both therejection_statement
and theconfirmation_prompt
, or neither. Attributes are documented under statement.- Sample
Utterances List<string> An array of utterances (strings) that a user might say to signal the intent. For example, "I want {PizzaSize} pizza", "Order {Quantity} {PizzaSize} pizzas". In each utterance, a slot name is enclosed in curly braces. 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<Intent
Slot Args> 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 IntentFulfillment Activity Args 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 IntentConclusion Statement Args 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. Thefollow_up_prompt
andconclusion_statement
are mutually exclusive. You can specify only one. Attributes are documented under statement.- Confirmation
Prompt IntentConfirmation Prompt Args Prompts the user to confirm the intent. This question should have a yes or no answer. You you must provide both the
rejection_statement
andconfirmation_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 string
A description of the intent. Must be less than or equal to 200 characters in length.
- Dialog
Code IntentHook Dialog Code Hook Args 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 IntentPrompt Follow Up Prompt Args 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 theconclusion_statement
field are mutually exclusive. You can specify only one. Attributes are documented under follow_up_prompt.- Name string
The name of the intent, not case sensitive. Must be less than or equal to 100 characters in length.
- Parent
Intent stringSignature 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 IntentRejection Statement Args When the user answers "no" to the question defined in
confirmation_prompt
, Amazon Lex responds with this statement to acknowledge that the intent was canceled. You must provide both therejection_statement
and theconfirmation_prompt
, or neither. Attributes are documented under statement.- Sample
Utterances []string An array of utterances (strings) that a user might say to signal the intent. For example, "I want {PizzaSize} pizza", "Order {Quantity} {PizzaSize} pizzas". In each utterance, a slot name is enclosed in curly braces. 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
[]Intent
Slot Args 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 IntentFulfillment Activity Args 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 IntentConclusion Statement Args 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. Thefollow_up_prompt
andconclusion_statement
are mutually exclusive. You can specify only one. Attributes are documented under statement.- confirmation
Prompt IntentConfirmation Prompt Args Prompts the user to confirm the intent. This question should have a yes or no answer. You you must provide both the
rejection_statement
andconfirmation_prompt
, or neither. Attributes are documented under prompt.- create
Version 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 intent. Must be less than or equal to 200 characters in length.
- dialog
Code IntentHook Dialog Code Hook Args 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 IntentPrompt Follow Up Prompt Args 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 theconclusion_statement
field are mutually exclusive. You can specify only one. Attributes are documented under follow_up_prompt.- name String
The name of the intent, not case sensitive. Must be less than or equal to 100 characters in length.
- parent
Intent StringSignature 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 IntentRejection Statement Args When the user answers "no" to the question defined in
confirmation_prompt
, Amazon Lex responds with this statement to acknowledge that the intent was canceled. You must provide both therejection_statement
and theconfirmation_prompt
, or neither. Attributes are documented under statement.- sample
Utterances List<String> An array of utterances (strings) that a user might say to signal the intent. For example, "I want {PizzaSize} pizza", "Order {Quantity} {PizzaSize} pizzas". In each utterance, a slot name is enclosed in curly braces. 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<Intent
Slot Args> 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 IntentFulfillment Activity Args 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 IntentConclusion Statement Args 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. Thefollow_up_prompt
andconclusion_statement
are mutually exclusive. You can specify only one. Attributes are documented under statement.- confirmation
Prompt IntentConfirmation Prompt Args Prompts the user to confirm the intent. This question should have a yes or no answer. You you must provide both the
rejection_statement
andconfirmation_prompt
, or neither. Attributes are documented under prompt.- create
Version 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 intent. Must be less than or equal to 200 characters in length.
- dialog
Code IntentHook Dialog Code Hook Args 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 IntentPrompt Follow Up Prompt Args 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 theconclusion_statement
field are mutually exclusive. You can specify only one. Attributes are documented under follow_up_prompt.- name string
The name of the intent, not case sensitive. Must be less than or equal to 100 characters in length.
- parent
Intent stringSignature 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 IntentRejection Statement Args When the user answers "no" to the question defined in
confirmation_prompt
, Amazon Lex responds with this statement to acknowledge that the intent was canceled. You must provide both therejection_statement
and theconfirmation_prompt
, or neither. Attributes are documented under statement.- sample
Utterances string[] An array of utterances (strings) that a user might say to signal the intent. For example, "I want {PizzaSize} pizza", "Order {Quantity} {PizzaSize} pizzas". In each utterance, a slot name is enclosed in curly braces. 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
Intent
Slot Args[] 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 IntentFulfillment Activity Args 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 IntentConclusion Statement Args 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. Thefollow_up_prompt
andconclusion_statement
are mutually exclusive. You can specify only one. Attributes are documented under statement.- confirmation_
prompt IntentConfirmation Prompt Args Prompts the user to confirm the intent. This question should have a yes or no answer. You you must provide both the
rejection_statement
andconfirmation_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 intent. Must be less than or equal to 200 characters in length.
- dialog_
code_ Intenthook Dialog Code Hook Args 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_ Intentprompt Follow Up Prompt Args 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 theconclusion_statement
field are mutually exclusive. You can specify only one. Attributes are documented under follow_up_prompt.- name str
The name of the intent, not case sensitive. Must be less than or equal to 100 characters in length.
- parent_
intent_ strsignature 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 IntentRejection Statement Args When the user answers "no" to the question defined in
confirmation_prompt
, Amazon Lex responds with this statement to acknowledge that the intent was canceled. You must provide both therejection_statement
and theconfirmation_prompt
, or neither. Attributes are documented under statement.- sample_
utterances Sequence[str] An array of utterances (strings) that a user might say to signal the intent. For example, "I want {PizzaSize} pizza", "Order {Quantity} {PizzaSize} pizzas". In each utterance, a slot name is enclosed in curly braces. 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[Intent
Slot Args] 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 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.- conclusion
Statement 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. Thefollow_up_prompt
andconclusion_statement
are mutually exclusive. You can specify only one. Attributes are documented under statement.- confirmation
Prompt 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
andconfirmation_prompt
, or neither. Attributes are documented under prompt.- create
Version 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 intent. Must be less than or equal to 200 characters in length.
- dialog
Code Property MapHook 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 Property MapPrompt 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 theconclusion_statement
field are mutually exclusive. You can specify only one. Attributes are documented under follow_up_prompt.- name String
The name of the intent, not case sensitive. Must be less than or equal to 100 characters in length.
- parent
Intent StringSignature 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 Property Map When the user answers "no" to the question defined in
confirmation_prompt
, Amazon Lex responds with this statement to acknowledge that the intent was canceled. You must provide both therejection_statement
and theconfirmation_prompt
, or neither. Attributes are documented under statement.- sample
Utterances List<String> An array of utterances (strings) that a user might say to signal the intent. For example, "I want {PizzaSize} pizza", "Order {Quantity} {PizzaSize} pizzas". In each utterance, a slot name is enclosed in curly braces. 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.
- Created
Date string The date when the intent version was created.
- Id string
The provider-assigned unique ID for this managed resource.
- Last
Updated stringDate 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.
- Created
Date string The date when the intent version was created.
- Id string
The provider-assigned unique ID for this managed resource.
- Last
Updated stringDate 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.
- created
Date String The date when the intent version was created.
- id String
The provider-assigned unique ID for this managed resource.
- last
Updated StringDate 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.
- created
Date string The date when the intent version was created.
- id string
The provider-assigned unique ID for this managed resource.
- last
Updated stringDate 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_ strdate 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.
- created
Date String The date when the intent version was created.
- id String
The provider-assigned unique ID for this managed resource.
- last
Updated StringDate 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.
- 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.
- Conclusion
Statement IntentConclusion Statement Args 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. Thefollow_up_prompt
andconclusion_statement
are mutually exclusive. You can specify only one. Attributes are documented under statement.- Confirmation
Prompt IntentConfirmation Prompt Args Prompts the user to confirm the intent. This question should have a yes or no answer. You you must provide both the
rejection_statement
andconfirmation_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 string The date when the intent version was created.
- Description string
A description of the intent. Must be less than or equal to 200 characters in length.
- Dialog
Code IntentHook Dialog Code Hook Args 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 IntentPrompt Follow Up Prompt Args 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 theconclusion_statement
field are mutually exclusive. You can specify only one. Attributes are documented under follow_up_prompt.- Fulfillment
Activity IntentFulfillment Activity Args 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 stringDate The date when the $LATEST version of this intent was updated.
- Name string
The name of the intent, not case sensitive. Must be less than or equal to 100 characters in length.
- Parent
Intent stringSignature 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 IntentRejection Statement Args When the user answers "no" to the question defined in
confirmation_prompt
, Amazon Lex responds with this statement to acknowledge that the intent was canceled. You must provide both therejection_statement
and theconfirmation_prompt
, or neither. Attributes are documented under statement.- Sample
Utterances List<string> An array of utterances (strings) that a user might say to signal the intent. For example, "I want {PizzaSize} pizza", "Order {Quantity} {PizzaSize} pizzas". In each utterance, a slot name is enclosed in curly braces. 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<Intent
Slot Args> 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.
- Conclusion
Statement IntentConclusion Statement Args 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. Thefollow_up_prompt
andconclusion_statement
are mutually exclusive. You can specify only one. Attributes are documented under statement.- Confirmation
Prompt IntentConfirmation Prompt Args Prompts the user to confirm the intent. This question should have a yes or no answer. You you must provide both the
rejection_statement
andconfirmation_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 string The date when the intent version was created.
- Description string
A description of the intent. Must be less than or equal to 200 characters in length.
- Dialog
Code IntentHook Dialog Code Hook Args 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 IntentPrompt Follow Up Prompt Args 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 theconclusion_statement
field are mutually exclusive. You can specify only one. Attributes are documented under follow_up_prompt.- Fulfillment
Activity IntentFulfillment Activity Args 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 stringDate The date when the $LATEST version of this intent was updated.
- Name string
The name of the intent, not case sensitive. Must be less than or equal to 100 characters in length.
- Parent
Intent stringSignature 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 IntentRejection Statement Args When the user answers "no" to the question defined in
confirmation_prompt
, Amazon Lex responds with this statement to acknowledge that the intent was canceled. You must provide both therejection_statement
and theconfirmation_prompt
, or neither. Attributes are documented under statement.- Sample
Utterances []string An array of utterances (strings) that a user might say to signal the intent. For example, "I want {PizzaSize} pizza", "Order {Quantity} {PizzaSize} pizzas". In each utterance, a slot name is enclosed in curly braces. 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
[]Intent
Slot Args 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.
- conclusion
Statement IntentConclusion Statement Args 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. Thefollow_up_prompt
andconclusion_statement
are mutually exclusive. You can specify only one. Attributes are documented under statement.- confirmation
Prompt IntentConfirmation Prompt Args Prompts the user to confirm the intent. This question should have a yes or no answer. You you must provide both the
rejection_statement
andconfirmation_prompt
, or neither. Attributes are documented under prompt.- create
Version Boolean Determines if a new slot type version is created when the initial resource is created and on each update. Defaults to
false
.- created
Date String The date when the intent version was created.
- description String
A description of the intent. Must be less than or equal to 200 characters in length.
- dialog
Code IntentHook Dialog Code Hook Args 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 IntentPrompt Follow Up Prompt Args 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 theconclusion_statement
field are mutually exclusive. You can specify only one. Attributes are documented under follow_up_prompt.- fulfillment
Activity IntentFulfillment Activity Args 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 StringDate The date when the $LATEST version of this intent was updated.
- name String
The name of the intent, not case sensitive. Must be less than or equal to 100 characters in length.
- parent
Intent StringSignature 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 IntentRejection Statement Args When the user answers "no" to the question defined in
confirmation_prompt
, Amazon Lex responds with this statement to acknowledge that the intent was canceled. You must provide both therejection_statement
and theconfirmation_prompt
, or neither. Attributes are documented under statement.- sample
Utterances List<String> An array of utterances (strings) that a user might say to signal the intent. For example, "I want {PizzaSize} pizza", "Order {Quantity} {PizzaSize} pizzas". In each utterance, a slot name is enclosed in curly braces. 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<Intent
Slot Args> 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.
- conclusion
Statement IntentConclusion Statement Args 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. Thefollow_up_prompt
andconclusion_statement
are mutually exclusive. You can specify only one. Attributes are documented under statement.- confirmation
Prompt IntentConfirmation Prompt Args Prompts the user to confirm the intent. This question should have a yes or no answer. You you must provide both the
rejection_statement
andconfirmation_prompt
, or neither. Attributes are documented under prompt.- create
Version boolean Determines if a new slot type version is created when the initial resource is created and on each update. Defaults to
false
.- created
Date string The date when the intent version was created.
- description string
A description of the intent. Must be less than or equal to 200 characters in length.
- dialog
Code IntentHook Dialog Code Hook Args 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 IntentPrompt Follow Up Prompt Args 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 theconclusion_statement
field are mutually exclusive. You can specify only one. Attributes are documented under follow_up_prompt.- fulfillment
Activity IntentFulfillment Activity Args 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 stringDate The date when the $LATEST version of this intent was updated.
- name string
The name of the intent, not case sensitive. Must be less than or equal to 100 characters in length.
- parent
Intent stringSignature 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 IntentRejection Statement Args When the user answers "no" to the question defined in
confirmation_prompt
, Amazon Lex responds with this statement to acknowledge that the intent was canceled. You must provide both therejection_statement
and theconfirmation_prompt
, or neither. Attributes are documented under statement.- sample
Utterances string[] An array of utterances (strings) that a user might say to signal the intent. For example, "I want {PizzaSize} pizza", "Order {Quantity} {PizzaSize} pizzas". In each utterance, a slot name is enclosed in curly braces. 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
Intent
Slot Args[] 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 IntentConclusion Statement Args 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. Thefollow_up_prompt
andconclusion_statement
are mutually exclusive. You can specify only one. Attributes are documented under statement.- confirmation_
prompt IntentConfirmation Prompt Args Prompts the user to confirm the intent. This question should have a yes or no answer. You you must provide both the
rejection_statement
andconfirmation_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 intent. Must be less than or equal to 200 characters in length.
- dialog_
code_ Intenthook Dialog Code Hook Args 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_ Intentprompt Follow Up Prompt Args 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 theconclusion_statement
field are mutually exclusive. You can specify only one. Attributes are documented under follow_up_prompt.- fulfillment_
activity IntentFulfillment Activity Args 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_ strdate The date when the $LATEST version of this intent was updated.
- name str
The name of the intent, not case sensitive. Must be less than or equal to 100 characters in length.
- parent_
intent_ strsignature 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 IntentRejection Statement Args When the user answers "no" to the question defined in
confirmation_prompt
, Amazon Lex responds with this statement to acknowledge that the intent was canceled. You must provide both therejection_statement
and theconfirmation_prompt
, or neither. Attributes are documented under statement.- sample_
utterances Sequence[str] An array of utterances (strings) that a user might say to signal the intent. For example, "I want {PizzaSize} pizza", "Order {Quantity} {PizzaSize} pizzas". In each utterance, a slot name is enclosed in curly braces. 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[Intent
Slot Args] 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.
- conclusion
Statement 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. Thefollow_up_prompt
andconclusion_statement
are mutually exclusive. You can specify only one. Attributes are documented under statement.- confirmation
Prompt 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
andconfirmation_prompt
, or neither. Attributes are documented under prompt.- create
Version Boolean Determines if a new slot type version is created when the initial resource is created and on each update. Defaults to
false
.- created
Date String The date when the intent version was created.
- description String
A description of the intent. Must be less than or equal to 200 characters in length.
- dialog
Code Property MapHook 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 Property MapPrompt 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 theconclusion_statement
field are mutually exclusive. You can specify only one. Attributes are documented under follow_up_prompt.- fulfillment
Activity 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.- last
Updated StringDate The date when the $LATEST version of this intent was updated.
- name String
The name of the intent, not case sensitive. Must be less than or equal to 100 characters in length.
- parent
Intent StringSignature 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 Property Map When the user answers "no" to the question defined in
confirmation_prompt
, Amazon Lex responds with this statement to acknowledge that the intent was canceled. You must provide both therejection_statement
and theconfirmation_prompt
, or neither. Attributes are documented under statement.- sample
Utterances List<String> An array of utterances (strings) that a user might say to signal the intent. For example, "I want {PizzaSize} pizza", "Order {Quantity} {PizzaSize} pizzas". In each utterance, a slot name is enclosed in curly braces. 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<Intent
Conclusion Statement Message> - Response
Card 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. 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. 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
[]Intent
Conclusion Statement Message - Response
Card 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. 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. 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<Intent
Conclusion Statement Message> - response
Card 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. 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. 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
Intent
Conclusion Statement Message[] - response
Card 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. 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. 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[Intent
Conclusion Statement Message] - 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. 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. 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>
- response
Card 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. 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. 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.
- Content
Type string 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.
- Content
Type string 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.
- content
Type String The content type of the message string.
- group
Number 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.
- content
Type string The content type of the message string.
- group
Number 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.
- content
Type String The content type of the message string.
- group
Number 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
- Max
Attempts int The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).
- Messages
List<Intent
Confirmation Prompt Message> - Response
Card 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. 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. 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
[]Intent
Confirmation Prompt Message - Response
Card 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. 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. 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 Integer The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).
- messages
List<Intent
Confirmation Prompt Message> - response
Card 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. 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. 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 number The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).
- messages
Intent
Confirmation Prompt Message[] - response
Card 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. 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. 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[Intent
Confirmation Prompt Message] - 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. 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. 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 Number The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).
- messages List<Property Map>
- response
Card 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. 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. 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.
- Content
Type string 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.
- Content
Type string 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.
- content
Type String The content type of the message string.
- group
Number 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.
- content
Type string The content type of the message string.
- group
Number 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.
- content
Type String The content type of the message string.
- group
Number 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
- Message
Version 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 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 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 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.
- message
Version 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
Intent
Follow Up Prompt Prompt Prompts for information from the user. Attributes are documented under prompt.
- Rejection
Statement IntentFollow Up Prompt Rejection Statement 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
Intent
Follow Up Prompt Prompt Prompts for information from the user. Attributes are documented under prompt.
- Rejection
Statement IntentFollow Up Prompt Rejection Statement 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
Intent
Follow Up Prompt Prompt Prompts for information from the user. Attributes are documented under prompt.
- rejection
Statement IntentFollow Up Prompt Rejection Statement 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
Intent
Follow Up Prompt Prompt Prompts for information from the user. Attributes are documented under prompt.
- rejection
Statement IntentFollow Up Prompt Rejection Statement 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
Intent
Follow Up Prompt Prompt Prompts for information from the user. Attributes are documented under prompt.
- rejection_
statement IntentFollow Up Prompt Rejection Statement 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.
- rejection
Statement 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
- Max
Attempts int The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).
- Messages
List<Intent
Follow Up Prompt Prompt Message> 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 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
[]Intent
Follow Up Prompt Prompt Message 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 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 Integer The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).
- messages
List<Intent
Follow Up Prompt Prompt Message> 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 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 number The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).
- messages
Intent
Follow Up Prompt Prompt Message[] 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 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[Intent
Follow Up Prompt Prompt Message] 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.
- max
Attempts 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.
- response
Card 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.
- Content
Type string 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.
- Content
Type string 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.
- content
Type String The content type of the message string.
- group
Number 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.
- content
Type string The content type of the message string.
- group
Number 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.
- content
Type String The content type of the message string.
- group
Number 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<Intent
Follow Up Prompt Rejection Statement Message> - Response
Card 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. 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. 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
[]Intent
Follow Up Prompt Rejection Statement Message - Response
Card 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. 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. 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<Intent
Follow Up Prompt Rejection Statement Message> - response
Card 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. 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. 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
Intent
Follow Up Prompt Rejection Statement Message[] - response
Card 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. 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. 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[Intent
Follow Up Prompt Rejection Statement Message] - 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. 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. 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>
- response
Card 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. 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. 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.
- Content
Type string 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.
- Content
Type string 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.
- content
Type String The content type of the message string.
- group
Number 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.
- content
Type string The content type of the message string.
- group
Number 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.
- content
Type String The content type of the message string.
- group
Number 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
orCodeHook
, as documented here.- Code
Hook IntentFulfillment Activity Code Hook 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
orCodeHook
, as documented here.- Code
Hook IntentFulfillment Activity Code Hook 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
orCodeHook
, as documented here.- code
Hook IntentFulfillment Activity Code Hook 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
orCodeHook
, as documented here.- code
Hook IntentFulfillment Activity Code Hook 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
orCodeHook
, as documented here.- code_
hook IntentFulfillment Activity Code Hook 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
orCodeHook
, as documented here.- code
Hook 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
- Message
Version 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 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 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 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.
- message
Version 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<Intent
Rejection Statement Message> - Response
Card 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. 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. 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
[]Intent
Rejection Statement Message - Response
Card 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. 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. 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<Intent
Rejection Statement Message> - response
Card 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. 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. 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
Intent
Rejection Statement Message[] - response
Card 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. 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. 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[Intent
Rejection Statement Message] - 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. 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. 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>
- response
Card 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. 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. 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.
- Content
Type string 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.
- Content
Type string 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.
- content
Type String The content type of the message string.
- group
Number 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.
- content
Type string The content type of the message string.
- group
Number 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.
- content
Type String The content type of the message string.
- group
Number 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.
- Slot
Constraint string Specifies whether the slot is required or optional.
- Slot
Type 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.
- Response
Card 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.
- Sample
Utterances 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.
- Slot
Type stringVersion The version of the slot type. Must be less than or equal to 64 characters in length.
- Value
Elicitation IntentPrompt Slot Value Elicitation Prompt 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.
- Slot
Constraint string Specifies whether the slot is required or optional.
- Slot
Type 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.
- Response
Card 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.
- Sample
Utterances []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.
- Slot
Type stringVersion The version of the slot type. Must be less than or equal to 64 characters in length.
- Value
Elicitation IntentPrompt Slot Value Elicitation Prompt 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.
- slot
Constraint String Specifies whether the slot is required or optional.
- slot
Type 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.
- response
Card 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.
- sample
Utterances 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.
- slot
Type StringVersion The version of the slot type. Must be less than or equal to 64 characters in length.
- value
Elicitation IntentPrompt Slot Value Elicitation Prompt 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.
- slot
Constraint string Specifies whether the slot is required or optional.
- slot
Type 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.
- response
Card 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.
- sample
Utterances 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.
- slot
Type stringVersion The version of the slot type. Must be less than or equal to 64 characters in length.
- value
Elicitation IntentPrompt Slot Value Elicitation Prompt 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_ strversion The version of the slot type. Must be less than or equal to 64 characters in length.
- value_
elicitation_ Intentprompt Slot Value Elicitation Prompt 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.
- slot
Constraint String Specifies whether the slot is required or optional.
- slot
Type 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.
- response
Card 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.
- sample
Utterances 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.
- slot
Type StringVersion The version of the slot type. Must be less than or equal to 64 characters in length.
- value
Elicitation Property MapPrompt The prompt that Amazon Lex uses to elicit the slot value from the user. Attributes are documented under prompt.
IntentSlotValueElicitationPrompt
- Max
Attempts int The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).
- Messages
List<Intent
Slot Value Elicitation Prompt Message> - Response
Card 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. 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. 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
[]Intent
Slot Value Elicitation Prompt Message - Response
Card 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. 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. 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 Integer The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).
- messages
List<Intent
Slot Value Elicitation Prompt Message> - response
Card 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. 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. 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 number The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).
- messages
Intent
Slot Value Elicitation Prompt Message[] - response
Card 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. 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. 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[Intent
Slot Value Elicitation Prompt Message] - 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. 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. 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 Number The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive).
- messages List<Property Map>
- response
Card 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. 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. 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.
- Content
Type string 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.
- Content
Type string 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.
- content
Type String The content type of the message string.
- group
Number 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.
- content
Type string The content type of the message string.
- group
Number 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.
- content
Type String The content type of the message string.
- group
Number 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
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.