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

aws_sdk_eventbridge does not re-export HttpResponse #3591

Open
SAdams601 opened this issue Apr 18, 2024 · 3 comments
Open

aws_sdk_eventbridge does not re-export HttpResponse #3591

SAdams601 opened this issue Apr 18, 2024 · 3 comments

Comments

@SAdams601
Copy link

aws_sdk_eventbridge::operation::put_events::builders::PutEventsFluentBuilder::send returns a Result<PutEventsOutput, SdkError<PutEventsError, HttpResponse>> but HttpResponse is not available without adding the aws-smithy-runtime-api crate as a dependency.

@jdisanti
Copy link
Collaborator

To solve your immediate problem, if you import SdkError from aws_sdk_eventbridge::error::SdkError, it should have the generic already set: https://docs.rs/aws-sdk-eventbridge/latest/aws_sdk_eventbridge/error/type.SdkError.html

@SAdams601
Copy link
Author

I returning the result of the send call from a function so I need to reference the type in the return type of that function.

@jdisanti
Copy link
Collaborator

Yes. It's defaulted in the SdkError type that is re-exported in aws-sdk-eventbridge, so you don't actually need to reference it.

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

No branches or pull requests

2 participants