v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14159650798.5 KB

Sets the Amazon Lightsail resources that can access the specified Lightsail bucket.

Lightsail buckets currently support setting access for Lightsail instances in the same Amazon Web Services Region.

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

Headers

X-Amz-Target'Lightsail_20161128.SetResourceAccessForBucket' required

Request body

resourceNamestring required

The name of the Lightsail instance for which to set bucket access. The instance must be in a running or stopped state.

bucketNamestring required

The name of the bucket for which to set access to another Lightsail resource.

access'allow' | 'deny' required
<p>The access setting.</p> <p>The following access settings are available:</p> <ul> <li> <p> <code>allow</code> - Allows access to the bucket and its objects.</p> </li> <li> <p> <code>deny</code> - Denies access to the bucket and its objects. Use this setting to remove access for a resource previously set to <code>allow</code>.</p> </li> </ul>

Response

Success