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 async fn customize(
self
) -> Result<CustomizableOperation<CreateOriginAccessControl, AwsResponseRetryClassifier>, SdkError<CreateOriginAccessControlError>>
pub async fn customize( self ) -> Result<CustomizableOperation<CreateOriginAccessControl, AwsResponseRetryClassifier>, SdkError<CreateOriginAccessControlError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateOriginAccessControlOutput, SdkError<CreateOriginAccessControlError>>
pub async fn send( self ) -> Result<CreateOriginAccessControlOutput, SdkError<CreateOriginAccessControlError>>
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 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.
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 more