aws-amplify/amplify-swift

Support Amazon Lex v2

tingyao-chang opened this issue · 6 comments

Is your feature request related to a problem? Please describe.

I currently have a chatbot developed using Amazon Lex v2. I want to develop an iOS APP to access this chatbot, although AWS SDK for Swift supports Amazon Lex v2, but it is currently in Developer Preview. So there is no iOS related SDK that can directly do this for production workloads.

Describe the solution you'd like

Amplify Library for Swift can support Amazon Lex v2.

Describe alternatives you've considered

Amplify Library for Swift can provide a signature library for iOS APP to easily sign Amazon Lex v2 API requests.

References:
[1] https://docs.aws.amazon.com/lexv2/latest/APIReference/welcome.html
[2] https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html

Is the feature request related to any of the existing Amplify categories?

Predictions

Additional context

No response

This has been identified as a feature request. If this feature is important to you, we strongly encourage you to give a 👍 reaction on the request. This helps us prioritize new features most important to you. Thank you!

Thank you for raising the feature request. Our team will prioritize it and will post an update on the issue once we have more information.

Hi @tingyao-chang, Amplify V2 (currently our active development and main branch) depends on AWS SDK for Swift so unless we implement our own layer to interact with AWS Lex V2, fulfilling this feature request in Amplify will also make use of the sames clients in the Swift SDK. I'd recommend getting it working with the Swift SDK and pinning the version in your dependencies.

Is this the client you are looking to use? https://github.com/awslabs/aws-sdk-swift/blob/main/Sources/Services/AWSLexModelsV2/LexModelsV2Client.swift#L8

You can use Amplify.Auth as the credentials provider when initializing the configuration https://docs.amplify.aws/swift/build-a-backend/auth/accessing-credentials/

Thanks @lawmicha, I'm actually not sure if I should send this feature request to Amplify Swift. I know that the AWS SDK for Swift supports Amazon Lex v2, but since the AWS SDK for Swift is still in developer preview and workloads will go into production later, we are not considering using the AWS SDK for Swift at this time.

Feel free to open an issue over in AWS SDK for Swift if you have more questions or concerns. I'll close this issue in the Amplify repo, but feel free to open a new issue if you have a more specific feature request such as the APIs on the Predictions category. or questions for us

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.