Bucket
¶
Source code in docs_src/capo_lightsail/types/bucket.py
able_to_update_bundle
instance-attribute
¶
able_to_update_bundle: NotRequired[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 Amazon Web Services billing cycle.
Use the UpdateBucketBundle action to change a bucket's bundle.
access_log_config
instance-attribute
¶
access_log_config: NotRequired[BucketAccessLogConfig]
An object that describes the access log configuration for the bucket.
access_rules
instance-attribute
¶
access_rules: NotRequired[AccessRules]
An object that describes the access rules of the bucket.
arn
instance-attribute
¶
arn: NotRequired[NonEmptyString]
The Amazon Resource Name (ARN) of the bucket.
bundle_id
instance-attribute
¶
bundle_id: NotRequired[NonEmptyString]
The ID of the bundle currently applied to the bucket.
A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.
Use the UpdateBucketBundle action to change the bundle of a bucket.
cors
instance-attribute
¶
cors: NotRequired[BucketCorsConfig]
An array of cross-origin resource sharing (CORS) rules that identify origins and the HTTP methods that can be executed on your bucket. This field is only included in the response when CORS configuration is requested or when updating CORS configuration. For more information, see Configuring cross-origin resource sharing (CORS).
created_at
instance-attribute
¶
created_at: NotRequired[IsoDate]
The timestamp when the distribution was created.
location
instance-attribute
¶
location: NotRequired[ResourceLocation]
An object that describes the location of the bucket, such as the Amazon Web Services Region and Availability Zone.
object_versioning
instance-attribute
¶
object_versioning: NotRequired[NonEmptyString]
Indicates whether object versioning is enabled for the bucket.
The following options can be configured:
-
Enabled- Object versioning is enabled. -
Suspended- Object versioning was previously enabled but is currently suspended. Existing object versions are retained. -
NeverEnabled- Object versioning has never been enabled.
readonly_access_accounts
instance-attribute
¶
readonly_access_accounts: NotRequired[PartnerIdList]
An array of strings that specify the Amazon Web Services account IDs that have read-only access to the bucket.
resource_type
instance-attribute
¶
resource_type: NotRequired[NonEmptyString]
The Lightsail resource type of the bucket.
resources_receiving_access
instance-attribute
¶
resources_receiving_access: NotRequired[AccessReceiverList]
An array of objects that describe Lightsail instances that have access to the bucket.
Use the SetResourceAccessForBucket action to update the instances that have access to a bucket.
state
instance-attribute
¶
state: NotRequired[BucketState]
An object that describes the state of the bucket.
support_code
instance-attribute
¶
support_code: NotRequired[NonEmptyString]
The support code for a bucket. Include this code in your email to support when you have questions about a Lightsail bucket. This code enables our support team to look up your Lightsail information more easily.
tags
instance-attribute
¶
tags: NotRequired[TagList]
The tag keys and optional values for the bucket. For more information, see Tags in Amazon Lightsail in the Amazon Lightsail Developer Guide.