Struct aws_sdk_s3::types::CreateBucketConfiguration
source · #[non_exhaustive]pub struct CreateBucketConfiguration {
pub location_constraint: Option<BucketLocationConstraint>,
pub location: Option<LocationInfo>,
pub bucket: Option<BucketInfo>,
}
Expand description
The configuration information for the 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.location_constraint: Option<BucketLocationConstraint>
Specifies the Region where the bucket will be created. You might choose a Region to optimize latency, minimize costs, or address regulatory requirements. For example, if you reside in Europe, you will probably find it advantageous to create buckets in the Europe (Ireland) Region. For more information, see Accessing a bucket in the Amazon S3 User Guide.
If you don't specify a Region, the bucket is created in the US East (N. Virginia) Region (us-east-1) by default.
This functionality is not supported for directory buckets.
location: Option<LocationInfo>
Specifies the location where the bucket will be created.
For directory buckets, the location type is Availability Zone.
This functionality is only supported by directory buckets.
bucket: Option<BucketInfo>
Specifies the information about the bucket that will be created.
This functionality is only supported by directory buckets.
Implementations§
source§impl CreateBucketConfiguration
impl CreateBucketConfiguration
sourcepub fn location_constraint(&self) -> Option<&BucketLocationConstraint>
pub fn location_constraint(&self) -> Option<&BucketLocationConstraint>
Specifies the Region where the bucket will be created. You might choose a Region to optimize latency, minimize costs, or address regulatory requirements. For example, if you reside in Europe, you will probably find it advantageous to create buckets in the Europe (Ireland) Region. For more information, see Accessing a bucket in the Amazon S3 User Guide.
If you don't specify a Region, the bucket is created in the US East (N. Virginia) Region (us-east-1) by default.
This functionality is not supported for directory buckets.
sourcepub fn location(&self) -> Option<&LocationInfo>
pub fn location(&self) -> Option<&LocationInfo>
Specifies the location where the bucket will be created.
For directory buckets, the location type is Availability Zone.
This functionality is only supported by directory buckets.
sourcepub fn bucket(&self) -> Option<&BucketInfo>
pub fn bucket(&self) -> Option<&BucketInfo>
Specifies the information about the bucket that will be created.
This functionality is only supported by directory buckets.
source§impl CreateBucketConfiguration
impl CreateBucketConfiguration
sourcepub fn builder() -> CreateBucketConfigurationBuilder
pub fn builder() -> CreateBucketConfigurationBuilder
Creates a new builder-style object to manufacture CreateBucketConfiguration
.
Trait Implementations§
source§impl Clone for CreateBucketConfiguration
impl Clone for CreateBucketConfiguration
source§fn clone(&self) -> CreateBucketConfiguration
fn clone(&self) -> CreateBucketConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateBucketConfiguration
impl Debug for CreateBucketConfiguration
impl StructuralPartialEq for CreateBucketConfiguration
Auto Trait Implementations§
impl Freeze for CreateBucketConfiguration
impl RefUnwindSafe for CreateBucketConfiguration
impl Send for CreateBucketConfiguration
impl Sync for CreateBucketConfiguration
impl Unpin for CreateBucketConfiguration
impl UnwindSafe for CreateBucketConfiguration
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)