Struct aws_sdk_cloudfront::types::builders::S3OriginBuilder
source · #[non_exhaustive]pub struct S3OriginBuilder { /* private fields */ }
Expand description
A builder for S3Origin
.
Implementations§
source§impl S3OriginBuilder
impl S3OriginBuilder
sourcepub fn domain_name(self, input: impl Into<String>) -> Self
pub fn domain_name(self, input: impl Into<String>) -> Self
The DNS name of the Amazon S3 origin.
This field is required.sourcepub fn set_domain_name(self, input: Option<String>) -> Self
pub fn set_domain_name(self, input: Option<String>) -> Self
The DNS name of the Amazon S3 origin.
sourcepub fn get_domain_name(&self) -> &Option<String>
pub fn get_domain_name(&self) -> &Option<String>
The DNS name of the Amazon S3 origin.
sourcepub fn origin_access_identity(self, input: impl Into<String>) -> Self
pub fn origin_access_identity(self, input: impl Into<String>) -> Self
The CloudFront origin access identity to associate with the distribution. Use an origin access identity to configure the distribution so that end users can only access objects in an Amazon S3 bucket through CloudFront.
If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty OriginAccessIdentity
element.
To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty OriginAccessIdentity
element.
To replace the origin access identity, update the distribution configuration and specify the new origin access identity.
For more information, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content in the Amazon CloudFront Developer Guide.
This field is required.sourcepub fn set_origin_access_identity(self, input: Option<String>) -> Self
pub fn set_origin_access_identity(self, input: Option<String>) -> Self
The CloudFront origin access identity to associate with the distribution. Use an origin access identity to configure the distribution so that end users can only access objects in an Amazon S3 bucket through CloudFront.
If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty OriginAccessIdentity
element.
To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty OriginAccessIdentity
element.
To replace the origin access identity, update the distribution configuration and specify the new origin access identity.
For more information, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content in the Amazon CloudFront Developer Guide.
sourcepub fn get_origin_access_identity(&self) -> &Option<String>
pub fn get_origin_access_identity(&self) -> &Option<String>
The CloudFront origin access identity to associate with the distribution. Use an origin access identity to configure the distribution so that end users can only access objects in an Amazon S3 bucket through CloudFront.
If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty OriginAccessIdentity
element.
To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty OriginAccessIdentity
element.
To replace the origin access identity, update the distribution configuration and specify the new origin access identity.
For more information, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content in the Amazon CloudFront Developer Guide.
Trait Implementations§
source§impl Clone for S3OriginBuilder
impl Clone for S3OriginBuilder
source§fn clone(&self) -> S3OriginBuilder
fn clone(&self) -> S3OriginBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for S3OriginBuilder
impl Debug for S3OriginBuilder
source§impl Default for S3OriginBuilder
impl Default for S3OriginBuilder
source§fn default() -> S3OriginBuilder
fn default() -> S3OriginBuilder
source§impl PartialEq for S3OriginBuilder
impl PartialEq for S3OriginBuilder
source§fn eq(&self, other: &S3OriginBuilder) -> bool
fn eq(&self, other: &S3OriginBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for S3OriginBuilder
Auto Trait Implementations§
impl Freeze for S3OriginBuilder
impl RefUnwindSafe for S3OriginBuilder
impl Send for S3OriginBuilder
impl Sync for S3OriginBuilder
impl Unpin for S3OriginBuilder
impl UnwindSafe for S3OriginBuilder
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