aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.68k stars 3.93k forks source link

aws-lex: add composite slot type #22250

Open jinenab opened 2 years ago

jinenab commented 2 years ago

Describe the feature

I suggest adding the possibility to add a composite slot type for aws-cdk-lib/aws-lex This feature is available on aws-sdk and on the AWS console.

Screen Shot 2022-09-27 at 12 13 13 PM

Use Case

The use case of this is to reproduce the same behavior of a bot already build on the console with a composite slot type.

Proposed Solution

No response

Other Information

No response

Acknowledgements

CDK version used

2.43.1

Environment details (OS name and version, etc.)

macOs Monterey 12.6

peterwoodworth commented 2 years ago

Hey there! We actually don't provide any L2 support for Lex - just L1 support. This means that we support exactly what CloudFormation supports in aws-lex, no more and no less. We stay up to date with CloudFormation, so if CDK/CloudFormation don't support a feature, it would be best to submit a request in the CloudFormation Coverage Roadmap repository, if one doesn't already exist.

Alternatively, you may (or may not) be able to bridge this feature gap with an AwsCustomResource to make any API call. Maybe PutSlotType would work? Let me know, thanks 🙂