v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14159650798.5 KB

Updates an existing Amazon Lightsail bucket.

Use this action to update the configuration of an existing bucket, such as versioning, public accessibility, and the Amazon Web Services accounts that can access the bucket.

post/#X-Amz-Target=Lightsail_20161128.UpdateBucket

Headers

X-Amz-Target'Lightsail_20161128.UpdateBucket' required

Request body

bucketNamestring required

The name of the bucket to update.

versioningstring
<p>Specifies whether to enable or suspend versioning of objects in the bucket.</p> <p>The following options can be specified:</p> <ul> <li> <p> <code>Enabled</code> - Enables versioning of objects in the specified bucket.</p> </li> <li> <p> <code>Suspended</code> - Suspends versioning of objects in the specified bucket. Existing object versions are retained.</p> </li> </ul>
readonlyAccessAccountsNonEmptyString[]
<p>An array of strings to specify the Amazon Web Services account IDs that can access the bucket.</p> <p>You can give a maximum of 10 Amazon Web Services accounts access to a bucket.</p>

Response

Success