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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional 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.

tags: Option<Vec<Tag>>

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 Amazon Resource Name (ARN) 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.

The URL of the bucket.

Describes the resource location.

The name of the bucket.

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.

Creates a new builder-style object to manufacture Bucket

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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