1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - | pub use crate::operation::update_function_code::_update_function_code_output::UpdateFunctionCodeOutputBuilder;
|
3 - |
|
4 2 | pub use crate::operation::update_function_code::_update_function_code_input::UpdateFunctionCodeInputBuilder;
|
5 3 |
|
4 + | pub use crate::operation::update_function_code::_update_function_code_output::UpdateFunctionCodeOutputBuilder;
|
5 + |
|
6 6 | impl crate::operation::update_function_code::builders::UpdateFunctionCodeInputBuilder {
|
7 7 | /// Sends a request with this input using the given client.
|
8 8 | pub async fn send_with(
|
9 9 | self,
|
10 10 | client: &crate::Client,
|
11 11 | ) -> ::std::result::Result<
|
12 12 | crate::operation::update_function_code::UpdateFunctionCodeOutput,
|
13 13 | ::aws_smithy_runtime_api::client::result::SdkError<
|
14 14 | crate::operation::update_function_code::UpdateFunctionCodeError,
|
15 15 | ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
16 16 | >,
|
17 17 | > {
|
18 18 | let mut fluent_builder = client.update_function_code();
|
19 19 | fluent_builder.inner = self;
|
20 20 | fluent_builder.send().await
|
21 21 | }
|
22 22 | }
|
23 23 | /// Fluent builder constructing a request to `UpdateFunctionCode`.
|
24 24 | ///
|
25 25 | /// <p>Updates a Lambda function's code. If code signing is enabled for the function, the code package must be signed by a trusted publisher. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html">Configuring code signing for Lambda</a>.</p>
|
26 26 | /// <p>If the function's package type is <code>Image</code>, then you must specify the code package in <code>ImageUri</code> as the URI of a <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html">container image</a> in the Amazon ECR registry.</p>
|
27 27 | /// <p>If the function's package type is <code>Zip</code>, then you must specify the deployment package as a <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html#gettingstarted-package-zip">.zip file archive</a>. Enter the Amazon S3 bucket and key of the code .zip file location. You can also provide the function code inline using the <code>ZipFile</code> field.</p>
|
28 28 | /// <p>The code in the deployment package must be compatible with the target instruction set architecture of the function (<code>x86-64</code> or <code>arm64</code>).</p>
|
29 29 | /// <p>The function's code is locked when you publish a version. You can't modify the code of a published version, only the unpublished version.</p><note>
|
30 30 | /// <p>For a function defined as a container image, Lambda resolves the image tag to an image digest. In Amazon ECR, if you update the image tag to a new image, Lambda does not automatically update the function.</p>
|
31 31 | /// </note>
|
32 32 | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
33 33 | pub struct UpdateFunctionCodeFluentBuilder {
|
34 34 | handle: ::std::sync::Arc<crate::client::Handle>,
|
35 35 | inner: crate::operation::update_function_code::builders::UpdateFunctionCodeInputBuilder,
|