bucket
Gets an individual bucket
resource
Overview
Name | bucket |
Type | Resource |
Description | bucket |
Id | awscc.lightsail.bucket |
Fields
Name | Datatype | Description |
---|---|---|
bucket_name | string | The name for the bucket. |
bundle_id | string | The ID of the bundle to use for the bucket. |
bucket_arn | string | |
object_versioning | boolean | Specifies whether to enable or disable versioning of objects in the bucket. |
access_rules | object | |
resources_receiving_access | array | The names of the Lightsail resources for which to set bucket access. |
read_only_access_accounts | array | An array of strings to specify the AWS account IDs that can access the bucket. |
tags | array | An array of key-value pairs to apply to this resource. |
url | string | The URL of the bucket. |
able_to_update_bundle | boolean | Indicates whether the bundle that is currently applied to a bucket can be changed to another bundle. You can update a bucket's bundle only one time within a monthly AWS billing cycle. |
region | string | AWS region. |
Methods
Currently only SELECT
is supported for this resource resource.
Example
SELECT
region,
bucket_name,
bundle_id,
bucket_arn,
object_versioning,
access_rules,
resources_receiving_access,
read_only_access_accounts,
tags,
url,
able_to_update_bundle
FROM awscc.lightsail.bucket
WHERE data__Identifier = '<BucketName>';
Permissions
To operate on the bucket
resource, the following permissions are required:
Read
lightsail:GetBuckets
Delete
lightsail:DeleteBucket,
lightsail:GetBuckets
Update
lightsail:GetBuckets,
lightsail:GetInstance,
lightsail:UpdateBucket,
lightsail:UpdateBucketBundle,
lightsail:SetResourceAccessForBucket,
lightsail:TagResource,
lightsail:UntagResource