#[non_exhaustive]pub struct FunctionAssociationBuilder { /* private fields */ }
Expand description
A builder for FunctionAssociation
.
Implementations§
source§impl FunctionAssociationBuilder
impl FunctionAssociationBuilder
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 the 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 the function.
sourcepub fn get_function_arn(&self) -> &Option<String>
pub fn get_function_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the function.
sourcepub fn event_type(self, input: EventType) -> Self
pub fn event_type(self, input: EventType) -> Self
The event type of the function, either viewer-request
or viewer-response
. You cannot use origin-facing event types (origin-request
and origin-response
) with a CloudFront function.
sourcepub fn set_event_type(self, input: Option<EventType>) -> Self
pub fn set_event_type(self, input: Option<EventType>) -> Self
The event type of the function, either viewer-request
or viewer-response
. You cannot use origin-facing event types (origin-request
and origin-response
) with a CloudFront function.
sourcepub fn get_event_type(&self) -> &Option<EventType>
pub fn get_event_type(&self) -> &Option<EventType>
The event type of the function, either viewer-request
or viewer-response
. You cannot use origin-facing event types (origin-request
and origin-response
) with a CloudFront function.
sourcepub fn build(self) -> Result<FunctionAssociation, BuildError>
pub fn build(self) -> Result<FunctionAssociation, BuildError>
Consumes the builder and constructs a FunctionAssociation
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for FunctionAssociationBuilder
impl Clone for FunctionAssociationBuilder
source§fn clone(&self) -> FunctionAssociationBuilder
fn clone(&self) -> FunctionAssociationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FunctionAssociationBuilder
impl Debug for FunctionAssociationBuilder
source§impl Default for FunctionAssociationBuilder
impl Default for FunctionAssociationBuilder
source§fn default() -> FunctionAssociationBuilder
fn default() -> FunctionAssociationBuilder
source§impl PartialEq for FunctionAssociationBuilder
impl PartialEq for FunctionAssociationBuilder
source§fn eq(&self, other: &FunctionAssociationBuilder) -> bool
fn eq(&self, other: &FunctionAssociationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FunctionAssociationBuilder
Auto Trait Implementations§
impl Freeze for FunctionAssociationBuilder
impl RefUnwindSafe for FunctionAssociationBuilder
impl Send for FunctionAssociationBuilder
impl Sync for FunctionAssociationBuilder
impl Unpin for FunctionAssociationBuilder
impl UnwindSafe for FunctionAssociationBuilder
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> 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