Struct aws_sdk_cloudfront::types::S3OriginConfig
source · #[non_exhaustive]pub struct S3OriginConfig {
pub origin_access_identity: String,
}
Expand description
A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin or an S3 bucket that is configured as a website endpoint, use the CustomOriginConfig
element instead.
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.origin_access_identity: String
If you're using origin access control (OAC) instead of origin access identity, specify an empty OriginAccessIdentity
element. For more information, see Restricting access to an Amazon Web Services in the Amazon CloudFront Developer Guide.
The CloudFront origin access identity to associate with the origin. Use an origin access identity to configure the origin so that viewers can only access objects in an Amazon S3 bucket through CloudFront. The format of the value is:
origin-access-identity/cloudfront/ID-of-origin-access-identity
The ID-of-origin-access-identity
is the value that CloudFront returned in the ID
element when you created the origin access identity.
If you want viewers 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 about the origin access identity, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.
Implementations§
source§impl S3OriginConfig
impl S3OriginConfig
sourcepub fn origin_access_identity(&self) -> &str
pub fn origin_access_identity(&self) -> &str
If you're using origin access control (OAC) instead of origin access identity, specify an empty OriginAccessIdentity
element. For more information, see Restricting access to an Amazon Web Services in the Amazon CloudFront Developer Guide.
The CloudFront origin access identity to associate with the origin. Use an origin access identity to configure the origin so that viewers can only access objects in an Amazon S3 bucket through CloudFront. The format of the value is:
origin-access-identity/cloudfront/ID-of-origin-access-identity
The ID-of-origin-access-identity
is the value that CloudFront returned in the ID
element when you created the origin access identity.
If you want viewers 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 about the origin access identity, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.
source§impl S3OriginConfig
impl S3OriginConfig
sourcepub fn builder() -> S3OriginConfigBuilder
pub fn builder() -> S3OriginConfigBuilder
Creates a new builder-style object to manufacture S3OriginConfig
.
Trait Implementations§
source§impl Clone for S3OriginConfig
impl Clone for S3OriginConfig
source§fn clone(&self) -> S3OriginConfig
fn clone(&self) -> S3OriginConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for S3OriginConfig
impl Debug for S3OriginConfig
source§impl PartialEq for S3OriginConfig
impl PartialEq for S3OriginConfig
source§fn eq(&self, other: &S3OriginConfig) -> bool
fn eq(&self, other: &S3OriginConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for S3OriginConfig
Auto Trait Implementations§
impl Freeze for S3OriginConfig
impl RefUnwindSafe for S3OriginConfig
impl Send for S3OriginConfig
impl Sync for S3OriginConfig
impl Unpin for S3OriginConfig
impl UnwindSafe for S3OriginConfig
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