Struct aws_sdk_lambda::operation::get_function_url_config::builders::GetFunctionUrlConfigOutputBuilder
source · #[non_exhaustive]pub struct GetFunctionUrlConfigOutputBuilder { /* private fields */ }
Expand description
A builder for GetFunctionUrlConfigOutput
.
Implementations§
source§impl GetFunctionUrlConfigOutputBuilder
impl GetFunctionUrlConfigOutputBuilder
sourcepub fn function_url(self, input: impl Into<String>) -> Self
pub fn function_url(self, input: impl Into<String>) -> Self
The HTTP URL endpoint for your function.
This field is required.sourcepub fn set_function_url(self, input: Option<String>) -> Self
pub fn set_function_url(self, input: Option<String>) -> Self
The HTTP URL endpoint for your function.
sourcepub fn get_function_url(&self) -> &Option<String>
pub fn get_function_url(&self) -> &Option<String>
The HTTP URL endpoint for your function.
sourcepub fn function_arn(self, input: impl Into<String>) -> Self
pub fn function_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of your function.
This field is required.sourcepub fn set_function_arn(self, input: Option<String>) -> Self
pub fn set_function_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of your function.
sourcepub fn get_function_arn(&self) -> &Option<String>
pub fn get_function_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of your function.
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 creation_time(self, input: impl Into<String>) -> Self
pub fn creation_time(self, input: impl Into<String>) -> Self
When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
This field is required.sourcepub fn set_creation_time(self, input: Option<String>) -> Self
pub fn set_creation_time(self, input: Option<String>) -> Self
When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
sourcepub fn get_creation_time(&self) -> &Option<String>
pub fn get_creation_time(&self) -> &Option<String>
When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
sourcepub fn last_modified_time(self, input: impl Into<String>) -> Self
pub fn last_modified_time(self, input: impl Into<String>) -> Self
When the function URL configuration was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
This field is required.sourcepub fn set_last_modified_time(self, input: Option<String>) -> Self
pub fn set_last_modified_time(self, input: Option<String>) -> Self
When the function URL configuration was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
sourcepub fn get_last_modified_time(&self) -> &Option<String>
pub fn get_last_modified_time(&self) -> &Option<String>
When the function URL configuration was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
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<GetFunctionUrlConfigOutput, BuildError>
pub fn build(self) -> Result<GetFunctionUrlConfigOutput, BuildError>
Consumes the builder and constructs a GetFunctionUrlConfigOutput
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GetFunctionUrlConfigOutputBuilder
impl Clone for GetFunctionUrlConfigOutputBuilder
source§fn clone(&self) -> GetFunctionUrlConfigOutputBuilder
fn clone(&self) -> GetFunctionUrlConfigOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetFunctionUrlConfigOutputBuilder
impl Default for GetFunctionUrlConfigOutputBuilder
source§fn default() -> GetFunctionUrlConfigOutputBuilder
fn default() -> GetFunctionUrlConfigOutputBuilder
source§impl PartialEq for GetFunctionUrlConfigOutputBuilder
impl PartialEq for GetFunctionUrlConfigOutputBuilder
source§fn eq(&self, other: &GetFunctionUrlConfigOutputBuilder) -> bool
fn eq(&self, other: &GetFunctionUrlConfigOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.