aws.s3.read
- :
data =aws.s3.read(bucket, key)¶ Read an object from Amazon S3 and return its raw bytes as a column
uint8vector.Credentials and region come from the environment variables used by MATLAB cloud storage access:
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY, optionalAWS_SESSION_TOKEN, and optionalAWS_DEFAULT_REGION(default"us-east-1"). An optional custom endpoint may be set withAWS_ENDPOINT_URL(orAWS_S3_ENDPOINT/NEXUS_AWS_S3_ENDPOINT) for MinIO or local test servers.Missing credentials raise
MATLAB:aws:s3:MissingCredentials. A missing object raisesMATLAB:FileIO:InvalidRemoteLocation.