-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Injecting custom http headers in boto3 #2251
Comments
@rjeyasekar1 - Thank you for your post. You can inject custom headers to an api call by registering it with boto3 events. Here is the link to the documentation with example: Please let me know if you have any more concerns. |
Thanks, let me try that out. |
I am closing this issue as this has been resolved. Please reopen if you have any more concerns. |
@rjeyasekar1 did this work for you, and do you have an example? I haven't used boto before but was looking into testing something. |
@ntextreme3 here is an example that I got to work:
|
I have a need to send a custom http header (x-amzn-logs-format: json/emf
) as a part of boto put_log_events call to write embedded metrics to CloudWatch logs.
Does boto3 provide any method to inject custom headers?
Thanks.
The text was updated successfully, but these errors were encountered: