Struct aws_sdk_cloudfront::input::CreateFunctionInput
source · #[non_exhaustive]pub struct CreateFunctionInput { /* private fields */ }
Implementations§
source§impl CreateFunctionInput
impl CreateFunctionInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateFunction, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateFunction, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateFunction
>
Examples found in repository?
src/client.rs (line 1906)
1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateFunction,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateFunctionError>,
> {
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::CreateFunctionOutput,
aws_smithy_http::result::SdkError<crate::error::CreateFunctionError>,
> {
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 CreateFunctionInput
.
source§impl CreateFunctionInput
impl CreateFunctionInput
sourcepub fn function_config(&self) -> Option<&FunctionConfig>
pub fn function_config(&self) -> Option<&FunctionConfig>
Configuration information about the function, including an optional comment and the function’s runtime.
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 CreateFunctionInput
impl Clone for CreateFunctionInput
source§fn clone(&self) -> CreateFunctionInput
fn clone(&self) -> CreateFunctionInput
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