def __init__(self, *args, **kwargs): super(S3ContentsManager, self).__init__(*args, **kwargs) self._fs = S3FS( log=self.log, access_key_id=self.access_key_id, secret_access_key=self.secret_access_key, endpoint_url=self.endpoint_url, region_name=self.region_name, bucket=self.bucket, prefix=self.prefix, signature_version=self.signature_version, delimiter=self.delimiter)
def __init__(self, *args, **kwargs): super(S3ContentsManager, self).__init__(*args, **kwargs) self.run_init_s3_hook() self.bucket = _validate_bucket(self.bucket, self.log) self._fs = S3FS(log=self.log, access_key_id=self.access_key_id, secret_access_key=self.secret_access_key, endpoint_url=self.endpoint_url, region_name=self.region_name, bucket=self.bucket, prefix=self.prefix, session_token=self.session_token, signature_version=self.signature_version, delimiter=self.delimiter, sse=self.sse, kms_key_id=self.kms_key_id, boto3_session=self.boto3_session, s3fs_additional_kwargs=self.s3fs_additional_kwargs)