Skip to content
v2.278.0

SlotValueOverrideMapProperty Struct ​

Maps a slot name to the SlotValueOverride object.

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 slotValueOverrideMapProperty: lex.CfnBot.SlotValueOverrideMapProperty = {
  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

slot_value_override_map_property = 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_;

SlotValueOverrideMapProperty slotValueOverrideMapProperty = SlotValueOverrideMapProperty.builder()
        .slotName("slotName")
        .slotValueOverride(SlotValueOverrideProperty.builder()
                .shape("shape")
                .value(SlotValueProperty.builder()
                        .interpretedValue("interpretedValue")
                        .build())
                .values(List.of(slotValueOverrideProperty_))
                .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 slotValueOverrideMapProperty = 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

slotValueOverrideMapProperty := &SlotValueOverrideMapProperty{
	SlotName: jsii.String("slotName"),
	SlotValueOverride: &SlotValueOverrideProperty{
		Shape: jsii.String("shape"),
		Value: &SlotValueProperty{
			InterpretedValue: jsii.String("interpretedValue"),
		},
		Values: []interface{}{
			slotValueOverrideProperty_,
		},
	},
}

Properties ​

slotNameoptionalstringslot_nameoptionalstrslotNameoptionalStringSlotNameoptionalstringSlotNameoptional*string #
The name of the slot.
slotValueOverrideoptionalIResolvable | CfnBot.SlotValueOverridePropertyslot_value_overrideoptionaltyping.Union[IResolvable, SlotValueOverrideProperty]slotValueOverrideoptionalIResolvableSlotValueOverrideoptionalIResolvableSlotValueOverrideoptionalinterface{} #
The SlotValueOverride object to which the slot name will be mapped.