-
Notifications
You must be signed in to change notification settings - Fork 421
fix(event_source): change the import location of boto3 in CodePipelineJobEvent data class #2353
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
fix(event_source): change the import location of boto3 in CodePipelineJobEvent data class #2353
Conversation
boto3
import locationboto3
import location incode_pipeline_job_event
Hey @leandrodamascena! |
boto3
import location incode_pipeline_job_event
boto3
import location incode_pipeline_job_event
boto3
import location incode_pipeline_job_event
Hi @darnley! Yes, we don't need to do anything else you've already done. I just pushed a commit with minor changes because we merged a PR before that and had a conflict. Thank you so much for sending this PR at lightning speed. 🚀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…eJobEvent data class (aws-powertools#2353) Co-authored-by: Leandro Damascena <[email protected]>
…eJobEvent data class (#2353) Co-authored-by: Leandro Damascena <[email protected]>
Issue number: #2352
Summary
Importing
boto3
at top level incode_pipeline_job_event.py
is affecting performance when import modules that needsaws_lambda_powertools.utilities.data_classes
.Changes
Change the import location of
boto3
incode_pipeline_job_event.py
to be within functionsetup_s3_client
instead of top level, since this is being used to download an artifact from CodePipeline Job and it is not a common use.User experience
Decrease of import time when importing modules that uses
aws_lambda_powertools.utilities.data_classes
, such asApiGatewayResolver
.Checklist
If your change doesn't seem to apply, please leave them unchecked.
Is this a breaking change?
RFC issue number:
Checklist:
Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.