pub struct OriginAccessControlBuilder { /* private fields */ }Expand description
Builder for CloudFront Origin Access Control.
Controls access from CloudFront to origins like S3 buckets.
Implementations§
Source§impl OriginAccessControlBuilder
impl OriginAccessControlBuilder
Sourcepub fn new(
id: &str,
name: &str,
origin_access_control_type: OriginAccessControlType,
signing_behavior: SigningBehavior,
signing_protocol: SigningProtocol,
) -> OriginAccessControlBuilder
pub fn new( id: &str, name: &str, origin_access_control_type: OriginAccessControlType, signing_behavior: SigningBehavior, signing_protocol: SigningProtocol, ) -> OriginAccessControlBuilder
Creates a new CloudFront Origin Access Control builder.
§Arguments
id- Unique identifier for the origin access controlname- Name of the origin access controlorigin_access_control_type- Type of origin (S3, MediaStore, Lambda, etc.)signing_behavior- When to sign requests (Never, NoOverride, Always)signing_protocol- Protocol for signing requests
pub fn build(self, stack_builder: &mut StackBuilder) -> OriginAccessControlRef
Auto Trait Implementations§
impl Freeze for OriginAccessControlBuilder
impl RefUnwindSafe for OriginAccessControlBuilder
impl Send for OriginAccessControlBuilder
impl Sync for OriginAccessControlBuilder
impl Unpin for OriginAccessControlBuilder
impl UnwindSafe for OriginAccessControlBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.