IntentOverrideProperty Struct
Override settings to configure the intent state.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lex as lex } from 'aws-cdk-lib';
declare const slotValueOverrideProperty_: lex.CfnBot.SlotValueOverrideProperty;
const intentOverrideProperty: lex.CfnBot.IntentOverrideProperty = {
name: 'name',
slots: [{
slotName: 'slotName',
slotValueOverride: {
shape: 'shape',
value: {
interpretedValue: 'interpretedValue',
},
values: [slotValueOverrideProperty_],
},
}],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lex as lex
# slot_value_override_property_: lex.CfnBot.SlotValueOverrideProperty
intent_override_property = lex.CfnBot.IntentOverrideProperty(
name="name",
slots=[lex.CfnBot.SlotValueOverrideMapProperty(
slot_name="slotName",
slot_value_override=lex.CfnBot.SlotValueOverrideProperty(
shape="shape",
value=lex.CfnBot.SlotValueProperty(
interpreted_value="interpretedValue"
),
values=[slot_value_override_property_]
)
)]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lex.*;
SlotValueOverrideProperty slotValueOverrideProperty_;
IntentOverrideProperty intentOverrideProperty = IntentOverrideProperty.builder()
.name("name")
.slots(List.of(SlotValueOverrideMapProperty.builder()
.slotName("slotName")
.slotValueOverride(SlotValueOverrideProperty.builder()
.shape("shape")
.value(SlotValueProperty.builder()
.interpretedValue("interpretedValue")
.build())
.values(List.of(slotValueOverrideProperty_))
.build())
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lex;
SlotValueOverrideProperty slotValueOverrideProperty_;
var intentOverrideProperty = new IntentOverrideProperty {
Name = "name",
Slots = new [] { new SlotValueOverrideMapProperty {
SlotName = "slotName",
SlotValueOverride = new SlotValueOverrideProperty {
Shape = "shape",
Value = new SlotValueProperty {
InterpretedValue = "interpretedValue"
},
Values = new [] { slotValueOverrideProperty_ }
}
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
var slotValueOverrideProperty_ SlotValueOverrideProperty
intentOverrideProperty := &IntentOverrideProperty{
Name: jsii.String("name"),
Slots: []interface{}{
&SlotValueOverrideMapProperty{
SlotName: jsii.String("slotName"),
SlotValueOverride: &SlotValueOverrideProperty{
Shape: jsii.String("shape"),
Value: &SlotValueProperty{
InterpretedValue: jsii.String("interpretedValue"),
},
Values: []interface{}{
slotValueOverrideProperty_,
},
},
},
},
}
Properties
The name of the intent.
Only required when you're switching intents.
slotsoptionalIResolvable | IResolvable | CfnBot.slotsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, SlotValueOverrideMapProperty]]]slotsoptionalIResolvableSlotsoptionalIResolvableSlotsoptionalinterface{} #A map of all of the slot value overrides for the intent.
The name of the slot maps to the value of the slot. Slots that are not included in the map aren't overridden.