Struct aws_sdk_cloudfront::client::fluent_builders::CreateCloudFrontOriginAccessIdentity
source · [−]pub struct CreateCloudFrontOriginAccessIdentity { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateCloudFrontOriginAccessIdentity
.
Creates a new origin access identity. If you're using Amazon S3 for your origin, you can use an origin access identity to require users to access your content using a CloudFront URL instead of the Amazon S3 URL. For more information about how to use origin access identities, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.
Implementations
sourceimpl CreateCloudFrontOriginAccessIdentity
impl CreateCloudFrontOriginAccessIdentity
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateCloudFrontOriginAccessIdentity, AwsResponseRetryClassifier>, SdkError<CreateCloudFrontOriginAccessIdentityError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateCloudFrontOriginAccessIdentity, AwsResponseRetryClassifier>, SdkError<CreateCloudFrontOriginAccessIdentityError>>
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<CreateCloudFrontOriginAccessIdentityOutput, SdkError<CreateCloudFrontOriginAccessIdentityError>>
pub async fn send(
self
) -> Result<CreateCloudFrontOriginAccessIdentityOutput, SdkError<CreateCloudFrontOriginAccessIdentityError>>
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 cloud_front_origin_access_identity_config(
self,
input: CloudFrontOriginAccessIdentityConfig
) -> Self
pub fn cloud_front_origin_access_identity_config(
self,
input: CloudFrontOriginAccessIdentityConfig
) -> Self
The current configuration information for the identity.
sourcepub fn set_cloud_front_origin_access_identity_config(
self,
input: Option<CloudFrontOriginAccessIdentityConfig>
) -> Self
pub fn set_cloud_front_origin_access_identity_config(
self,
input: Option<CloudFrontOriginAccessIdentityConfig>
) -> Self
The current configuration information for the identity.
Trait Implementations
sourceimpl Clone for CreateCloudFrontOriginAccessIdentity
impl Clone for CreateCloudFrontOriginAccessIdentity
sourcefn clone(&self) -> CreateCloudFrontOriginAccessIdentity
fn clone(&self) -> CreateCloudFrontOriginAccessIdentity
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more