Struct aws_sdk_cloudfront::operation::create_origin_access_control::builders::CreateOriginAccessControlFluentBuilder
source · pub struct CreateOriginAccessControlFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateOriginAccessControl
.
Creates a new origin access control in CloudFront. After you create an origin access control, you can add it to an origin in a CloudFront distribution so that CloudFront sends authenticated (signed) requests to the origin.
This makes it possible to block public access to the origin, allowing viewers (users) to access the origin's content only through CloudFront.
For more information about using a CloudFront origin access control, see Restricting access to an Amazon Web Services origin in the Amazon CloudFront Developer Guide.
Implementations§
source§impl CreateOriginAccessControlFluentBuilder
impl CreateOriginAccessControlFluentBuilder
sourcepub fn as_input(&self) -> &CreateOriginAccessControlInputBuilder
pub fn as_input(&self) -> &CreateOriginAccessControlInputBuilder
Access the CreateOriginAccessControl as a reference.
sourcepub async fn send(
self
) -> Result<CreateOriginAccessControlOutput, SdkError<CreateOriginAccessControlError, HttpResponse>>
pub async fn send( self ) -> Result<CreateOriginAccessControlOutput, SdkError<CreateOriginAccessControlError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<CreateOriginAccessControlOutput, CreateOriginAccessControlError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateOriginAccessControlOutput, CreateOriginAccessControlError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn origin_access_control_config(
self,
input: OriginAccessControlConfig
) -> Self
pub fn origin_access_control_config( self, input: OriginAccessControlConfig ) -> Self
Contains the origin access control.
sourcepub fn set_origin_access_control_config(
self,
input: Option<OriginAccessControlConfig>
) -> Self
pub fn set_origin_access_control_config( self, input: Option<OriginAccessControlConfig> ) -> Self
Contains the origin access control.
sourcepub fn get_origin_access_control_config(
&self
) -> &Option<OriginAccessControlConfig>
pub fn get_origin_access_control_config( &self ) -> &Option<OriginAccessControlConfig>
Contains the origin access control.
Trait Implementations§
source§impl Clone for CreateOriginAccessControlFluentBuilder
impl Clone for CreateOriginAccessControlFluentBuilder
source§fn clone(&self) -> CreateOriginAccessControlFluentBuilder
fn clone(&self) -> CreateOriginAccessControlFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateOriginAccessControlFluentBuilder
impl !RefUnwindSafe for CreateOriginAccessControlFluentBuilder
impl Send for CreateOriginAccessControlFluentBuilder
impl Sync for CreateOriginAccessControlFluentBuilder
impl Unpin for CreateOriginAccessControlFluentBuilder
impl !UnwindSafe for CreateOriginAccessControlFluentBuilder
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