aws.lex.Intent
Explore with Pulumi AI
Provides an Amazon Lex Intent resource. For more information see Amazon Lex: How It Works
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const orderFlowersIntent = new aws.lex.Intent("order_flowers_intent", {
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,
name: "OrderFlowers",
description: "Intent to order a bouquet of flowers for pick up",
fulfillmentActivity: {
type: "ReturnIntent",
},
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,
messages: [{
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,
messages: [{
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,
messages: [{
content: "Pick up the {FlowerType} at what time on {PickupDate}?",
contentType: "PlainText",
}],
},
},
],
});
import pulumi
import pulumi_aws as aws
order_flowers_intent = aws.lex.Intent("order_flowers_intent",
confirmation_prompt={
"max_attempts": 2,
"messages": [{
"content": "Okay, your {FlowerType} will be ready for pickup by {PickupTime} on {PickupDate}. Does this sound okay?",
"content_type": "PlainText",
}],
},
create_version=False,
name="OrderFlowers",
description="Intent to order a bouquet of flowers for pick up",
fulfillment_activity={
"type": "ReturnIntent",
},
rejection_statement={
"messages": [{
"content": "Okay, I will not place your order.",
"content_type": "PlainText",
}],
},
sample_utterances=[
"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,
"sample_utterances": ["I would like to order {FlowerType}"],
"slot_constraint": "Required",
"slot_type": "FlowerTypes",
"slot_type_version": "$$LATEST",
"value_elicitation_prompt": {
"max_attempts": 2,
"messages": [{
"content": "What type of flowers would you like to order?",
"content_type": "PlainText",
}],
},
},
{
"description": "The date to pick up the flowers",
"name": "PickupDate",
"priority": 2,
"sample_utterances": ["I would like to order {FlowerType}"],
"slot_constraint": "Required",
"slot_type": "AMAZON.DATE",
"slot_type_version": "$$LATEST",
"value_elicitation_prompt": {
"max_attempts": 2,
"messages": [{
"content": "What day do you want the {FlowerType} to be picked up?",
"content_type": "PlainText",
}],
},
},
{
"description": "The time to pick up the flowers",
"name": "PickupTime",
"priority": 3,
"sample_utterances": ["I would like to order {FlowerType}"],
"slot_constraint": "Required",
"slot_type": "AMAZON.TIME",
"slot_type_version": "$$LATEST",
"value_elicitation_prompt": {
"max_attempts": 2,
"messages": [{
"content": "Pick up the {FlowerType} at what time on {PickupDate}?",
"content_type": "PlainText",
}],
},
},
])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/lex"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := lex.NewIntent(ctx, "order_flowers_intent", &lex.IntentArgs{
ConfirmationPrompt: &lex.IntentConfirmationPromptArgs{
MaxAttempts: pulumi.Int(2),
Messages: lex.IntentConfirmationPromptMessageArray{
&lex.IntentConfirmationPromptMessageArgs{
Content: pulumi.String("Okay, your {FlowerType} will be ready for pickup by {PickupTime} on {PickupDate}. Does this sound okay?"),
ContentType: pulumi.String("PlainText"),
},
},
},
CreateVersion: pulumi.Bool(false),
Name: pulumi.String("OrderFlowers"),
Description: pulumi.String("Intent to order a bouquet of flowers for pick up"),
FulfillmentActivity: &lex.IntentFulfillmentActivityArgs{
Type: pulumi.String("ReturnIntent"),
},
RejectionStatement: &lex.IntentRejectionStatementArgs{
Messages: lex.IntentRejectionStatementMessageArray{
&lex.IntentRejectionStatementMessageArgs{
Content: pulumi.String("Okay, I will not place your order."),
ContentType: pulumi.String("PlainText"),
},
},
},
SampleUtterances: pulumi.StringArray{
pulumi.String("I would like to order some flowers"),
pulumi.String("I would like to pick up flowers"),
},
Slots: lex.IntentSlotArray{
&lex.IntentSlotArgs{
Description: pulumi.String("The type of flowers to pick up"),
Name: pulumi.String("FlowerType"),
Priority: pulumi.Int(1),
SampleUtterances: pulumi.StringArray{
pulumi.String("I would like to order {FlowerType}"),
},
SlotConstraint: pulumi.String("Required"),
SlotType: pulumi.String("FlowerTypes"),
SlotTypeVersion: pulumi.String("$$LATEST"),
ValueElicitationPrompt: &lex.IntentSlotValueElicitationPromptArgs{
MaxAttempts: pulumi.Int(2),
Messages: lex.IntentSlotValueElicitationPromptMessageArray{
&lex.IntentSlotValueElicitationPromptMessageArgs{
Content: pulumi.String("What type of flowers would you like to order?"),
ContentType: pulumi.String("PlainText"),
},
},
},
},
&lex.IntentSlotArgs{
Description: pulumi.String("The date to pick up the flowers"),
Name: pulumi.String("PickupDate"),
Priority: pulumi.Int(2),
SampleUtterances: pulumi.StringArray{
pulumi.String("I would like to order {FlowerType}"),
},
SlotConstraint: pulumi.String("Required"),
SlotType: pulumi.String("AMAZON.DATE"),
SlotTypeVersion: pulumi.String("$$LATEST"),
ValueElicitationPrompt: &lex.IntentSlotValueElicitationPromptArgs{
MaxAttempts: pulumi.Int(2),
Messages: lex.IntentSlotValueElicitationPromptMessageArray{
&lex.IntentSlotValueElicitationPromptMessageArgs{
Content: pulumi.String("What day do you want the {FlowerType} to be picked up?"),
ContentType: pulumi.String("PlainText"),
},
},
},
},
&lex.IntentSlotArgs{
Description: pulumi.String("The time to pick up the flowers"),
Name: pulumi.String("PickupTime"),
Priority: pulumi.Int(3),
SampleUtterances: pulumi.StringArray{
pulumi.String("I would like to order {FlowerType}"),
},
SlotConstraint: pulumi.String("Required"),
SlotType: pulumi.String("AMAZON.TIME"),
SlotTypeVersion: pulumi.String("$$LATEST"),
ValueElicitationPrompt: &lex.IntentSlotValueElicitationPromptArgs{
MaxAttempts: pulumi.Int(2),
Messages: lex.IntentSlotValueElicitationPromptMessageArray{
&lex.IntentSlotValueElicitationPromptMessageArgs{
Content: pulumi.String("Pick up the {FlowerType} at what time on {PickupDate}?"),
ContentType: pulumi.String("PlainText"),
},
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var orderFlowersIntent = new Aws.Lex.Intent("order_flowers_intent", new()
{
ConfirmationPrompt = new Aws.Lex.Inputs.IntentConfirmationPromptArgs
{
MaxAttempts = 2,
Messages = new[]
{
new Aws.Lex.Inputs.IntentConfirmationPromptMessageArgs
{
Content = "Okay, your {FlowerType} will be ready for pickup by {PickupTime} on {PickupDate}. Does this sound okay?",
ContentType = "PlainText",
},
},
},
CreateVersion = false,
Name = "OrderFlowers",
Description = "Intent to order a bouquet of flowers for pick up",
FulfillmentActivity = new Aws.Lex.Inputs.IntentFulfillmentActivityArgs
{
Type = "ReturnIntent",
},
RejectionStatement = new Aws.Lex.Inputs.IntentRejectionStatementArgs
{
Messages = new[]
{
new Aws.Lex.Inputs.IntentRejectionStatementMessageArgs
{
Content = "Okay, I will not place your order.",
ContentType = "PlainText",
},
},
},
SampleUtterances = new[]
{
"I would like to order some flowers",
"I would like to pick up flowers",
},
Slots = new[]
{
new Aws.Lex.Inputs.IntentSlotArgs
{
Description = "The type of flowers to pick up",
Name = "FlowerType",
Priority = 1,
SampleUtterances = new[]
{
"I would like to order {FlowerType}",
},
SlotConstraint = "Required",
SlotType = "FlowerTypes",
SlotTypeVersion = "$$LATEST",
ValueElicitationPrompt = new Aws.Lex.Inputs.IntentSlotValueElicitationPromptArgs
{
MaxAttempts = 2,
Messages = new[]
{
new Aws.Lex.Inputs.IntentSlotValueElicitationPromptMessageArgs
{
Content = "What type of flowers would you like to order?",
ContentType = "PlainText",
},
},
},
},
new Aws.Lex.Inputs.IntentSlotArgs
{
Description = "The date to pick up the flowers",
Name = "PickupDate",
Priority = 2,
SampleUtterances = new[]
{
"I would like to order {FlowerType}",
},
SlotConstraint = "Required",
SlotType = "AMAZON.DATE",
SlotTypeVersion = "$$LATEST",
ValueElicitationPrompt = new Aws.Lex.Inputs.IntentSlotValueElicitationPromptArgs
{
MaxAttempts = 2,
Messages = new[]
{
new Aws.Lex.Inputs.IntentSlotValueElicitationPromptMessageArgs
{
Content = "What day do you want the {FlowerType} to be picked up?",
ContentType = "PlainText",
},
},
},
},
new Aws.Lex.Inputs.IntentSlotArgs
{
Description = "The time to pick up the flowers",
Name = "PickupTime",
Priority = 3,
SampleUtterances = new[]
{
"I would like to order {FlowerType}",
},
SlotConstraint = "Required",
SlotType = "AMAZON.TIME",
SlotTypeVersion = "$$LATEST",
ValueElicitationPrompt = new Aws.Lex.Inputs.IntentSlotValueElicitationPromptArgs
{
MaxAttempts = 2,
Messages = new[]
{
new Aws.Lex.Inputs.IntentSlotValueElicitationPromptMessageArgs
{
Content = "Pick up the {FlowerType} at what time on {PickupDate}?",
ContentType = "PlainText",
},
},
},
},
},
});
});
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)
.name("OrderFlowers")
.description("Intent to order a bouquet of flowers for pick up")
.fulfillmentActivity(IntentFulfillmentActivityArgs.builder()
.type("ReturnIntent")
.build())
.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)
.messages(IntentSlotValueElicitationPromptMessageArgs.builder()
.content("What type of flowers would you like to order?")
.contentType("PlainText")
.build())
.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)
.messages(IntentSlotValueElicitationPromptMessageArgs.builder()
.content("What day do you want the {FlowerType} to be picked up?")
.contentType("PlainText")
.build())
.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)
.messages(IntentSlotValueElicitationPromptMessageArgs.builder()
.content("Pick up the {FlowerType} at what time on {PickupDate}?")
.contentType("PlainText")
.build())
.build())
.build())
.build());
}
}
resources:
orderFlowersIntent:
type: aws:lex:Intent
name: order_flowers_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
name: OrderFlowers
description: Intent to order a bouquet of flowers for pick up
fulfillmentActivity:
type: ReturnIntent
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
messages:
- 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
messages:
- 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
messages:
- content: Pick up the {FlowerType} at what time on {PickupDate}?
contentType: PlainText
Create Intent Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Intent(name: string, args: IntentArgs, opts?: CustomResourceOptions);
@overload
def Intent(resource_name: str,
args: IntentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Intent(resource_name: str,
opts: Optional[ResourceOptions] = None,
fulfillment_activity: Optional[IntentFulfillmentActivityArgs] = 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,
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)
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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var intentResource = new Aws.Lex.Intent("intentResource", new()
{
FulfillmentActivity = new Aws.Lex.Inputs.IntentFulfillmentActivityArgs
{
Type = "string",
CodeHook = new Aws.Lex.Inputs.IntentFulfillmentActivityCodeHookArgs
{
MessageVersion = "string",
Uri = "string",
},
},
ConclusionStatement = new Aws.Lex.Inputs.IntentConclusionStatementArgs
{
Messages = new[]
{
new Aws.Lex.Inputs.IntentConclusionStatementMessageArgs
{
Content = "string",
ContentType = "string",
GroupNumber = 0,
},
},
ResponseCard = "string",
},
ConfirmationPrompt = new Aws.Lex.Inputs.IntentConfirmationPromptArgs
{
MaxAttempts = 0,
Messages = new[]
{
new Aws.Lex.Inputs.IntentConfirmationPromptMessageArgs
{
Content = "string",
ContentType = "string",
GroupNumber = 0,
},
},
ResponseCard = "string",
},
CreateVersion = false,
Description = "string",
DialogCodeHook = new Aws.Lex.Inputs.IntentDialogCodeHookArgs
{
MessageVersion = "string",
Uri = "string",
},
FollowUpPrompt = new Aws.Lex.Inputs.IntentFollowUpPromptArgs
{
Prompt = new Aws.Lex.Inputs.IntentFollowUpPromptPromptArgs
{
MaxAttempts = 0,
Messages = new[]
{
new Aws.Lex.Inputs.IntentFollowUpPromptPromptMessageArgs
{
Content = "string",
ContentType = "string",
GroupNumber = 0,
},
},
ResponseCard = "string",
},
RejectionStatement = new Aws.Lex.Inputs.IntentFollowUpPromptRejectionStatementArgs
{
Messages = new[]
{
new Aws.Lex.Inputs.IntentFollowUpPromptRejectionStatementMessageArgs
{
Content = "string",
ContentType = "string",
GroupNumber = 0,
},
},
ResponseCard = "string",
},
},
Name = "string",
ParentIntentSignature = "string",
RejectionStatement = new Aws.Lex.Inputs.IntentRejectionStatementArgs
{
Messages = new[]
{
new Aws.Lex.Inputs.IntentRejectionStatementMessageArgs
{
Content = "string",
ContentType = "string",
GroupNumber = 0,
},
},
ResponseCard = "string",
},
SampleUtterances = new[]
{
"string",
},
Slots = new[]
{
new Aws.Lex.Inputs.IntentSlotArgs
{
Name = "string",
SlotConstraint = "string",
SlotType = "string",
Description = "string",
Priority = 0,
ResponseCard = "string",
SampleUtterances = new[]
{
"string",
},
SlotTypeVersion = "string",
ValueElicitationPrompt = new Aws.Lex.Inputs.IntentSlotValueElicitationPromptArgs
{
MaxAttempts = 0,
Messages = new[]
{
new Aws.Lex.Inputs.IntentSlotValueElicitationPromptMessageArgs
{
Content = "string",
ContentType = "string",
GroupNumber = 0,
},
},
ResponseCard = "string",
},
},
},
});
example, err := lex.NewIntent(ctx, "intentResource", &lex.IntentArgs{
FulfillmentActivity: &lex.IntentFulfillmentActivityArgs{
Type: pulumi.String("string"),
CodeHook: &lex.IntentFulfillmentActivityCodeHookArgs{
MessageVersion: pulumi.String("string"),
Uri: pulumi.String("string"),
},
},
ConclusionStatement: &lex.IntentConclusionStatementArgs{
Messages: lex.IntentConclusionStatementMessageArray{
&lex.IntentConclusionStatementMessageArgs{
Content: pulumi.String("string"),
ContentType: pulumi.String("string"),
GroupNumber: pulumi.Int(0),
},
},
ResponseCard: pulumi.String("string"),
},
ConfirmationPrompt: &lex.IntentConfirmationPromptArgs{
MaxAttempts: pulumi.Int(0),
Messages: lex.IntentConfirmationPromptMessageArray{
&lex.IntentConfirmationPromptMessageArgs{
Content: pulumi.String("string"),
ContentType: pulumi.String("string"),
GroupNumber: pulumi.Int(0),
},
},
ResponseCard: pulumi.String("string"),
},
CreateVersion: pulumi.Bool(false),
Description: pulumi.String("string"),
DialogCodeHook: &lex.IntentDialogCodeHookArgs{
MessageVersion: pulumi.String("string"),
Uri: pulumi.String("string"),
},
FollowUpPrompt: &lex.IntentFollowUpPromptArgs{
Prompt: &lex.IntentFollowUpPromptPromptArgs{
MaxAttempts: pulumi.Int(0),
Messages: lex.IntentFollowUpPromptPromptMessageArray{
&lex.IntentFollowUpPromptPromptMessageArgs{
Content: pulumi.String("string"),
ContentType: pulumi.String("string"),
GroupNumber: pulumi.Int(0),
},
},
ResponseCard: pulumi.String("string"),
},
RejectionStatement: &lex.IntentFollowUpPromptRejectionStatementArgs{
Messages: lex.IntentFollowUpPromptRejectionStatementMessageArray{
&lex.IntentFollowUpPromptRejectionStatementMessageArgs{
Content: pulumi.String("string"),
ContentType: pulumi.String("string"),
GroupNumber: pulumi.Int(0),
},
},
ResponseCard: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
ParentIntentSignature: pulumi.String("string"),
RejectionStatement: &lex.IntentRejectionStatementArgs{
Messages: lex.IntentRejectionStatementMessageArray{
&lex.IntentRejectionStatementMessageArgs{
Content: pulumi.String("string"),
ContentType: pulumi.String("string"),
GroupNumber: pulumi.Int(0),
},
},
ResponseCard: pulumi.String("string"),
},
SampleUtterances: pulumi.StringArray{
pulumi.String("string"),
},
Slots: lex.IntentSlotArray{
&lex.IntentSlotArgs{
Name: pulumi.String("string"),
SlotConstraint: pulumi.String("string"),
SlotType: pulumi.String("string"),
Description: pulumi.String("string"),
Priority: pulumi.Int(0),
ResponseCard: pulumi.String("string"),
SampleUtterances: pulumi.StringArray{
pulumi.String("string"),
},
SlotTypeVersion: pulumi.String("string"),
ValueElicitationPrompt: &lex.IntentSlotValueElicitationPromptArgs{
MaxAttempts: pulumi.Int(0),
Messages: lex.IntentSlotValueElicitationPromptMessageArray{
&lex.IntentSlotValueElicitationPromptMessageArgs{
Content: pulumi.String("string"),
ContentType: pulumi.String("string"),
GroupNumber: pulumi.Int(0),
},
},
ResponseCard: pulumi.String("string"),
},
},
},
})
var intentResource = new Intent("intentResource", IntentArgs.builder()
.fulfillmentActivity(IntentFulfillmentActivityArgs.builder()
.type("string")
.codeHook(IntentFulfillmentActivityCodeHookArgs.builder()
.messageVersion("string")
.uri("string")
.build())
.build())
.conclusionStatement(IntentConclusionStatementArgs.builder()
.messages(IntentConclusionStatementMessageArgs.builder()
.content("string")
.contentType("string")
.groupNumber(0)
.build())
.responseCard("string")
.build())
.confirmationPrompt(IntentConfirmationPromptArgs.builder()
.maxAttempts(0)
.messages(IntentConfirmationPromptMessageArgs.builder()
.content("string")
.contentType("string")
.groupNumber(0)
.build())
.responseCard("string")
.build())
.createVersion(false)
.description("string")
.dialogCodeHook(IntentDialogCodeHookArgs.builder()
.messageVersion("string")
.uri("string")
.build())
.followUpPrompt(IntentFollowUpPromptArgs.builder()
.prompt(IntentFollowUpPromptPromptArgs.builder()
.maxAttempts(0)
.messages(IntentFollowUpPromptPromptMessageArgs.builder()
.content("string")
.contentType("string")
.groupNumber(0)
.build())
.responseCard("string")
.build())
.rejectionStatement(IntentFollowUpPromptRejectionStatementArgs.builder()
.messages(IntentFollowUpPromptRejectionStatementMessageArgs.builder()
.content("string")
.contentType("string")
.groupNumber(0)
.build())
.responseCard("string")
.build())
.build())
.name("string")
.parentIntentSignature("string")
.rejectionStatement(IntentRejectionStatementArgs.builder()
.messages(IntentRejectionStatementMessageArgs.builder()
.content("string")
.contentType("string")
.groupNumber(0)
.build())
.responseCard("string")
.build())
.sampleUtterances("string")
.slots(IntentSlotArgs.builder()
.name("string")
.slotConstraint("string")
.slotType("string")
.description("string")
.priority(0)
.responseCard("string")
.sampleUtterances("string")
.slotTypeVersion("string")
.valueElicitationPrompt(IntentSlotValueElicitationPromptArgs.builder()
.maxAttempts(0)
.messages(IntentSlotValueElicitationPromptMessageArgs.builder()
.content("string")
.contentType("string")
.groupNumber(0)
.build())
.responseCard("string")
.build())
.build())
.build());
intent_resource = aws.lex.Intent("intentResource",
fulfillment_activity={
"type": "string",
"codeHook": {
"messageVersion": "string",
"uri": "string",
},
},
conclusion_statement={
"messages": [{
"content": "string",
"contentType": "string",
"groupNumber": 0,
}],
"responseCard": "string",
},
confirmation_prompt={
"maxAttempts": 0,
"messages": [{
"content": "string",
"contentType": "string",
"groupNumber": 0,
}],
"responseCard": "string",
},
create_version=False,
description="string",
dialog_code_hook={
"messageVersion": "string",
"uri": "string",
},
follow_up_prompt={
"prompt": {
"maxAttempts": 0,
"messages": [{
"content": "string",
"contentType": "string",
"groupNumber": 0,
}],
"responseCard": "string",
},
"rejectionStatement": {
"messages": [{
"content": "string",
"contentType": "string",
"groupNumber": 0,
}],
"responseCard": "string",
},
},
name="string",
parent_intent_signature="string",
rejection_statement={
"messages": [{
"content": "string",
"contentType": "string",
"groupNumber": 0,
}],
"responseCard": "string",
},
sample_utterances=["string"],
slots=[{
"name": "string",
"slotConstraint": "string",
"slotType": "string",
"description": "string",
"priority": 0,
"responseCard": "string",
"sampleUtterances": ["string"],
"slotTypeVersion": "string",
"valueElicitationPrompt": {
"maxAttempts": 0,
"messages": [{
"content": "string",
"contentType": "string",
"groupNumber": 0,
}],
"responseCard": "string",
},
}])
const intentResource = new aws.lex.Intent("intentResource", {
fulfillmentActivity: {
type: "string",
codeHook: {
messageVersion: "string",
uri: "string",
},
},
conclusionStatement: {
messages: [{
content: "string",
contentType: "string",
groupNumber: 0,
}],
responseCard: "string",
},
confirmationPrompt: {
maxAttempts: 0,
messages: [{
content: "string",
contentType: "string",
groupNumber: 0,
}],
responseCard: "string",
},
createVersion: false,
description: "string",
dialogCodeHook: {
messageVersion: "string",
uri: "string",
},
followUpPrompt: {
prompt: {
maxAttempts: 0,
messages: [{
content: "string",
contentType: "string",
groupNumber: 0,
}],
responseCard: "string",
},
rejectionStatement: {
messages: [{
content: "string",
contentType: "string",
groupNumber: 0,
}],
responseCard: "string",
},
},
name: "string",
parentIntentSignature: "string",
rejectionStatement: {
messages: [{
content: "string",
contentType: "string",
groupNumber: 0,
}],
responseCard: "string",
},
sampleUtterances: ["string"],
slots: [{
name: "string",
slotConstraint: "string",
slotType: "string",
description: "string",
priority: 0,
responseCard: "string",
sampleUtterances: ["string"],
slotTypeVersion: "string",
valueElicitationPrompt: {
maxAttempts: 0,
messages: [{
content: "string",
contentType: "string",
groupNumber: 0,
}],
responseCard: "string",
},
}],
});
type: aws:lex:Intent
properties:
conclusionStatement:
messages:
- content: string
contentType: string
groupNumber: 0
responseCard: string
confirmationPrompt:
maxAttempts: 0
messages:
- content: string
contentType: string
groupNumber: 0
responseCard: string
createVersion: false
description: string
dialogCodeHook:
messageVersion: string
uri: string
followUpPrompt:
prompt:
maxAttempts: 0
messages:
- content: string
contentType: string
groupNumber: 0
responseCard: string
rejectionStatement:
messages:
- content: string
contentType: string
groupNumber: 0
responseCard: string
fulfillmentActivity:
codeHook:
messageVersion: string
uri: string
type: string
name: string
parentIntentSignature: string
rejectionStatement:
messages:
- content: string
contentType: string
groupNumber: 0
responseCard: string
sampleUtterances:
- string
slots:
- description: string
name: string
priority: 0
responseCard: string
sampleUtterances:
- string
slotConstraint: string
slotType: string
slotTypeVersion: string
valueElicitationPrompt:
maxAttempts: 0
messages:
- content: string
contentType: string
groupNumber: 0
responseCard: string
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 - 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 - 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 - 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 - 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 - 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 - 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> - 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 - 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 - 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 - 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 - 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 - 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 - 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> - 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 - 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 - 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 - 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 - 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 - 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 - 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[] - 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 - 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 - 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 - 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 - 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 - 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 - 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> - 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 - 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 - 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 - 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 - 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 - 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 - 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> - 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 - 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 - 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 - 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 - 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 - 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 - 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[] - 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, IntentConclusionStatementArgs
IntentConclusionStatementMessage, IntentConclusionStatementMessageArgs
- 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, IntentConfirmationPromptArgs
- 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
- 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
- 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
- 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
- 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
- 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
IntentConfirmationPromptMessage, IntentConfirmationPromptMessageArgs
- 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, IntentDialogCodeHookArgs
- 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, IntentFollowUpPromptArgs
- 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, IntentFollowUpPromptPromptArgs
- 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, IntentFollowUpPromptPromptMessageArgs
- 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, IntentFollowUpPromptRejectionStatementArgs
IntentFollowUpPromptRejectionStatementMessage, IntentFollowUpPromptRejectionStatementMessageArgs
- 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, IntentFulfillmentActivityArgs
- 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, IntentFulfillmentActivityCodeHookArgs
- 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, IntentRejectionStatementArgs
IntentRejectionStatementMessage, IntentRejectionStatementMessageArgs
- 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, IntentSlotArgs
- 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, IntentSlotValueElicitationPromptArgs
- 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
- 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
- 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
- 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
- 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
- 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
IntentSlotValueElicitationPromptMessage, IntentSlotValueElicitationPromptMessageArgs
- 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
Using pulumi import
, import intents using their name. For example:
$ pulumi import aws:lex/intent:Intent order_flowers_intent OrderFlowers
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.