@aws-lite/s3
Maintained by: @architect
Install
npm i @aws-lite/s3
Optionally install types:
npm i -D @aws-lite/s3-types
Methods
AbortMultipartUpload
Properties
Bucket(string) [required]-
S3 bucket name
Key(string) [required]-
S3 key / file name
UploadId(string) [required]-
ID of the multipart upload
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner RequestPayer(string)-
Sets request header:
x-amz-request-payer
Example
await aws.S3.AbortMultipartUpload({
Bucket: String, // required
Key: String, // required
UploadId: String, // required
ExpectedBucketOwner: String,
RequestPayer: String,
})
CompleteMultipartUpload
Properties
Bucket(string) [required]-
S3 bucket name
Key(string) [required]-
S3 key / file name
UploadId(string) [required]-
ID of the multipart upload
ChecksumCRC32(string)-
Sets request header:
x-amz-checksum-crc32 ChecksumCRC32C(string)-
Sets request header:
x-amz-checksum-crc32c ChecksumSHA1(string)-
Sets request header:
x-amz-checksum-sha1 ChecksumSHA256(string)-
Sets request header:
x-amz-checksum-sha256 ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner MultipartUpload(object)-
MultipartUploadobject containing details about the completed uploads - Example
await aws.S3.CompleteMultipartUpload({ Bucket: String, // required Key: String, // required UploadId: String, // required ChecksumCRC32: String, ChecksumCRC32C: String, ChecksumSHA1: String, ChecksumSHA256: String, ExpectedBucketOwner: String, MultipartUpload: Object, RequestPayer: String, SSECustomerAlgorithm: String, SSECustomerKey: String, SSECustomerKeyMD5: String, })
CopyObject
Properties
Bucket(string) [required]-
Name of the S3 bucket destination
Key(string) [required]-
S3 key / file name of the destination
ACL(string)-
Sets request header:
x-amz-acl BucketKeyEnabled(string)-
Sets request header:
x-amz-server-side-encryption-bucket-key-enabled CacheControl(string)-
Sets request header:
cache-control ChecksumAlgorithm(string)-
Sets request header:
x-amz-sdk-checksum-algorithm ContentDisposition(string)-
Sets request header:
content-disposition ContentEncoding(string)-
Sets request header:
content-encoding ContentLanguage(string)-
Sets request header:
content-language ContentType(string)-
Sets request header:
content-type CopySource(string)-
Sets request header:
x-amz-copy-source CopySourceIfMatch(string)-
Sets request header:
x-amz-copy-source-if-match CopySourceIfModifiedSince(string)-
Sets request header:
x-amz-copy-source-if-modified-since CopySourceIfNoneMatch(string)-
Sets request header:
x-amz-copy-source-if-none-match CopySourceIfUnmodifiedSince(string)-
Sets request header:
x-amz-copy-source-if-unmodified-since CopySourceSSECustomerAlgorithm(string)-
Sets request header:
x-amz-copy-source-server-side-encryption-customer-algorithm CopySourceSSECustomerKey(string)-
Sets request header:
x-amz-copy-source-server-side-encryption-customer-key CopySourceSSECustomerKeyMD5(string)-
Sets request header:
x-amz-copy-source-server-side-encryption-customer-key-MD5 ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner ExpectedSourceBucketOwner(string)-
Sets request header:
x-amz-source-expected-bucket-owner Expires(string)-
Sets request header:
expires GrantFullControl(string)-
Sets request header:
x-amz-grant-full-control GrantRead(string)-
Sets request header:
x-amz-grant-read GrantReadACP(string)-
Sets request header:
x-amz-grant-read-acp GrantWriteACP(string)-
Sets request header:
x-amz-grant-write-acp MetadataDirective(string)-
Sets request header:
x-amz-metadata-directive ObjectLockLegalHoldStatus(string)-
Sets request header:
x-amz-object-lock-legal-hold ObjectLockMode(string)-
Sets request header:
x-amz-object-lock-mode ObjectLockRetainUntilDate(string)-
Sets request header:
x-amz-object-lock-retain-until-date RequestPayer(string)-
Sets request header:
x-amz-request-payer SSECustomerAlgorithm(string)-
Sets request header:
x-amz-server-side-encryption-customer-algorithm SSECustomerKey(string)-
Sets request header:
x-amz-server-side-encryption-customer-key SSECustomerKeyMD5(string)-
Sets request header:
x-amz-server-side-encryption-customer-key-md5 SSEKMSEncryptionContext(string)-
Sets request header:
x-amz-server-side-encryption-context SSEKMSKeyId(string)-
Sets request header:
x-amz-server-side-encryption-aws-kms-key-id ServerSideEncryption(string)-
Sets request header:
x-amz-server-side-encryption StorageClass(string)-
Sets request header:
x-amz-storage-class Tagging(string)-
Sets request header:
x-amz-tagging TaggingDirective(string)-
Sets request header:
x-amz-tagging-directive WebsiteRedirectLocation(string)-
Sets request header:
x-amz-website-redirect-location
Example
await aws.S3.CopyObject({
Bucket: String, // required
Key: String, // required
ACL: String,
BucketKeyEnabled: String,
CacheControl: String,
ChecksumAlgorithm: String,
ContentDisposition: String,
ContentEncoding: String,
ContentLanguage: String,
ContentType: String,
CopySource: String,
CopySourceIfMatch: String,
CopySourceIfModifiedSince: String,
CopySourceIfNoneMatch: String,
CopySourceIfUnmodifiedSince: String,
CopySourceSSECustomerAlgorithm: String,
CopySourceSSECustomerKey: String,
CopySourceSSECustomerKeyMD5: String,
ExpectedBucketOwner: String,
ExpectedSourceBucketOwner: String,
Expires: String,
GrantFullControl: String,
GrantRead: String,
GrantReadACP: String,
GrantWriteACP: String,
MetadataDirective: String,
ObjectLockLegalHoldStatus: String,
ObjectLockMode: String,
ObjectLockRetainUntilDate: String,
RequestPayer: String,
SSECustomerAlgorithm: String,
SSECustomerKey: String,
SSECustomerKeyMD5: String,
SSEKMSEncryptionContext: String,
SSEKMSKeyId: String,
ServerSideEncryption: String,
StorageClass: String,
Tagging: String,
TaggingDirective: String,
WebsiteRedirectLocation: String,
})
CreateBucket
Properties
Bucket(string) [required]-
S3 bucket name
ACL(string)-
Sets request header:
x-amz-acl CreateBucketConfiguration(object)-
Complete bucket configuration object
- Example
await aws.S3.CreateBucket({ Bucket: String, // required ACL: String, CreateBucketConfiguration: Object, GrantFullControl: String, GrantRead: String, GrantReadACP: String, GrantWrite: String, GrantWriteACP: String, ObjectLockEnabledForBucket: String, ObjectOwnership: String, })
CreateMultipartUpload
Properties
Bucket(string) [required]-
S3 bucket name
Key(string) [required]-
S3 key / file name
ACL(string)-
Sets request header:
x-amz-acl BucketKeyEnabled(string)-
Sets request header:
x-amz-server-side-encryption-bucket-key-enabled CacheControl(string)-
Sets request header:
cache-control ChecksumAlgorithm(string)-
Sets request header:
x-amz-sdk-checksum-algorithm ContentDisposition(string)-
Sets request header:
content-disposition ContentEncoding(string)-
Sets request header:
content-encoding ContentLanguage(string)-
Sets request header:
content-language ContentType(string)-
Sets request header:
content-type ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner Expires(string)-
Sets request header:
expires GrantFullControl(string)-
Sets request header:
x-amz-grant-full-control GrantRead(string)-
Sets request header:
x-amz-grant-read GrantReadACP(string)-
Sets request header:
x-amz-grant-read-acp GrantWriteACP(string)-
Sets request header:
x-amz-grant-write-acp ObjectLockLegalHoldStatus(string)-
Sets request header:
x-amz-object-lock-legal-hold ObjectLockMode(string)-
Sets request header:
x-amz-object-lock-mode ObjectLockRetainUntilDate(string)-
Sets request header:
x-amz-object-lock-retain-until-date RequestPayer(string)-
Sets request header:
x-amz-request-payer SSECustomerAlgorithm(string)-
Sets request header:
x-amz-server-side-encryption-customer-algorithm SSECustomerKeyMD5(string)-
Sets request header:
x-amz-server-side-encryption-customer-key-md5 SSEKMSEncryptionContext(string)-
Sets request header:
x-amz-server-side-encryption-context SSEKMSKeyId(string)-
Sets request header:
x-amz-server-side-encryption-aws-kms-key-id ServerSideEncryption(string)-
Sets request header:
x-amz-server-side-encryption StorageClass(string)-
Sets request header:
x-amz-storage-class Tagging(string)-
Sets request header:
x-amz-tagging WebsiteRedirectLocation(string)-
Sets request header:
x-amz-website-redirect-location
Example
await aws.S3.CreateMultipartUpload({
Bucket: String, // required
Key: String, // required
ACL: String,
BucketKeyEnabled: String,
CacheControl: String,
ChecksumAlgorithm: String,
ContentDisposition: String,
ContentEncoding: String,
ContentLanguage: String,
ContentType: String,
ExpectedBucketOwner: String,
Expires: String,
GrantFullControl: String,
GrantRead: String,
GrantReadACP: String,
GrantWriteACP: String,
ObjectLockLegalHoldStatus: String,
ObjectLockMode: String,
ObjectLockRetainUntilDate: String,
RequestPayer: String,
SSECustomerAlgorithm: String,
SSECustomerKeyMD5: String,
SSEKMSEncryptionContext: String,
SSEKMSKeyId: String,
ServerSideEncryption: String,
StorageClass: String,
Tagging: String,
WebsiteRedirectLocation: String,
})
DeleteBucket
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.DeleteBucket({
Bucket: String, // required
ExpectedBucketOwner: String,
})
DeleteBucketAnalyticsConfiguration
Properties
Bucket(string) [required]-
S3 bucket name
Id(string) [required]-
ID of the object
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.DeleteBucketAnalyticsConfiguration({
Bucket: String, // required
Id: String, // required
ExpectedBucketOwner: String,
})
DeleteBucketCors
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.DeleteBucketCors({
Bucket: String, // required
ExpectedBucketOwner: String,
})
DeleteBucketEncryption
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.DeleteBucketEncryption({
Bucket: String, // required
ExpectedBucketOwner: String,
})
DeleteBucketIntelligentTieringConfiguration
Properties
Bucket(string) [required]-
S3 bucket name
Id(string) [required]-
ID of the object
Example
await aws.S3.DeleteBucketIntelligentTieringConfiguration({
Bucket: String, // required
Id: String, // required
})
DeleteBucketInventoryConfiguration
Properties
Bucket(string) [required]-
S3 bucket name
Id(string) [required]-
ID of the object
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.DeleteBucketInventoryConfiguration({
Bucket: String, // required
Id: String, // required
ExpectedBucketOwner: String,
})
DeleteBucketLifecycle
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.DeleteBucketLifecycle({
Bucket: String, // required
ExpectedBucketOwner: String,
})
DeleteBucketMetricsConfiguration
Properties
Bucket(string) [required]-
S3 bucket name
Id(string) [required]-
ID of the object
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.DeleteBucketMetricsConfiguration({
Bucket: String, // required
Id: String, // required
ExpectedBucketOwner: String,
})
DeleteBucketOwnershipControls
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.DeleteBucketOwnershipControls({
Bucket: String, // required
ExpectedBucketOwner: String,
})
DeleteBucketPolicy
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.DeleteBucketPolicy({
Bucket: String, // required
ExpectedBucketOwner: String,
})
DeleteBucketReplication
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.DeleteBucketReplication({
Bucket: String, // required
ExpectedBucketOwner: String,
})
DeleteBucketTagging
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.DeleteBucketTagging({
Bucket: String, // required
ExpectedBucketOwner: String,
})
DeleteBucketWebsite
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.DeleteBucketWebsite({
Bucket: String, // required
ExpectedBucketOwner: String,
})
DeleteObject
Properties
Bucket(string) [required]-
S3 bucket name
Key(string) [required]-
S3 key / file name
BypassGovernanceRetention(string)-
Sets request header:
x-amz-bypass-governance-retention ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner MFA(string)-
Sets request header:
x-amz-mfa RequestPayer(string)-
Sets request header:
x-amz-request-payer VersionId(string)-
Reference a specific version of the object
Example
await aws.S3.DeleteObject({
Bucket: String, // required
Key: String, // required
BypassGovernanceRetention: String,
ExpectedBucketOwner: String,
MFA: String,
RequestPayer: String,
VersionId: String,
})
DeleteObjects
Properties
Bucket(string) [required]-
S3 bucket name
Delete(object) [required]-
Object deletion request
BypassGovernanceRetention(string)-
Sets request header:
x-amz-bypass-governance-retention ChecksumAlgorithm(string)-
Sets request header:
x-amz-sdk-checksum-algorithm ContentMD5(string)-
Sets request header:
content-md5 ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner MFA(string)-
Sets request header:
x-amz-mfa RequestPayer(string)-
Sets request header:
x-amz-request-payer
Example
await aws.S3.DeleteObjects({
Bucket: String, // required
Delete: Object, // required
BypassGovernanceRetention: String,
ChecksumAlgorithm: String,
ContentMD5: String,
ExpectedBucketOwner: String,
MFA: String,
RequestPayer: String,
})
DeleteObjectTagging
Properties
Bucket(string) [required]-
S3 bucket name
Key(string) [required]-
S3 key / file name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner VersionId(string)-
Reference a specific version of the object
Example
await aws.S3.DeleteObjectTagging({
Bucket: String, // required
Key: String, // required
ExpectedBucketOwner: String,
VersionId: String,
})
DeletePublicAccessBlock
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.DeletePublicAccessBlock({
Bucket: String, // required
ExpectedBucketOwner: String,
})
GetBucketAccelerateConfiguration
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner RequestPayer(string)-
Sets request header:
x-amz-request-payer
Example
await aws.S3.GetBucketAccelerateConfiguration({
Bucket: String, // required
ExpectedBucketOwner: String,
RequestPayer: String,
})
GetBucketAcl
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.GetBucketAcl({
Bucket: String, // required
ExpectedBucketOwner: String,
})
GetBucketAnalyticsConfiguration
Properties
Bucket(string) [required]-
S3 bucket name
Id(string) [required]-
Id of the analytics configuration
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.GetBucketAnalyticsConfiguration({
Bucket: String, // required
Id: String, // required
ExpectedBucketOwner: String,
})
GetBucketCors
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.GetBucketCors({
Bucket: String, // required
ExpectedBucketOwner: String,
})
GetBucketEncryption
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.GetBucketEncryption({
Bucket: String, // required
ExpectedBucketOwner: String,
})
GetBucketIntelligentTieringConfiguration
Properties
Bucket(string) [required]-
S3 bucket name
Id(string) [required]-
Id of the intelligent tiering configuration
Example
await aws.S3.GetBucketIntelligentTieringConfiguration({
Bucket: String, // required
Id: String, // required
})
GetBucketInventoryConfiguration
Properties
Bucket(string) [required]-
S3 bucket name
Id(string) [required]-
Id of the inventory configuration
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.GetBucketInventoryConfiguration({
Bucket: String, // required
Id: String, // required
ExpectedBucketOwner: String,
})
GetBucketLifecycleConfiguration
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.GetBucketLifecycleConfiguration({
Bucket: String, // required
ExpectedBucketOwner: String,
})
GetBucketLocation
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.GetBucketLocation({
Bucket: String, // required
ExpectedBucketOwner: String,
})
GetBucketLogging
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.GetBucketLogging({
Bucket: String, // required
ExpectedBucketOwner: String,
})
GetBucketMetricsConfiguration
Properties
Bucket(string) [required]-
S3 bucket name
Id(string) [required]-
Id of the metrics configuration
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.GetBucketMetricsConfiguration({
Bucket: String, // required
Id: String, // required
ExpectedBucketOwner: String,
})
GetBucketNotificationConfiguration
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.GetBucketNotificationConfiguration({
Bucket: String, // required
ExpectedBucketOwner: String,
})
GetBucketOwnershipControls
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.GetBucketOwnershipControls({
Bucket: String, // required
ExpectedBucketOwner: String,
})
GetBucketPolicy
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.GetBucketPolicy({
Bucket: String, // required
ExpectedBucketOwner: String,
})
GetBucketPolicyStatus
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.GetBucketPolicyStatus({
Bucket: String, // required
ExpectedBucketOwner: String,
})
GetBucketReplication
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.GetBucketReplication({
Bucket: String, // required
ExpectedBucketOwner: String,
})
GetBucketRequestPayment
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.GetBucketRequestPayment({
Bucket: String, // required
ExpectedBucketOwner: String,
})
GetBucketTagging
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.GetBucketTagging({
Bucket: String, // required
ExpectedBucketOwner: String,
})
GetBucketVersioning
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.GetBucketVersioning({
Bucket: String, // required
ExpectedBucketOwner: String,
})
GetBucketWebsite
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.GetBucketWebsite({
Bucket: String, // required
ExpectedBucketOwner: String,
})
GetObject
Properties
Bucket(string) [required]-
S3 bucket name
Key(string) [required]-
S3 key / file name
ChecksumMode(string)-
Sets request header:
x-amz-checksum-mode ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner IfMatch(string)-
Sets request header:
if-match IfModifiedSince(string)-
Sets request header:
if-modified-since IfNoneMatch(string)-
Sets request header:
if-none-match IfUnmodifiedSince(string)-
Sets request header:
if-unmodified-since PartNumber(number)-
Part number (between 1 - 10,000) of the object
Range(string)-
Sets request header:
range RequestPayer(string)-
Sets request header:
x-amz-request-payer ResponseCacheControl(string)-
Sets response header:
cache-control ResponseContentDisposition(string)-
Sets response header:
content-disposition ResponseContentEncoding(string)-
Sets response header:
content-encoding ResponseContentLanguage(string)-
Sets response header:
content-language ResponseContentType(string)-
Sets response header:
content-type ResponseExpires(string)-
Sets response header:
expires SSECustomerAlgorithm(string)-
Sets request header:
x-amz-server-side-encryption-customer-algorithm SSECustomerKey(string)-
Sets request header:
x-amz-server-side-encryption-customer-key SSECustomerKeyMD5(string)-
Sets request header:
x-amz-server-side-encryption-customer-key-md5 VersionId(string)-
Reference a specific version of the object
rawResponsePayload(boolean)-
Set to
trueto return payload as a buffer streamResponsePayload(boolean)-
Set to
trueto return payload as a Node.js stream
Example
await aws.S3.GetObject({
Bucket: String, // required
Key: String, // required
ChecksumMode: String,
ExpectedBucketOwner: String,
IfMatch: String,
IfModifiedSince: String,
IfNoneMatch: String,
IfUnmodifiedSince: String,
PartNumber: Number,
Range: String,
RequestPayer: String,
ResponseCacheControl: String,
ResponseContentDisposition: String,
ResponseContentEncoding: String,
ResponseContentLanguage: String,
ResponseContentType: String,
ResponseExpires: String,
SSECustomerAlgorithm: String,
SSECustomerKey: String,
SSECustomerKeyMD5: String,
VersionId: String,
rawResponsePayload: Boolean,
streamResponsePayload: Boolean,
})
GetObjectAcl
Properties
Bucket(string) [required]-
S3 bucket name
Key(string) [required]-
S3 key / file name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner RequestPayer(string)-
Sets request header:
x-amz-request-payer VersionId(string)-
Reference a specific version of the object
Example
await aws.S3.GetObjectAcl({
Bucket: String, // required
Key: String, // required
ExpectedBucketOwner: String,
RequestPayer: String,
VersionId: String,
})
GetObjectAttributes
Properties
Bucket(string) [required]-
S3 bucket name
Key(string) [required]-
S3 key / file name
ObjectAttributes(array) [required]-
Specify attributes to be returned, can be one or more of:
ETag,Checksum,ObjectParts,StorageClass,ObjectSize - Example
await aws.S3.GetObjectAttributes({ Bucket: String, // required Key: String, // required ObjectAttributes: Array, // required ExpectedBucketOwner: String, MaxParts: Number, PartNumberMarker: String, RequestPayer: String, SSECustomerAlgorithm: String, SSECustomerKey: String, SSECustomerKeyMD5: String, VersionId: String, })
GetObjectLegalHold
Properties
Bucket(string) [required]-
S3 bucket name
Key(string) [required]-
S3 key / file name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner RequestPayer(string)-
Sets request header:
x-amz-request-payer VersionId(string)-
Reference a specific version of the object
Example
await aws.S3.GetObjectLegalHold({
Bucket: String, // required
Key: String, // required
ExpectedBucketOwner: String,
RequestPayer: String,
VersionId: String,
})
GetObjectLockConfiguration
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.GetObjectLockConfiguration({
Bucket: String, // required
ExpectedBucketOwner: String,
})
GetObjectRetention
Properties
Bucket(string) [required]-
S3 bucket name
Key(string) [required]-
S3 key / file name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner RequestPayer(string)-
Sets request header:
x-amz-request-payer VersionId(string)-
Reference a specific version of the object
Example
await aws.S3.GetObjectRetention({
Bucket: String, // required
Key: String, // required
ExpectedBucketOwner: String,
RequestPayer: String,
VersionId: String,
})
GetObjectTagging
Properties
Bucket(string) [required]-
S3 bucket name
Key(string) [required]-
S3 key / file name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner RequestPayer(string)-
Sets request header:
x-amz-request-payer VersionId(string)-
Reference a specific version of the object
Example
await aws.S3.GetObjectTagging({
Bucket: String, // required
Key: String, // required
ExpectedBucketOwner: String,
RequestPayer: String,
VersionId: String,
})
GetObjectTorrent
Properties
Bucket(string) [required]-
S3 bucket name
Key(string) [required]-
S3 key / file name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner RequestPayer(string)-
Sets request header:
x-amz-request-payer
Example
await aws.S3.GetObjectTorrent({
Bucket: String, // required
Key: String, // required
ExpectedBucketOwner: String,
RequestPayer: String,
})
GetPublicAccessBlock
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.GetPublicAccessBlock({
Bucket: String, // required
ExpectedBucketOwner: String,
})
HeadBucket
Properties
Bucket(string) [required]-
S3 bucket name
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.HeadBucket({
Bucket: String, // required
ExpectedBucketOwner: String,
})
HeadObject
Properties
Bucket(string) [required]-
S3 bucket name
Key(string) [required]-
S3 key / file name
ChecksumMode(string)-
Sets request header:
x-amz-checksum-mode ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner IfMatch(string)-
Sets request header:
if-match IfModifiedSince(string)-
Sets request header:
if-modified-since IfNoneMatch(string)-
Sets request header:
if-none-match IfUnmodifiedSince(string)-
Sets request header:
if-unmodified-since PartNumber(number)-
Part number (between 1 - 10,000) of the object
Range(string)-
Sets request header:
range RequestPayer(string)-
Sets request header:
x-amz-request-payer SSECustomerAlgorithm(string)-
Sets request header:
x-amz-server-side-encryption-customer-algorithm SSECustomerKey(string)-
Sets request header:
x-amz-server-side-encryption-customer-key SSECustomerKeyMD5(string)-
Sets request header:
x-amz-server-side-encryption-customer-key-md5 VersionId(string)-
Reference a specific version of the object
Example
await aws.S3.HeadObject({
Bucket: String, // required
Key: String, // required
ChecksumMode: String,
ExpectedBucketOwner: String,
IfMatch: String,
IfModifiedSince: String,
IfNoneMatch: String,
IfUnmodifiedSince: String,
PartNumber: Number,
Range: String,
RequestPayer: String,
SSECustomerAlgorithm: String,
SSECustomerKey: String,
SSECustomerKeyMD5: String,
VersionId: String,
})
ListBucketAnalyticsConfigurations
Properties
Bucket(string) [required]-
S3 bucket name
ContinuationToken(string)-
Pagination cursor token (returned as
NextContinuationToken ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner paginate(boolean, string)-
Enable automatic result pagination; use this instead of making your own individual pagination requests
Example
await aws.S3.ListBucketAnalyticsConfigurations({
Bucket: String, // required
ContinuationToken: String,
ExpectedBucketOwner: String,
paginate: Boolean || String,
})
ListBucketIntelligentTieringConfigurations
Properties
Bucket(string) [required]-
S3 bucket name
ContinuationToken(string)-
Pagination cursor token (returned as
NextContinuationToken ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner paginate(boolean, string)-
Enable automatic result pagination; use this instead of making your own individual pagination requests
Example
await aws.S3.ListBucketIntelligentTieringConfigurations({
Bucket: String, // required
ContinuationToken: String,
ExpectedBucketOwner: String,
paginate: Boolean || String,
})
ListBucketInventoryConfigurations
Properties
Bucket(string) [required]-
S3 bucket name
ContinuationToken(string)-
Pagination cursor token (returned as
NextContinuationToken ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner paginate(boolean, string)-
Enable automatic result pagination; use this instead of making your own individual pagination requests
Example
await aws.S3.ListBucketInventoryConfigurations({
Bucket: String, // required
ContinuationToken: String,
ExpectedBucketOwner: String,
paginate: Boolean || String,
})
ListBucketMetricsConfigurations
Properties
Bucket(string) [required]-
S3 bucket name
ContinuationToken(string)-
Pagination cursor token (returned as
NextContinuationToken ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner paginate(boolean, string)-
Enable automatic result pagination; use this instead of making your own individual pagination requests
Example
await aws.S3.ListBucketMetricsConfigurations({
Bucket: String, // required
ContinuationToken: String,
ExpectedBucketOwner: String,
paginate: Boolean || String,
})
ListBuckets
Properties
Example
await aws.S3.ListBuckets()
ListMultipartUploads
Properties
Bucket(string) [required]-
S3 bucket name
Delimiter(string)-
Delimiter character used to group keys
EncodingType(string)-
Object key encoding type (must be
url) ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner KeyMarker(string)-
Pagination cursor
MaxUploads(number)-
Maximum number of uploads between 1 and 1000 (inclusive) to return in the response
RequestPayer(string)-
Sets request header:
x-amz-request-payer UploadIdMarker(string)-
Deal with this later
paginate(boolean, string)-
Enable automatic result pagination; use this instead of making your own individual pagination requests
Example
await aws.S3.ListMultipartUploads({
Bucket: String, // required
Delimiter: String,
EncodingType: String,
ExpectedBucketOwner: String,
KeyMarker: String,
MaxUploads: Number,
RequestPayer: String,
UploadIdMarker: String,
paginate: Boolean || String,
})
ListObjectsV2
Properties
Bucket(string) [required]-
S3 bucket name
ContinuationToken(string)-
Pagination cursor token (returned as
NextContinuationToken Delimiter(string)-
Delimiter character used to group keys
EncodingType(string)-
Object key encoding type (must be
url) ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner FetchOwner(string)-
Return owner field with results
MaxKeys(number)-
Set the maximum number of keys returned per response
OptionalObjectAttributes(string)-
Sets request header:
x-amz-optional-object-attributes Prefix(string)-
Limit response to keys that begin with the specified prefix
RequestPayer(string)-
Sets request header:
x-amz-request-payer StartAfter(string)-
Starts listing after any specified key in the bucket
paginate(boolean, string)-
Enable automatic result pagination; use this instead of making your own individual pagination requests
Example
await aws.S3.ListObjectsV2({
Bucket: String, // required
ContinuationToken: String,
Delimiter: String,
EncodingType: String,
ExpectedBucketOwner: String,
FetchOwner: String,
MaxKeys: Number,
OptionalObjectAttributes: String,
Prefix: String,
RequestPayer: String,
StartAfter: String,
paginate: Boolean || String,
})
ListObjectVersions
Properties
Bucket(string) [required]-
S3 bucket name
Delimiter(string)-
Delimiter character used to group keys
EncodingType(string)-
Object key encoding type (must be
url) ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner KeyMarker(string)-
Pagination cursor
MaxKeys(number)-
Maximum number of keys (at most 1000) to be returned in the response
OptionalObjectAttributes(string)-
Sets request header:
x-amz-optional-object-attributes Prefix(string)-
Limit response to keys that begin with the specified prefix
RequestPayer(string)-
Sets request header:
x-amz-request-payer VersionIdMarker(string)-
Specify the version to begin listing from
- Example
await aws.S3.ListObjectVersions({ Bucket: String, // required Delimiter: String, EncodingType: String, ExpectedBucketOwner: String, KeyMarker: String, MaxKeys: Number, OptionalObjectAttributes: String, Prefix: String, RequestPayer: String, VersionIdMarker: String, paginate: Boolean || String, })
ListParts
Properties
Bucket(string) [required]-
S3 bucket name
Key(string) [required]-
S3 key / file name
UploadId(string) [required]-
ID of the multipart upload
ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner MaxParts(number)-
Maximum number of parts (at most 1000) to be returned in the response
PartNumberMarker(string)-
Pagination cursor
RequestPayer(string)-
Sets request header:
x-amz-request-payer SSECustomerAlgorithm(string)-
Sets request header:
x-amz-server-side-encryption-customer-algorithm SSECustomerKey(string)-
Sets request header:
x-amz-server-side-encryption-customer-key SSECustomerKeyMD5(string)-
Sets request header:
x-amz-server-side-encryption-customer-key-md5 paginate(boolean, string)-
Enable automatic result pagination; use this instead of making your own individual pagination requests
Example
await aws.S3.ListParts({
Bucket: String, // required
Key: String, // required
UploadId: String, // required
ExpectedBucketOwner: String,
MaxParts: Number,
PartNumberMarker: String,
RequestPayer: String,
SSECustomerAlgorithm: String,
SSECustomerKey: String,
SSECustomerKeyMD5: String,
paginate: Boolean || String,
})
PutBucketAccelerateConfiguration
Properties
AccelerateConfiguration(object) [required]-
Object specifying acceleration configurations; can contain one of:
Status: 'Enabled',Status: 'Suspended' - Example
await aws.S3.PutBucketAccelerateConfiguration({ AccelerateConfiguration: Object, // required Bucket: String, // required ChecksumAlgorithm: String, ExpectedBucketOwner: String, })
PutBucketAnalyticsConfiguration
Properties
AnalyticsConfiguration(object) [required]-
Object defining the analytics configuration
- Example
await aws.S3.PutBucketAnalyticsConfiguration({ AnalyticsConfiguration: Object, // required Bucket: String, // required Id: String, // required ExpectedBucketOwner: String, })
PutBucketCors
Properties
Bucket(string) [required]-
S3 bucket name
CORSConfiguration(object) [required]-
Object defining the CORS configuration
- Example
await aws.S3.PutBucketCors({ Bucket: String, // required CORSConfiguration: Object, // required ChecksumAlgorithm: String, ContentMD5: String, ExpectedBucketOwner: String, })
PutBucketEncryption
Properties
Bucket(string) [required]-
S3 bucket name
ServerSideEncryptionConfiguration(object) [required]-
Object defining the server side encryption configuration
- Example
await aws.S3.PutBucketEncryption({ Bucket: String, // required ServerSideEncryptionConfiguration: Object, // required ChecksumAlgorithm: String, ContentMD5: String, ExpectedBucketOwner: String, })
PutBucketIntelligentTieringConfiguration
Properties
Bucket(string) [required]-
S3 bucket name
Id(string) [required]-
Id of the intelligent tiering configuration
IntelligentTieringConfiguration(object) [required]-
Object defining the intelligent tiering configuration; required fields are:
Id,Status,Tierings - Example
await aws.S3.PutBucketIntelligentTieringConfiguration({ Bucket: String, // required Id: String, // required IntelligentTieringConfiguration: Object, // required })
PutBucketInventoryConfiguration
Properties
Bucket(string) [required]-
S3 bucket name
Id(string) [required]-
ID of the object
InventoryConfiguration(object) [required]-
Object defining the inventory configuration; required config fields are:
Id,IsEnabled,IncludedObjectVersion,Destination,Schedule - Example
await aws.S3.PutBucketInventoryConfiguration({ Bucket: String, // required Id: String, // required InventoryConfiguration: Object, // required ExpectedBucketOwner: String, })
PutBucketLifecycleConfiguration
Properties
Bucket(string) [required]-
S3 bucket name
LifecycleConfiguration(object) [required]-
Object defining the lifecycle configuration
- Example
await aws.S3.PutBucketLifecycleConfiguration({ Bucket: String, // required LifecycleConfiguration: Object, // required ChecksumAlgorithm: String, ContentMD5: String, ExpectedBucketOwner: String, })
PutBucketMetricsConfiguration
Properties
Bucket(string) [required]-
S3 bucket name
Id(string) [required]-
ID of the object
MetricsConfiguration(object) [required]-
Object defining the metrics configuration
- Example
await aws.S3.PutBucketMetricsConfiguration({ Bucket: String, // required Id: String, // required MetricsConfiguration: Object, // required ExpectedBucketOwner: String, })
PutBucketNotificationConfiguration
Properties
Bucket(string) [required]-
S3 bucket name
NotificationConfiguration(object) [required]-
Object defining the notification configuration
- Example
await aws.S3.PutBucketNotificationConfiguration({ Bucket: String, // required NotificationConfiguration: Object, // required ExpectedBucketOwner: String, })
PutBucketOwnershipControls
Properties
Bucket(string) [required]-
S3 bucket name
OwnershipControls(object) [required]-
Object defining the ownership controls
- Example
await aws.S3.PutBucketOwnershipControls({ Bucket: String, // required OwnershipControls: Object, // required ContentMD5: String, ExpectedBucketOwner: String, })
PutBucketPolicy
Properties
Bucket(string) [required]-
S3 bucket name
Policy(object) [required]-
Object defining the policy
- Example
await aws.S3.PutBucketPolicy({ Bucket: String, // required Policy: Object, // required ChecksumAlgorithm: String, ConfirmRemoveSelfBucketAccess: String, ContentMD5: String, ExpectedBucketOwner: String, })
PutBucketReplication
Properties
Bucket(string) [required]-
S3 bucket name
ReplicationConfiguration(object) [required]-
Object defining the replication configuration
- Example
await aws.S3.PutBucketReplication({ Bucket: String, // required ReplicationConfiguration: Object, // required ChecksumAlgorithm: String, ContentMD5: String, ExpectedBucketOwner: String, Token: String, })
PutBucketRequestPayment
Properties
Bucket(string) [required]-
S3 bucket name
RequestPaymentConfiguration(object) [required]-
Object defining the payment configuration; must contain
Payer, which can be one of:Requester,BucketOwner ChecksumAlgorithm(string)-
Sets request header:
x-amz-sdk-checksum-algorithm ContentMD5(string)-
Sets request header:
content-md5 ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner
Example
await aws.S3.PutBucketRequestPayment({
Bucket: String, // required
RequestPaymentConfiguration: Object, // required
ChecksumAlgorithm: String,
ContentMD5: String,
ExpectedBucketOwner: String,
})
PutBucketTagging
Properties
Bucket(string) [required]-
S3 bucket name
Tagging(object) [required]-
Object defining the tag set
- Example
await aws.S3.PutBucketTagging({ Bucket: String, // required Tagging: Object, // required ChecksumAlgorithm: String, ContentMD5: String, ExpectedBucketOwner: String, })
PutBucketVersioning
Properties
Bucket(string) [required]-
S3 bucket name
VersioningConfiguration(object) [required]-
Object defining the versioning configuration
- Example
await aws.S3.PutBucketVersioning({ Bucket: String, // required VersioningConfiguration: Object, // required ChecksumAlgorithm: String, ContentMD5: String, ExpectedBucketOwner: String, MFA: String, })
PutBucketWebsite
Properties
Bucket(string) [required]-
S3 bucket name
WebsiteConfiguration(object) [required]-
Object defining the website configuration
- Example
await aws.S3.PutBucketWebsite({ Bucket: String, // required WebsiteConfiguration: Object, // required ChecksumAlgorithm: String, ContentMD5: String, ExpectedBucketOwner: String, })
PutObject
Properties
Bucket(string) [required]-
S3 bucket name
Key(string) [required]-
S3 key / file name
ACL(string)-
Sets request header:
x-amz-acl ApplyChecksum(boolean)-
Sign payload; enabling this option may significantly increase memory and latency
Body(buffer, stream, string)-
String or buffer to be uploaded
BucketKeyEnabled(string)-
Sets request header:
x-amz-server-side-encryption-bucket-key-enabled CacheControl(string)-
Sets request header:
cache-control ChecksumAlgorithm(string)-
Sets request header:
x-amz-sdk-checksum-algorithm ChecksumCRC32(string)-
Sets request header:
x-amz-checksum-crc32 ChecksumCRC32C(string)-
Sets request header:
x-amz-checksum-crc32c ChecksumSHA1(string)-
Sets request header:
x-amz-checksum-sha1 ChecksumSHA256(string)-
Sets request header:
x-amz-checksum-sha256 ContentDisposition(string)-
Sets request header:
content-disposition ContentEncoding(string)-
Sets request header:
content-encoding ContentLanguage(string)-
Sets request header:
content-language ContentLength(string)-
Sets request header:
content-length ContentMD5(string)-
Sets request header:
content-md5 ContentType(string)-
Sets request header:
content-type ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner Expires(string)-
Sets request header:
expires File(string)-
File path to be read and uploaded from the local filesystem
GrantFullControl(string)-
Sets request header:
x-amz-grant-full-control GrantRead(string)-
Sets request header:
x-amz-grant-read GrantReadACP(string)-
Sets request header:
x-amz-grant-read-acp GrantWriteACP(string)-
Sets request header:
x-amz-grant-write-acp Metadata(object)-
Key / value pairs of object metadata; must conform to S3 metadata guidelines
- Example
await aws.S3.PutObject({ Bucket: String, // required Key: String, // required ACL: String, ApplyChecksum: Boolean, Body: Buffer || Stream || String, BucketKeyEnabled: String, CacheControl: String, ChecksumAlgorithm: String, ChecksumCRC32: String, ChecksumCRC32C: String, ChecksumSHA1: String, ChecksumSHA256: String, ContentDisposition: String, ContentEncoding: String, ContentLanguage: String, ContentLength: String, ContentMD5: String, ContentType: String, ExpectedBucketOwner: String, Expires: String, File: String, GrantFullControl: String, GrantRead: String, GrantReadACP: String, GrantWriteACP: String, Metadata: Object, MinChunkSize: Number, ObjectLockLegalHoldStatus: String, ObjectLockMode: String, ObjectLockRetainUntilDate: String, RequestPayer: String, SSECustomerAlgorithm: String, SSECustomerKey: String, SSECustomerKeyMD5: String, SSEKMSEncryptionContext: String, SSEKMSKeyId: String, ServerSideEncryption: String, StorageClass: String, Tagging: String, WebsiteRedirectLocation: String, })
PutObjectLegalHold
Properties
Bucket(string) [required]-
S3 bucket name
Key(string) [required]-
S3 key / file name
LegalHold(object) [required]-
Object containing the field
Status(string) which can be one of:ON,OFF ChecksumAlgorithm(string)-
Sets request header:
x-amz-sdk-checksum-algorithm ContentMD5(string)-
Sets request header:
content-md5 ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner RequestPayer(string)-
Sets request header:
x-amz-request-payer VersionId(string)-
Reference a specific version of the object
Example
await aws.S3.PutObjectLegalHold({
Bucket: String, // required
Key: String, // required
LegalHold: Object, // required
ChecksumAlgorithm: String,
ContentMD5: String,
ExpectedBucketOwner: String,
RequestPayer: String,
VersionId: String,
})
PutObjectLockConfiguration
Properties
Bucket(string) [required]-
S3 bucket name
ObjectLockConfiguration(object) [required]-
Object defining the object lock configuration
- Example
await aws.S3.PutObjectLockConfiguration({ Bucket: String, // required ObjectLockConfiguration: Object, // required ChecksumAlgorithm: String, ContentMD5: String, ExpectedBucketOwner: String, RequestPayer: String, Token: String, })
PutObjectRetention
Properties
Bucket(string) [required]-
S3 bucket name
Key(string) [required]-
S3 key / file name
Retention(object) [required]-
Object specifying the object retention parameters
- Example
await aws.S3.PutObjectRetention({ Bucket: String, // required Key: String, // required Retention: Object, // required BypassGovernanceRetention: String, ChecksumAlgorithm: String, ContentMD5: String, ExpectedBucketOwner: String, RequestPayer: String, VersionId: String, })
PutObjectTagging
Properties
Bucket(string) [required]-
S3 bucket name
Key(string) [required]-
S3 key / file name
Tagging(object) [required]-
Object containing the tag set
- Example
await aws.S3.PutObjectTagging({ Bucket: String, // required Key: String, // required Tagging: Object, // required ChecksumAlgorithm: String, ContentMD5: String, ExpectedBucketOwner: String, RequestPayer: String, VersionId: String, })
PutPublicAccessBlock
Properties
Bucket(string) [required]-
S3 bucket name
PublicAccessBlockConfiguration(object) [required]-
Object defining the public access block configuration
- Example
await aws.S3.PutPublicAccessBlock({ Bucket: String, // required PublicAccessBlockConfiguration: Object, // required ChecksumAlgorithm: String, ContentMD5: String, ExpectedBucketOwner: String, })
RestoreObject
Properties
Bucket(string) [required]-
S3 bucket name
Key(string) [required]-
S3 key / file name
RestoreRequest(object) [required]-
Object defining the restore request
- Example
await aws.S3.RestoreObject({ Bucket: String, // required Key: String, // required RestoreRequest: Object, // required ChecksumAlgorithm: String, ExpectedBucketOwner: String, RequestPayer: String, VersionId: String, })
Upload
Properties
Bucket(string) [required]-
S3 bucket name
Key(string) [required]-
S3 key / file name
ACL(string)-
Sets request header:
x-amz-acl Body(buffer, stream, string)-
String or buffer to be uploaded; per S3, size should be 5MB or greater
BucketKeyEnabled(string)-
Sets request header:
x-amz-server-side-encryption-bucket-key-enabled CacheControl(string)-
Sets request header:
cache-control ChecksumAlgorithm(string)-
Sets request header:
x-amz-sdk-checksum-algorithm ChecksumCRC32(string)-
Sets request header:
x-amz-checksum-crc32 ChecksumCRC32C(string)-
Sets request header:
x-amz-checksum-crc32c ChecksumSHA1(string)-
Sets request header:
x-amz-checksum-sha1 ChecksumSHA256(string)-
Sets request header:
x-amz-checksum-sha256 ChunkSize(number)-
Size of each chunk to upload in byes (also aliased to
partSize); default is 10 MB Concurrency(number)-
Maximum concurrent uploads (also aliased to
queueSize); default is 5, setting to 1 synchronously, sequentially uploads chunks; memory consumption is (ChunkSize+ 1) *Concurrency ContentDisposition(string)-
Sets request header:
content-disposition ContentEncoding(string)-
Sets request header:
content-encoding ContentLanguage(string)-
Sets request header:
content-language ContentType(string)-
Sets request header:
content-type ExpectedBucketOwner(string)-
Sets request header:
x-amz-expected-bucket-owner Expires(string)-
Sets request header:
expires File(string)-
File path to be read and uploaded from the local filesystem; per S3, size should be 5MB or greater
GrantFullControl(string)-
Sets request header:
x-amz-grant-full-control GrantRead(string)-
Sets request header:
x-amz-grant-read GrantReadACP(string)-
Sets request header:
x-amz-grant-read-acp GrantWriteACP(string)-
Sets request header:
x-amz-grant-write-acp Metadata(object)-
Key / value pairs of object metadata; must conform to S3 metadata guidelines
- Example
await aws.S3.Upload({ Bucket: String, // required Key: String, // required ACL: String, Body: Buffer || Stream || String, BucketKeyEnabled: String, CacheControl: String, ChecksumAlgorithm: String, ChecksumCRC32: String, ChecksumCRC32C: String, ChecksumSHA1: String, ChecksumSHA256: String, ChunkSize: Number, Concurrency: Number, ContentDisposition: String, ContentEncoding: String, ContentLanguage: String, ContentType: String, ExpectedBucketOwner: String, Expires: String, File: String, GrantFullControl: String, GrantRead: String, GrantReadACP: String, GrantWriteACP: String, Metadata: Object, ObjectLockLegalHoldStatus: String, ObjectLockMode: String, ObjectLockRetainUntilDate: String, RequestPayer: String, SSECustomerAlgorithm: String, SSECustomerKey: String, SSECustomerKeyMD5: String, SSEKMSEncryptionContext: String, SSEKMSKeyId: String, ServerSideEncryption: String, StorageClass: String, Tagging: String, WebsiteRedirectLocation: String, })
UploadPart
Properties
Bucket(string) [required]-
S3 bucket name
Key(string) [required]-
S3 key / file name
Body(buffer, stream, string)-
Stream of data to be uploaded
- Example
await aws.S3.UploadPart({ Bucket: String, // required Key: String, // required Body: Buffer || Stream || String, ChecksumAlgorithm: String, ChecksumCRC32: String, ChecksumCRC32C: String, ChecksumSHA1: String, ChecksumSHA256: String, ContentLength: String, ContentMD5: String, ExpectedBucketOwner: String, PartNumber: Number, RequestPayer: String, SSECustomerAlgorithm: String, SSECustomerKey: String, SSECustomerKeyMD5: String, })
Methods yet to be implemented
Please help out by opening a PR!