# SlotValueOverrideProperty

The slot values that Amazon Lex uses when it sets slot values in a dialog step.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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 slotValueOverrideProperty: lex.CfnBot.SlotValueOverrideProperty = {
  shape: 'shape',
  value: {
    interpretedValue: 'interpretedValue',
  },
  values: [slotValueOverrideProperty_],
};
```

Python:

```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_property = lex.CfnBot.SlotValueOverrideProperty(
    shape="shape",
    value=lex.CfnBot.SlotValueProperty(
        interpreted_value="interpretedValue"
    ),
    values=[slot_value_override_property_]
)
```

Java:

```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_;

SlotValueOverrideProperty slotValueOverrideProperty = SlotValueOverrideProperty.builder()
        .shape("shape")
        .value(SlotValueProperty.builder()
                .interpretedValue("interpretedValue")
                .build())
        .values(List.of(slotValueOverrideProperty_))
        .build();
```

C# / .NET:

```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 slotValueOverrideProperty = new SlotValueOverrideProperty {
    Shape = "shape",
    Value = new SlotValueProperty {
        InterpretedValue = "interpretedValue"
    },
    Values = new [] { slotValueOverrideProperty_ }
};
```

Golang:

```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

slotValueOverrideProperty := &SlotValueOverrideProperty{
	Shape: jsii.String("shape"),
	Value: &SlotValueProperty{
		InterpretedValue: jsii.String("interpretedValue"),
	},
	Values: []interface{}{
		slotValueOverrideProperty_,
	},
}
```

## Properties

- `shape`: string — When the shape value is `List` , it indicates that the `values` field contains a list of slot values.

  When the value is `Scalar` , it indicates that the `value` field contains a single value.

- `value`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBot.SlotValueProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBot.SlotValueProperty.html) — The current value of the slot.

- `values`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBot.SlotValueOverrideProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBot.SlotValueOverrideProperty.html)[] — A list of one or more values that the user provided for the slot.

  For example, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
