ComponentsDocument loadersAWS S3 DirectoryOn this pageAWS S3 DirectoryAmazon Simple Storage Service (Amazon S3) is an object storage serviceAWS S3 DirectoryThis covers how to load document objects from an AWS S3 Directory object.#!pip install boto3from langchain.document_loaders import S3DirectoryLoaderloader = S3DirectoryLoader("testing-hwc")loader.load()Specifying a prefix​You can also specify a prefix for more finegrained control over what files to load.loader = S3DirectoryLoader("testing-hwc", prefix="fake")loader.load()    [Document(page_content='Lorem ipsum dolor sit amet.', lookup_str='', metadata={'source': 's3://testing-hwc/fake.docx'}, lookup_index=0)]Configuring the AWS Boto3 client​You can configure the AWS Boto3 client by passing
named arguments when creating the S3DirectoryLoader.
This is useful for instance when AWS credentials can't be set as environment variables.
See the list of parameters that can be configured.loader = S3DirectoryLoader("testing-hwc", aws_access_key_id="xxxx", aws_secret_access_key="yyyy")loader.load()PreviousAsyncHtmlNextAWS S3 FileSpecifying a prefixConfiguring the AWS Boto3 client