def getResource()

in translate_captions/helper.py [0:0]


    def getResource(self, name, awsRegion=None):
        config = Config(
            retries = dict(
                max_attempts = 6
            )
        )

        if(awsRegion):
            return boto3.resource(name, region_name=awsRegion, config=config)
        else:
            return boto3.resource(name, config=config)