#[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 ==
.