/AWS1/CL_LSA=>SETRESOURCEACCESSFORBUCKET()
¶
About SetResourceAccessForBucket¶
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.
Method Signature¶
IMPORTING¶
Required arguments:¶
IV_RESOURCENAME
TYPE /AWS1/LSARESOURCENAME
/AWS1/LSARESOURCENAME
¶
The name of the Lightsail instance for which to set bucket access. The instance must be in a running or stopped state.
IV_BUCKETNAME
TYPE /AWS1/LSABUCKETNAME
/AWS1/LSABUCKETNAME
¶
The name of the bucket for which to set access to another Lightsail resource.
IV_ACCESS
TYPE /AWS1/LSARESOURCEBUCKETACCESS
/AWS1/LSARESOURCEBUCKETACCESS
¶
The access setting.
The following access settings are available:
allow
- Allows access to the bucket and its objects.
deny
- Denies access to the bucket and its objects. Use this setting to remove access for a resource previously set toallow
.