aws_sdk_cloudfront/client/get_function.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`GetFunction`](crate::operation::get_function::builders::GetFunctionFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::get_function::builders::GetFunctionFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::get_function::builders::GetFunctionFluentBuilder::set_name):<br>required: **true**<br><p>The name of the function whose code you are getting.</p><br>
7 /// - [`stage(FunctionStage)`](crate::operation::get_function::builders::GetFunctionFluentBuilder::stage) / [`set_stage(Option<FunctionStage>)`](crate::operation::get_function::builders::GetFunctionFluentBuilder::set_stage):<br>required: **false**<br><p>The function's stage, either <code>DEVELOPMENT</code> or <code>LIVE</code>.</p><br>
8 /// - On success, responds with [`GetFunctionOutput`](crate::operation::get_function::GetFunctionOutput) with field(s):
9 /// - [`function_code(Option<Blob>)`](crate::operation::get_function::GetFunctionOutput::function_code): <p>The function code of a CloudFront function.</p>
10 /// - [`e_tag(Option<String>)`](crate::operation::get_function::GetFunctionOutput::e_tag): <p>The version identifier for the current version of the CloudFront function.</p>
11 /// - [`content_type(Option<String>)`](crate::operation::get_function::GetFunctionOutput::content_type): <p>The content type (media type) of the response.</p>
12 /// - On failure, responds with [`SdkError<GetFunctionError>`](crate::operation::get_function::GetFunctionError)
13 pub fn get_function(&self) -> crate::operation::get_function::builders::GetFunctionFluentBuilder {
14 crate::operation::get_function::builders::GetFunctionFluentBuilder::new(self.handle.clone())
15 }
16}