#[non_exhaustive]pub struct UpdateOriginAccessControlInput { /* private fields */ }
Implementations§
source§impl UpdateOriginAccessControlInput
impl UpdateOriginAccessControlInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateOriginAccessControl, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateOriginAccessControl, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateOriginAccessControl
>
Examples found in repository?
src/client.rs (line 9296)
9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateOriginAccessControl,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateOriginAccessControlError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateOriginAccessControlOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateOriginAccessControlError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture UpdateOriginAccessControlInput
.
source§impl UpdateOriginAccessControlInput
impl UpdateOriginAccessControlInput
sourcepub fn origin_access_control_config(&self) -> Option<&OriginAccessControlConfig>
pub fn origin_access_control_config(&self) -> Option<&OriginAccessControlConfig>
An origin access control.
Trait Implementations§
source§impl Clone for UpdateOriginAccessControlInput
impl Clone for UpdateOriginAccessControlInput
source§fn clone(&self) -> UpdateOriginAccessControlInput
fn clone(&self) -> UpdateOriginAccessControlInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more