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 ==
.impl StructuralPartialEq for FunctionUrlConfig
Auto Trait Implementations§
impl Freeze for FunctionUrlConfig
impl RefUnwindSafe for FunctionUrlConfig
impl Send for FunctionUrlConfig
impl Sync for FunctionUrlConfig
impl Unpin for FunctionUrlConfig
impl UnwindSafe for FunctionUrlConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more