Struct aws_sdk_lightsail::model::Bucket [−][src]
#[non_exhaustive]pub struct Bucket {Show 16 fields
pub resource_type: Option<String>,
pub access_rules: Option<AccessRules>,
pub arn: Option<String>,
pub bundle_id: Option<String>,
pub created_at: Option<DateTime>,
pub url: Option<String>,
pub location: Option<ResourceLocation>,
pub name: Option<String>,
pub support_code: Option<String>,
pub tags: Option<Vec<Tag>>,
pub object_versioning: Option<String>,
pub able_to_update_bundle: Option<bool>,
pub readonly_access_accounts: Option<Vec<String>>,
pub resources_receiving_access: Option<Vec<ResourceReceivingAccess>>,
pub state: Option<BucketState>,
pub access_log_config: Option<BucketAccessLogConfig>,
}
Expand description
Describes an Amazon Lightsail bucket.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.resource_type: Option<String>
The Lightsail resource type of the bucket (for example, Bucket
).
access_rules: Option<AccessRules>
An object that describes the access rules of the bucket.
arn: Option<String>
The Amazon Resource Name (ARN) of the bucket.
bundle_id: Option<String>
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.
created_at: Option<DateTime>
The timestamp when the distribution was created.
url: Option<String>
The URL of the bucket.
location: Option<ResourceLocation>
Describes the resource location.
name: Option<String>
The name of the bucket.
support_code: Option<String>
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.
The tag keys and optional values for the bucket. For more information, see Tags in Amazon Lightsail in the Amazon Lightsail Developer Guide.
object_versioning: Option<String>
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.
able_to_update_bundle: Option<bool>
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.
Use the UpdateBucketBundle action to change a bucket's bundle.
readonly_access_accounts: Option<Vec<String>>
An array of strings that specify the AWS account IDs that have read-only access to the bucket.
resources_receiving_access: Option<Vec<ResourceReceivingAccess>>
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: Option<BucketState>
An object that describes the state of the bucket.
access_log_config: Option<BucketAccessLogConfig>
An object that describes the access log configuration for the bucket.
Implementations
The Lightsail resource type of the bucket (for example, Bucket
).
An object that describes the access rules of the bucket.
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.
The timestamp when the distribution was created.
Describes the resource location.
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.
The tag keys and optional values for the bucket. For more information, see Tags in Amazon Lightsail in the Amazon Lightsail Developer Guide.
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.
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.
Use the UpdateBucketBundle action to change a bucket's bundle.
An array of strings that specify the AWS account IDs that have read-only access to the bucket.
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.
An object that describes the state of the bucket.
An object that describes the access log configuration for the bucket.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Bucket
impl UnwindSafe for Bucket
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more