Struct aws_sdk_lambda::model::function_url_config::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for FunctionUrlConfig
.
Implementations
sourceimpl 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
.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more