aws_sdk_lambda/client/
get_function_url_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 [`GetFunctionUrlConfig`](crate::operation::get_function_url_config::builders::GetFunctionUrlConfigFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`function_name(impl Into<String>)`](crate::operation::get_function_url_config::builders::GetFunctionUrlConfigFluentBuilder::function_name) / [`set_function_name(Option<String>)`](crate::operation::get_function_url_config::builders::GetFunctionUrlConfigFluentBuilder::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::get_function_url_config::builders::GetFunctionUrlConfigFluentBuilder::qualifier) / [`set_qualifier(Option<String>)`](crate::operation::get_function_url_config::builders::GetFunctionUrlConfigFluentBuilder::set_qualifier):<br>required: **false**<br><p>The alias name.</p><br>
8    /// - On success, responds with [`GetFunctionUrlConfigOutput`](crate::operation::get_function_url_config::GetFunctionUrlConfigOutput) with field(s):
9    ///   - [`function_url(String)`](crate::operation::get_function_url_config::GetFunctionUrlConfigOutput::function_url): <p>The HTTP URL endpoint for your function.</p>
10    ///   - [`function_arn(String)`](crate::operation::get_function_url_config::GetFunctionUrlConfigOutput::function_arn): <p>The Amazon Resource Name (ARN) of your function.</p>
11    ///   - [`auth_type(FunctionUrlAuthType)`](crate::operation::get_function_url_config::GetFunctionUrlConfigOutput::auth_type): <p>The type of authentication that your function URL uses. Set to <code>AWS_IAM</code> if you want to restrict access to authenticated users only. Set to <code>NONE</code> if you want to bypass IAM authentication to create a public endpoint. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html">Security and auth model for Lambda function URLs</a>.</p>
12    ///   - [`cors(Option<Cors>)`](crate::operation::get_function_url_config::GetFunctionUrlConfigOutput::cors): <p>The <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS">cross-origin resource sharing (CORS)</a> settings for your function URL.</p>
13    ///   - [`creation_time(String)`](crate::operation::get_function_url_config::GetFunctionUrlConfigOutput::creation_time): <p>When the function URL was created, in <a href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> (YYYY-MM-DDThh:mm:ss.sTZD).</p>
14    ///   - [`last_modified_time(String)`](crate::operation::get_function_url_config::GetFunctionUrlConfigOutput::last_modified_time): <p>When the function URL configuration was last updated, in <a href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> (YYYY-MM-DDThh:mm:ss.sTZD).</p>
15    ///   - [`invoke_mode(Option<InvokeMode>)`](crate::operation::get_function_url_config::GetFunctionUrlConfigOutput::invoke_mode): <p>Use one of the following options:</p> <ul>  <li>   <p><code>BUFFERED</code> – This is the default option. Lambda invokes your function using the <code>Invoke</code> API operation. Invocation results are available when the payload is complete. The maximum payload size is 6 MB.</p></li>  <li>   <p><code>RESPONSE_STREAM</code> – Your function streams payload results as they become available. Lambda invokes your function using the <code>InvokeWithResponseStream</code> API operation. The maximum response payload size is 20 MB, however, you can <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html">request a quota increase</a>.</p></li> </ul>
16    /// - On failure, responds with [`SdkError<GetFunctionUrlConfigError>`](crate::operation::get_function_url_config::GetFunctionUrlConfigError)
17    pub fn get_function_url_config(&self) -> crate::operation::get_function_url_config::builders::GetFunctionUrlConfigFluentBuilder {
18        crate::operation::get_function_url_config::builders::GetFunctionUrlConfigFluentBuilder::new(self.handle.clone())
19    }
20}