Struct aws_sdk_lambda::types::FunctionUrlConfig
source · #[non_exhaustive]pub struct FunctionUrlConfig {
pub function_url: String,
pub function_arn: String,
pub creation_time: String,
pub last_modified_time: String,
pub cors: Option<Cors>,
pub auth_type: FunctionUrlAuthType,
pub invoke_mode: Option<InvokeMode>,
}
Expand description
Details about a Lambda function URL.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.function_url: String
The HTTP URL endpoint for your function.
function_arn: String
The Amazon Resource Name (ARN) of your function.
creation_time: String
When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
last_modified_time: String
When the function URL configuration was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
cors: Option<Cors>
The cross-origin resource sharing (CORS) settings for your function URL.
auth_type: 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.
invoke_mode: 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.
Implementations§
source§impl FunctionUrlConfig
impl FunctionUrlConfig
sourcepub fn function_url(&self) -> &str
pub fn function_url(&self) -> &str
The HTTP URL endpoint for your function.
sourcepub fn function_arn(&self) -> &str
pub fn function_arn(&self) -> &str
The Amazon Resource Name (ARN) of your function.
sourcepub fn creation_time(&self) -> &str
pub fn creation_time(&self) -> &str
When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
sourcepub fn last_modified_time(&self) -> &str
pub fn last_modified_time(&self) -> &str
When the function URL configuration was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
sourcepub fn cors(&self) -> Option<&Cors>
pub fn cors(&self) -> Option<&Cors>
The cross-origin resource sharing (CORS) settings for your function URL.
sourcepub fn auth_type(&self) -> &FunctionUrlAuthType
pub fn auth_type(&self) -> &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 invoke_mode(&self) -> Option<&InvokeMode>
pub fn 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.
source§impl FunctionUrlConfig
impl FunctionUrlConfig
sourcepub fn builder() -> FunctionUrlConfigBuilder
pub fn builder() -> FunctionUrlConfigBuilder
Creates a new builder-style object to manufacture FunctionUrlConfig
.
Trait Implementations§
source§impl Clone for FunctionUrlConfig
impl Clone for FunctionUrlConfig
source§fn clone(&self) -> FunctionUrlConfig
fn clone(&self) -> FunctionUrlConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FunctionUrlConfig
impl Debug for FunctionUrlConfig
source§impl PartialEq for FunctionUrlConfig
impl PartialEq for FunctionUrlConfig
source§fn eq(&self, other: &FunctionUrlConfig) -> bool
fn eq(&self, other: &FunctionUrlConfig) -> bool
self
and other
values to be equal, and is used
by ==
.