Struct aws_sdk_lambda::operation::create_function_url_config::builders::CreateFunctionUrlConfigInputBuilder
source · #[non_exhaustive]pub struct CreateFunctionUrlConfigInputBuilder { /* private fields */ }
Expand description
A builder for CreateFunctionUrlConfigInput
.
Implementations§
source§impl CreateFunctionUrlConfigInputBuilder
impl CreateFunctionUrlConfigInputBuilder
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<CreateFunctionUrlConfigInput, BuildError>
pub fn build(self) -> Result<CreateFunctionUrlConfigInput, BuildError>
Consumes the builder and constructs a CreateFunctionUrlConfigInput
.
source§impl CreateFunctionUrlConfigInputBuilder
impl CreateFunctionUrlConfigInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateFunctionUrlConfigOutput, SdkError<CreateFunctionUrlConfigError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateFunctionUrlConfigOutput, SdkError<CreateFunctionUrlConfigError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateFunctionUrlConfigInputBuilder
impl Clone for CreateFunctionUrlConfigInputBuilder
source§fn clone(&self) -> CreateFunctionUrlConfigInputBuilder
fn clone(&self) -> CreateFunctionUrlConfigInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateFunctionUrlConfigInputBuilder
impl Default for CreateFunctionUrlConfigInputBuilder
source§fn default() -> CreateFunctionUrlConfigInputBuilder
fn default() -> CreateFunctionUrlConfigInputBuilder
source§impl PartialEq for CreateFunctionUrlConfigInputBuilder
impl PartialEq for CreateFunctionUrlConfigInputBuilder
source§fn eq(&self, other: &CreateFunctionUrlConfigInputBuilder) -> bool
fn eq(&self, other: &CreateFunctionUrlConfigInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.