Struct aws_sdk_lightsail::types::Bucket
source · #[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.
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>
An object that describes the location of the bucket, such as the Amazon Web Services Region and Availability Zone.
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 Amazon Web Services 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 Amazon Web Services 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§
source§impl Bucket
impl Bucket
sourcepub fn resource_type(&self) -> Option<&str>
pub fn resource_type(&self) -> Option<&str>
The Lightsail resource type of the bucket.
sourcepub fn access_rules(&self) -> Option<&AccessRules>
pub fn access_rules(&self) -> Option<&AccessRules>
An object that describes the access rules of the bucket.
sourcepub fn bundle_id(&self) -> Option<&str>
pub fn bundle_id(&self) -> Option<&str>
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.
sourcepub fn created_at(&self) -> Option<&DateTime>
pub fn created_at(&self) -> Option<&DateTime>
The timestamp when the distribution was created.
sourcepub fn location(&self) -> Option<&ResourceLocation>
pub fn location(&self) -> Option<&ResourceLocation>
An object that describes the location of the bucket, such as the Amazon Web Services Region and Availability Zone.
sourcepub fn support_code(&self) -> Option<&str>
pub fn support_code(&self) -> Option<&str>
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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
sourcepub fn object_versioning(&self) -> Option<&str>
pub fn object_versioning(&self) -> Option<&str>
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.
sourcepub fn able_to_update_bundle(&self) -> Option<bool>
pub fn able_to_update_bundle(&self) -> 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 Amazon Web Services billing cycle.
Use the UpdateBucketBundle action to change a bucket's bundle.
sourcepub fn readonly_access_accounts(&self) -> &[String]
pub fn readonly_access_accounts(&self) -> &[String]
An array of strings that specify the Amazon Web Services account IDs that have read-only access to the bucket.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .readonly_access_accounts.is_none()
.
sourcepub fn resources_receiving_access(&self) -> &[ResourceReceivingAccess]
pub fn resources_receiving_access(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .resources_receiving_access.is_none()
.
sourcepub fn state(&self) -> Option<&BucketState>
pub fn state(&self) -> Option<&BucketState>
An object that describes the state of the bucket.
sourcepub fn access_log_config(&self) -> Option<&BucketAccessLogConfig>
pub fn access_log_config(&self) -> Option<&BucketAccessLogConfig>
An object that describes the access log configuration for the bucket.
Trait Implementations§
source§impl PartialEq for Bucket
impl PartialEq for Bucket
impl StructuralPartialEq for Bucket
Auto Trait Implementations§
impl Freeze for Bucket
impl RefUnwindSafe for Bucket
impl Send for Bucket
impl Sync for Bucket
impl Unpin for Bucket
impl UnwindSafe for Bucket
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more