# SubSlotTypeCompositionProperty

Subslot type composition.

- Source: Generated at build time
- Type last changed: v2.234.0 · 8 Jan 2026

## 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 subSlotTypeCompositionProperty: lex.CfnBot.SubSlotTypeCompositionProperty = {
  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

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

SubSlotTypeCompositionProperty subSlotTypeCompositionProperty = SubSlotTypeCompositionProperty.builder()
        .name("name")

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

subSlotTypeCompositionProperty := &SubSlotTypeCompositionProperty{
	Name: jsii.String("name"),

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

## Properties

- `name`: string (required) — Name of a constituent sub slot inside a composite slot.

- `slotTypeId`: string — The unique identifier assigned to a slot type.

  This refers to either a built-in slot type or the unique slotTypeId of a custom slot type.

- `slotTypeName`: string
