Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate operation calls that replace input shape with parameters #733

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

adam-fowler
Copy link
Member

@adam-fowler adam-fowler commented Sep 21, 2024

Corresponding soto-codegenerator PR is soto-project/soto-codegenerator#81

These are service files generated with additional operation calls that replace the input shape with parameters.
This makes for a nicer api than the create request, pass request into operation function. eg

let response = try await s3.getObject(bucket: "my-bucket", key: "my-file")

added as an alternative to

let request = S3.GetObjectRequest(bucket: "my-bucket", key: "my-file")
let response = try await s3.getObject(request)

I've also flagged everything as @inlinable so an optimised build should collapse down to the raw AWSClient.execute call

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants