in enrichment_function/import_findings/helper.py [0:0]
def get_resource(self, name, aws_region=None):
config = Config(
retries = dict(
max_attempts = 5
)
)
if aws_region:
return boto3.resource(name, region_name=aws_region, config=config)
else:
return boto3.resource(name, config=config)