Namespace: s3
Functions
createBucket
▸ createBucket(params
): Promise
<S3.CreateBucketCommandOutput
>
Creates a new bucket.
Parameters
Name | Type |
---|---|
params |
CreateBucketCommandInput |
Returns
Promise
<S3.CreateBucketCommandOutput
>
getObject
▸ getObject(params
): Promise
<S3.GetObjectCommandOutput
>
Retrieves objects from Amazon S3.
Parameters
Name | Type |
---|---|
params |
GetObjectCommandInput |
Returns
Promise
<S3.GetObjectCommandOutput
>
headBucket
▸ headBucket(params
): Promise
<S3.HeadBucketCommandOutput
>
This operation is useful to determine if a bucket exists and you have permission to access it.
Parameters
Name | Type |
---|---|
params |
HeadBucketCommandInput |
Returns
Promise
<S3.HeadBucketCommandOutput
>
headObject
▸ headObject(params
): Promise
<S3.HeadObjectCommandOutput
>
The HEAD operation retrieves metadata from an object without returning the object itself. This operation is useful if you’re only interested in an object’s metadata. To use HEAD, you must have READ access to the object.
Parameters
Name | Type |
---|---|
params |
HeadObjectCommandInput |
Returns
Promise
<S3.HeadObjectCommandOutput
>
putBucketPolicy
▸ putBucketPolicy(params
): Promise
<S3.PutBucketPolicyCommandOutput
>
Replaces a policy on a bucket. If the bucket already has a policy, the one in this request completely replaces it.
Parameters
Name | Type |
---|---|
params |
PutBucketPolicyCommandInput |
Returns
Promise
<S3.PutBucketPolicyCommandOutput
>
putBucketTagging
▸ putBucketTagging(params
): Promise
<S3.PutBucketTaggingCommandOutput
>
Sets the tags for a bucket.
Parameters
Name | Type |
---|---|
params |
PutBucketTaggingCommandInput |
Returns
Promise
<S3.PutBucketTaggingCommandOutput
>
putObject
▸ putObject(params
): Promise
<S3.PutObjectCommandOutput
>
Adds an object to a bucket.
Parameters
Name | Type |
---|---|
params |
PutObjectCommandInput |
Returns
Promise
<S3.PutObjectCommandOutput
>