Struct aws_sdk_lambda::operation::update_function_url_config::builders::UpdateFunctionUrlConfigInputBuilder
source · #[non_exhaustive]pub struct UpdateFunctionUrlConfigInputBuilder { /* private fields */ }
Expand description
A builder for UpdateFunctionUrlConfigInput
.
Implementations§
source§impl UpdateFunctionUrlConfigInputBuilder
impl UpdateFunctionUrlConfigInputBuilder
sourcepub fn function_name(self, input: impl Into<String>) -> Self
pub fn function_name(self, input: impl Into<String>) -> Self
The name or ARN of the Lambda function.
Name formats
-
Function name –
my-function
. -
Function ARN –
arn:aws:lambda:us-west-2:123456789012:function:my-function
. -
Partial ARN –
123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
This field is required.sourcepub fn set_function_name(self, input: Option<String>) -> Self
pub fn set_function_name(self, input: Option<String>) -> Self
The name or ARN of the Lambda function.
Name formats
-
Function name –
my-function
. -
Function ARN –
arn:aws:lambda:us-west-2:123456789012:function:my-function
. -
Partial ARN –
123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
sourcepub fn get_function_name(&self) -> &Option<String>
pub fn get_function_name(&self) -> &Option<String>
The name or ARN of the Lambda function.
Name formats
-
Function name –
my-function
. -
Function ARN –
arn:aws:lambda:us-west-2:123456789012:function:my-function
. -
Partial ARN –
123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
sourcepub fn set_qualifier(self, input: Option<String>) -> Self
pub fn set_qualifier(self, input: Option<String>) -> Self
The alias name.
sourcepub fn get_qualifier(&self) -> &Option<String>
pub fn get_qualifier(&self) -> &Option<String>
The alias name.
sourcepub fn auth_type(self, input: FunctionUrlAuthType) -> Self
pub fn auth_type(self, input: FunctionUrlAuthType) -> Self
The type of authentication that your function URL uses. Set to AWS_IAM
if you want to restrict access to authenticated users only. Set to NONE
if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.
sourcepub fn set_auth_type(self, input: Option<FunctionUrlAuthType>) -> Self
pub fn set_auth_type(self, input: Option<FunctionUrlAuthType>) -> Self
The type of authentication that your function URL uses. Set to AWS_IAM
if you want to restrict access to authenticated users only. Set to NONE
if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.
sourcepub fn get_auth_type(&self) -> &Option<FunctionUrlAuthType>
pub fn get_auth_type(&self) -> &Option<FunctionUrlAuthType>
The type of authentication that your function URL uses. Set to AWS_IAM
if you want to restrict access to authenticated users only. Set to NONE
if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.
sourcepub fn cors(self, input: Cors) -> Self
pub fn cors(self, input: Cors) -> Self
The cross-origin resource sharing (CORS) settings for your function URL.
sourcepub fn set_cors(self, input: Option<Cors>) -> Self
pub fn set_cors(self, input: Option<Cors>) -> Self
The cross-origin resource sharing (CORS) settings for your function URL.
sourcepub fn get_cors(&self) -> &Option<Cors>
pub fn get_cors(&self) -> &Option<Cors>
The cross-origin resource sharing (CORS) settings for your function URL.
sourcepub fn invoke_mode(self, input: InvokeMode) -> Self
pub fn invoke_mode(self, input: InvokeMode) -> Self
Use one of the following options:
-
BUFFERED
– This is the default option. Lambda invokes your function using theInvoke
API operation. Invocation results are available when the payload is complete. The maximum payload size is 6 MB. -
RESPONSE_STREAM
– Your function streams payload results as they become available. Lambda invokes your function using theInvokeWithResponseStream
API operation. The maximum response payload size is 20 MB, however, you can request a quota increase.
sourcepub fn set_invoke_mode(self, input: Option<InvokeMode>) -> Self
pub fn set_invoke_mode(self, input: Option<InvokeMode>) -> Self
Use one of the following options:
-
BUFFERED
– This is the default option. Lambda invokes your function using theInvoke
API operation. Invocation results are available when the payload is complete. The maximum payload size is 6 MB. -
RESPONSE_STREAM
– Your function streams payload results as they become available. Lambda invokes your function using theInvokeWithResponseStream
API operation. The maximum response payload size is 20 MB, however, you can request a quota increase.
sourcepub fn get_invoke_mode(&self) -> &Option<InvokeMode>
pub fn get_invoke_mode(&self) -> &Option<InvokeMode>
Use one of the following options:
-
BUFFERED
– This is the default option. Lambda invokes your function using theInvoke
API operation. Invocation results are available when the payload is complete. The maximum payload size is 6 MB. -
RESPONSE_STREAM
– Your function streams payload results as they become available. Lambda invokes your function using theInvokeWithResponseStream
API operation. The maximum response payload size is 20 MB, however, you can request a quota increase.
sourcepub fn build(self) -> Result<UpdateFunctionUrlConfigInput, BuildError>
pub fn build(self) -> Result<UpdateFunctionUrlConfigInput, BuildError>
Consumes the builder and constructs a UpdateFunctionUrlConfigInput
.
source§impl UpdateFunctionUrlConfigInputBuilder
impl UpdateFunctionUrlConfigInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateFunctionUrlConfigOutput, SdkError<UpdateFunctionUrlConfigError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateFunctionUrlConfigOutput, SdkError<UpdateFunctionUrlConfigError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateFunctionUrlConfigInputBuilder
impl Clone for UpdateFunctionUrlConfigInputBuilder
source§fn clone(&self) -> UpdateFunctionUrlConfigInputBuilder
fn clone(&self) -> UpdateFunctionUrlConfigInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UpdateFunctionUrlConfigInputBuilder
impl Default for UpdateFunctionUrlConfigInputBuilder
source§fn default() -> UpdateFunctionUrlConfigInputBuilder
fn default() -> UpdateFunctionUrlConfigInputBuilder
source§impl PartialEq for UpdateFunctionUrlConfigInputBuilder
impl PartialEq for UpdateFunctionUrlConfigInputBuilder
source§fn eq(&self, other: &UpdateFunctionUrlConfigInputBuilder) -> bool
fn eq(&self, other: &UpdateFunctionUrlConfigInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.