Struct aws_sdk_cloudfront::input::UpdateFunctionInput
source · #[non_exhaustive]pub struct UpdateFunctionInput { /* private fields */ }
Implementations§
source§impl UpdateFunctionInput
impl UpdateFunctionInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateFunction, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateFunction, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateFunction
>
Examples found in repository?
src/client.rs (line 9085)
9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateFunction,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateFunctionError>,
> {
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::UpdateFunctionOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateFunctionError>,
> {
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 UpdateFunctionInput
.
source§impl UpdateFunctionInput
impl UpdateFunctionInput
sourcepub fn if_match(&self) -> Option<&str>
pub fn if_match(&self) -> Option<&str>
The current version (ETag
value) of the function that you are updating, which you can get using DescribeFunction
.
sourcepub fn function_config(&self) -> Option<&FunctionConfig>
pub fn function_config(&self) -> Option<&FunctionConfig>
Configuration information about the function.
sourcepub fn function_code(&self) -> Option<&Blob>
pub fn function_code(&self) -> Option<&Blob>
The function code. For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide.
Trait Implementations§
source§impl Clone for UpdateFunctionInput
impl Clone for UpdateFunctionInput
source§fn clone(&self) -> UpdateFunctionInput
fn clone(&self) -> UpdateFunctionInput
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