Object storage actions
Use the following API actions for Amazon Simple Storage Service (Amazon S3) to manage buckets and objects in the
Amazon Lightsail object storage service. Choose the name of an API action to view the
documentation for it in the Amazon S3 API reference. For more information
about buckets in Lightsail, see Object storage in Amazon Lightsail
Uploading files to buckets
-
PutObject - Adds a file to a bucket. For more information, see Uploading files to a bucket in Amazon Lightsail
in the Amazon Lightsail Developer Guide.
Uploading objects to buckets using multipart upload
-
CreateMultipartUpload - Initiates a multipart upload and returns an upload ID. For more information, see Initiate a multipart upload
in the Amazon Lightsail Developer Guide. -
UploadPart - Uploads a part in a specific multipart upload. For more information, see Upload a part
in the Amazon Lightsail Developer Guide. -
ListParts - Lists the parts that have been uploaded for a specific multipart upload. For more information, see List parts of a multipart upload
in the Amazon Lightsail Developer Guide. -
CompleteMultipartUpload - Completes a multipart upload by assembling previously uploaded parts. For more information, see Complete a multipart upload
in the Amazon Lightsail Developer Guide. -
ListMultipartUploads - Lists all in-progress multipart uploads for a bucket. For more information, see List multipart uploads for a bucket
in the Amazon Lightsail Developer Guide. -
AbortMultipartUpload - Stops a multipart upload. For more information, see Stop a multipart upload
in the Amazon Lightsail Developer Guide.
Listing objects and object details
-
ListObjectsV2 - Returns a list of the objects (up to 1,000 in each request) in a bucket. For more information, see Viewing objects in a bucket in Amazon Lightsail
in the Amazon Lightsail Developer Guide. -
HeadObject - Returns metadata from an object without returning the object itself. This action is useful if you're only interested in an object's metadata. For more information, see Viewing objects in a bucket in Amazon Lightsail
in the Amazon Lightsail Developer Guide. -
GetObject - Downloads an object from a bucket. For more information, see Downloading objects from a bucket in Amazon Lightsail
in the Amazon Lightsail Developer Guide. -
GetObjectTagging - Returns the tags of an object. For more information, see Tagging objects in a bucket in Amazon Lightsail
in the Amazon Lightsail Developer Guide. -
ListObjectVersions - Returns metadata about all versions of objects in a bucket. For more information, see Enabling and suspending object versioning in a bucket in Amazon Lightsail
in the Amazon Lightsail Developer Guide.
Copying and moving objects
-
CopyObject - Creates a copy of an object. For more information, see Copying or moving objects in a bucket in Amazon Lightsail
in the Amazon Lightsail Developer Guide.
Editing individual object permissions
-
GetObjectAcl - Sets the access control list (ACL) permissions for an object, which is how you can control the access permissions for an individual object. For more information, see Configuring access permissions for individual objects in a bucket in Amazon Lightsail
in the Amazon Lightsail Developer Guide. -
GetObjectAcl - Returns the access control list (ACL) set for an object, which controls the access permissions for the individual object. For more information, see Configuring access permissions for individual objects in a bucket in Amazon Lightsail
in the Amazon Lightsail Developer Guide.
Editing object tags
-
PutObjectTagging - Sets the supplied tag to an object. For more information, see Tagging objects in a bucket in Amazon Lightsail
in the Amazon Lightsail Developer Guide.
Listing and restoring object versions
-
ListObjectVersions - Returns metadata about all versions of objects in a bucket. For more information, see Enabling and suspending object versioning in a bucket in Amazon Lightsail
and Restoring previous versions of objects in a bucket in Amazon Lightsail in the Amazon Lightsail Developer Guide. -
CopyObject - Creates a copy of an object in a bucket, including previous versions of an object. To restore an object version, use the
CopyObject
action to copy a previous version of an object and make it the latest version. For more information, see Restoring previous versions of objects in a bucket in Amazon Lightsailin the Amazon Lightsail Developer Guide. -
DeleteObject - Deletes an object from a bucket, including previous versions of an object. For more information, see Delete multiple objects or object versions using the AWS CLI
in the Amazon Lightsail Developer Guide.
Deleting objects
-
DeleteObject - Deletes an object from a bucket. For more information, see Deleting objects in a bucket in Amazon Lightsail
in the Amazon Lightsail Developer Guide. -
DeleteObjects - Deletes multiple objects from a bucket using a single request. For more information, see Deleting objects in a bucket in Amazon Lightsail
in the Amazon Lightsail Developer Guide.