You can use this operation to obtain the content and metadata of an object, as long as you have READ permission for the object.
This operation makes server-side encryption available.
By default, the content of the object with the latest version ID is obtained. If the version ID of the object is a deletion mark, 404 is returned. You can specify versionId to obtain the content of an object of the desired version.
For Cold objects, the response varies with the restoration status of the objects. If the objects have been restored, then the x-amz-restore header is returned indicating the expiry date of the objects when they are successfully downloaded. If you request to download Cold objects that are not restored or are being restored, a 403 Forbidden error is returned.