pub struct CreateOriginAccessControl { /* 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.
For an Amazon S3 origin, this makes it possible to block public access to the Amazon S3 bucket so that viewers (users) can access the content in the bucket only through CloudFront.
For more information about using a CloudFront origin access control, see Restricting access to an Amazon S3 origin in the Amazon CloudFront Developer Guide.
Implementations
sourceimpl CreateOriginAccessControl
impl CreateOriginAccessControl
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
sourceimpl Clone for CreateOriginAccessControl
impl Clone for CreateOriginAccessControl
sourcefn clone(&self) -> CreateOriginAccessControl
fn clone(&self) -> CreateOriginAccessControl
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more