Struct aws_sdk_lambda::model::function_url_config::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for FunctionUrlConfig
.
Implementations§
source§impl Builder
impl Builder
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.
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 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.
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 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).
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 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).
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 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 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 IAM 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 IAM 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 build(self) -> FunctionUrlConfig
pub fn build(self) -> FunctionUrlConfig
Consumes the builder and constructs a FunctionUrlConfig
.