Is your feature request related to a problem? Please describe.
Currently when I want to change boto3 client's config I have to pass the botocore.config.Config object to the CloudWandererBoto3Session's resource method. If I use CloudWandererAWSInterface to get resources the only way to pass config object to boto3 client is to include it as client_args in CloudWandererAWSInterface's get_resources method what causes unnecessary chain.
It makes impossible to inject ready-to-use CloudWandererAWSInterface object to high level code repositories or fetchers, since we have to pass client_args and handle passing client_args there.
Describe the solution you'd like
IMO good idea would be to allow passing Config object to CloudWandererBoto3Session's __init__ as an optional parameter:
Is your feature request related to a problem? Please describe. Currently when I want to change boto3 client's config I have to pass the
botocore.config.Config
object to theCloudWandererBoto3Session
'sresource
method. If I useCloudWandererAWSInterface
to get resources the only way to pass config object to boto3 client is to include it asclient_args
inCloudWandererAWSInterface
'sget_resources
method what causes unnecessary chain. It makes impossible to inject ready-to-useCloudWandererAWSInterface
object to high level code repositories or fetchers, since we have to passclient_args
and handle passingclient_args
there.Describe the solution you'd like IMO good idea would be to allow passing Config object to
CloudWandererBoto3Session
's__init__
as an optional parameter:then invoke
super().resource()
method withconfig=config or self.config
Describe alternatives you've considered N/A
Additional context N/A