aws_sdk_lambda/client/
put_runtime_management_config.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 [`PutRuntimeManagementConfig`](crate::operation::put_runtime_management_config::builders::PutRuntimeManagementConfigFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`function_name(impl Into<String>)`](crate::operation::put_runtime_management_config::builders::PutRuntimeManagementConfigFluentBuilder::function_name) / [`set_function_name(Option<String>)`](crate::operation::put_runtime_management_config::builders::PutRuntimeManagementConfigFluentBuilder::set_function_name):<br>required: **true**<br><p>The name or ARN of the Lambda function.</p> <p class="title"><b>Name formats</b></p> <ul>  <li>   <p><b>Function name</b> – <code>my-function</code>.</p></li>  <li>   <p><b>Function ARN</b> – <code>arn:aws:lambda:us-west-2:123456789012:function:my-function</code>.</p></li>  <li>   <p><b>Partial ARN</b> – <code>123456789012:function:my-function</code>.</p></li> </ul> <p>The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.</p><br>
7    ///   - [`qualifier(impl Into<String>)`](crate::operation::put_runtime_management_config::builders::PutRuntimeManagementConfigFluentBuilder::qualifier) / [`set_qualifier(Option<String>)`](crate::operation::put_runtime_management_config::builders::PutRuntimeManagementConfigFluentBuilder::set_qualifier):<br>required: **false**<br><p>Specify a version of the function. This can be <code>$LATEST</code> or a published version number. If no value is specified, the configuration for the <code>$LATEST</code> version is returned.</p><br>
8    ///   - [`update_runtime_on(UpdateRuntimeOn)`](crate::operation::put_runtime_management_config::builders::PutRuntimeManagementConfigFluentBuilder::update_runtime_on) / [`set_update_runtime_on(Option<UpdateRuntimeOn>)`](crate::operation::put_runtime_management_config::builders::PutRuntimeManagementConfigFluentBuilder::set_update_runtime_on):<br>required: **true**<br><p>Specify the runtime update mode.</p> <ul>  <li>   <p><b>Auto (default)</b> - Automatically update to the most recent and secure runtime version using a <a href="https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-two-phase">Two-phase runtime version rollout</a>. This is the best choice for most customers to ensure they always benefit from runtime updates.</p></li>  <li>   <p><b>Function update</b> - Lambda updates the runtime of your function to the most recent and secure runtime version when you update your function. This approach synchronizes runtime updates with function deployments, giving you control over when runtime updates are applied and allowing you to detect and mitigate rare runtime update incompatibilities early. When using this setting, you need to regularly update your functions to keep their runtime up-to-date.</p></li>  <li>   <p><b>Manual</b> - You specify a runtime version in your function configuration. The function will use this runtime version indefinitely. In the rare case where a new runtime version is incompatible with an existing function, this allows you to roll back your function to an earlier runtime version. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-rollback">Roll back a runtime version</a>.</p></li> </ul><br>
9    ///   - [`runtime_version_arn(impl Into<String>)`](crate::operation::put_runtime_management_config::builders::PutRuntimeManagementConfigFluentBuilder::runtime_version_arn) / [`set_runtime_version_arn(Option<String>)`](crate::operation::put_runtime_management_config::builders::PutRuntimeManagementConfigFluentBuilder::set_runtime_version_arn):<br>required: **false**<br><p>The ARN of the runtime version you want the function to use.</p><note>  <p>This is only required if you're using the <b>Manual</b> runtime update mode.</p> </note><br>
10    /// - On success, responds with [`PutRuntimeManagementConfigOutput`](crate::operation::put_runtime_management_config::PutRuntimeManagementConfigOutput) with field(s):
11    ///   - [`update_runtime_on(UpdateRuntimeOn)`](crate::operation::put_runtime_management_config::PutRuntimeManagementConfigOutput::update_runtime_on): <p>The runtime update mode.</p>
12    ///   - [`function_arn(String)`](crate::operation::put_runtime_management_config::PutRuntimeManagementConfigOutput::function_arn): <p>The ARN of the function</p>
13    ///   - [`runtime_version_arn(Option<String>)`](crate::operation::put_runtime_management_config::PutRuntimeManagementConfigOutput::runtime_version_arn): <p>The ARN of the runtime the function is configured to use. If the runtime update mode is <b>manual</b>, the ARN is returned, otherwise <code>null</code> is returned.</p>
14    /// - On failure, responds with [`SdkError<PutRuntimeManagementConfigError>`](crate::operation::put_runtime_management_config::PutRuntimeManagementConfigError)
15    pub fn put_runtime_management_config(
16        &self,
17    ) -> crate::operation::put_runtime_management_config::builders::PutRuntimeManagementConfigFluentBuilder {
18        crate::operation::put_runtime_management_config::builders::PutRuntimeManagementConfigFluentBuilder::new(self.handle.clone())
19    }
20}