#[non_exhaustive]pub struct CreateBucketOutputBuilder { /* private fields */ }
Expand description
A builder for CreateBucketOutput
.
Implementations§
source§impl CreateBucketOutputBuilder
impl CreateBucketOutputBuilder
sourcepub fn set_location(self, input: Option<String>) -> Self
pub fn set_location(self, input: Option<String>) -> Self
The location of the bucket.
sourcepub fn get_location(&self) -> &Option<String>
pub fn get_location(&self) -> &Option<String>
The location of the bucket.
sourcepub fn bucket_arn(self, input: impl Into<String>) -> Self
pub fn bucket_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the bucket.
For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.
For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:
. For example, to access the bucket reports
through Outpost my-outpost
owned by account 123456789012
in Region us-west-2
, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports
. The value must be URL encoded.
sourcepub fn set_bucket_arn(self, input: Option<String>) -> Self
pub fn set_bucket_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the bucket.
For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.
For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:
. For example, to access the bucket reports
through Outpost my-outpost
owned by account 123456789012
in Region us-west-2
, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports
. The value must be URL encoded.
sourcepub fn get_bucket_arn(&self) -> &Option<String>
pub fn get_bucket_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the bucket.
For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.
For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format arn:aws:s3-outposts:
. For example, to access the bucket reports
through Outpost my-outpost
owned by account 123456789012
in Region us-west-2
, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports
. The value must be URL encoded.
sourcepub fn build(self) -> CreateBucketOutput
pub fn build(self) -> CreateBucketOutput
Consumes the builder and constructs a CreateBucketOutput
.
Trait Implementations§
source§impl Clone for CreateBucketOutputBuilder
impl Clone for CreateBucketOutputBuilder
source§fn clone(&self) -> CreateBucketOutputBuilder
fn clone(&self) -> CreateBucketOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateBucketOutputBuilder
impl Debug for CreateBucketOutputBuilder
source§impl Default for CreateBucketOutputBuilder
impl Default for CreateBucketOutputBuilder
source§fn default() -> CreateBucketOutputBuilder
fn default() -> CreateBucketOutputBuilder
source§impl PartialEq<CreateBucketOutputBuilder> for CreateBucketOutputBuilder
impl PartialEq<CreateBucketOutputBuilder> for CreateBucketOutputBuilder
source§fn eq(&self, other: &CreateBucketOutputBuilder) -> bool
fn eq(&self, other: &CreateBucketOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.