#[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.
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 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 build(self) -> FunctionAssociation
pub fn build(self) -> FunctionAssociation
Consumes the builder and constructs a FunctionAssociation
.
Trait Implementations§
source§impl Clone for FunctionAssociationBuilder
impl Clone for FunctionAssociationBuilder
source§fn clone(&self) -> FunctionAssociationBuilder
fn clone(&self) -> FunctionAssociationBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the “default value” for a type. Read more
source§impl PartialEq<FunctionAssociationBuilder> for FunctionAssociationBuilder
impl PartialEq<FunctionAssociationBuilder> for FunctionAssociationBuilder
source§fn eq(&self, other: &FunctionAssociationBuilder) -> bool
fn eq(&self, other: &FunctionAssociationBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.