# CompositeSlotTypeSettingProperty

A composite slot is a combination of two or more slots that capture multiple pieces of information in a single user input.

- Source: Generated at build time
- Type last changed: v2.190.0 · 17 Apr 2025

## 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';
const compositeSlotTypeSettingProperty: lex.CfnBot.CompositeSlotTypeSettingProperty = {
  subSlots: [{
    name: 'name',

    // the properties below are optional
    slotTypeId: 'slotTypeId',
    slotTypeName: 'slotTypeName',
  }],
};
```

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

composite_slot_type_setting_property = lex.CfnBot.CompositeSlotTypeSettingProperty(
    sub_slots=[lex.CfnBot.SubSlotTypeCompositionProperty(
        name="name",

        # the properties below are optional
        slot_type_id="slotTypeId",
        slot_type_name="slotTypeName"
    )]
)
```

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.*;

CompositeSlotTypeSettingProperty compositeSlotTypeSettingProperty = CompositeSlotTypeSettingProperty.builder()
        .subSlots(List.of(SubSlotTypeCompositionProperty.builder()
                .name("name")

                // the properties below are optional
                .slotTypeId("slotTypeId")
                .slotTypeName("slotTypeName")
                .build()))
        .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;

var compositeSlotTypeSettingProperty = new CompositeSlotTypeSettingProperty {
    SubSlots = new [] { new SubSlotTypeCompositionProperty {
        Name = "name",

        // the properties below are optional
        SlotTypeId = "slotTypeId",
        SlotTypeName = "slotTypeName"
    } }
};
```

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"

compositeSlotTypeSettingProperty := &CompositeSlotTypeSettingProperty{
	SubSlots: []interface{}{
		&SubSlotTypeCompositionProperty{
			Name: jsii.String("name"),

			// the properties below are optional
			SlotTypeId: jsii.String("slotTypeId"),
			SlotTypeName: jsii.String("slotTypeName"),
		},
	},
}
```

## Properties

- `subSlots`: [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.SubSlotTypeCompositionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBot.SubSlotTypeCompositionProperty.html)[] — Subslots in the composite slot.
