#[non_exhaustive]pub struct FunctionConfigurationBuilder { /* private fields */ }
Expand description
A builder for FunctionConfiguration
.
Implementations§
source§impl FunctionConfigurationBuilder
impl FunctionConfigurationBuilder
sourcepub fn encoding_type(self, input: EncodingType) -> Self
pub fn encoding_type(self, input: EncodingType) -> Self
The expected encoding type of the input payload for the function. The default is ’‘json’’.
sourcepub fn set_encoding_type(self, input: Option<EncodingType>) -> Self
pub fn set_encoding_type(self, input: Option<EncodingType>) -> Self
The expected encoding type of the input payload for the function. The default is ’‘json’’.
sourcepub fn get_encoding_type(&self) -> &Option<EncodingType>
pub fn get_encoding_type(&self) -> &Option<EncodingType>
The expected encoding type of the input payload for the function. The default is ’‘json’’.
sourcepub fn environment(self, input: FunctionConfigurationEnvironment) -> Self
pub fn environment(self, input: FunctionConfigurationEnvironment) -> Self
The environment configuration of the function.
sourcepub fn set_environment(
self,
input: Option<FunctionConfigurationEnvironment>
) -> Self
pub fn set_environment( self, input: Option<FunctionConfigurationEnvironment> ) -> Self
The environment configuration of the function.
sourcepub fn get_environment(&self) -> &Option<FunctionConfigurationEnvironment>
pub fn get_environment(&self) -> &Option<FunctionConfigurationEnvironment>
The environment configuration of the function.
sourcepub fn set_exec_args(self, input: Option<String>) -> Self
pub fn set_exec_args(self, input: Option<String>) -> Self
The execution arguments.
sourcepub fn get_exec_args(&self) -> &Option<String>
pub fn get_exec_args(&self) -> &Option<String>
The execution arguments.
sourcepub fn executable(self, input: impl Into<String>) -> Self
pub fn executable(self, input: impl Into<String>) -> Self
The name of the function executable.
sourcepub fn set_executable(self, input: Option<String>) -> Self
pub fn set_executable(self, input: Option<String>) -> Self
The name of the function executable.
sourcepub fn get_executable(&self) -> &Option<String>
pub fn get_executable(&self) -> &Option<String>
The name of the function executable.
sourcepub fn memory_size(self, input: i32) -> Self
pub fn memory_size(self, input: i32) -> Self
The memory size, in KB, which the function requires. This setting is not applicable and should be cleared when you run the Lambda function without containerization.
sourcepub fn set_memory_size(self, input: Option<i32>) -> Self
pub fn set_memory_size(self, input: Option<i32>) -> Self
The memory size, in KB, which the function requires. This setting is not applicable and should be cleared when you run the Lambda function without containerization.
sourcepub fn get_memory_size(&self) -> &Option<i32>
pub fn get_memory_size(&self) -> &Option<i32>
The memory size, in KB, which the function requires. This setting is not applicable and should be cleared when you run the Lambda function without containerization.
sourcepub fn pinned(self, input: bool) -> Self
pub fn pinned(self, input: bool) -> Self
True if the function is pinned. Pinned means the function is long-lived and starts when the core starts.
sourcepub fn set_pinned(self, input: Option<bool>) -> Self
pub fn set_pinned(self, input: Option<bool>) -> Self
True if the function is pinned. Pinned means the function is long-lived and starts when the core starts.
sourcepub fn get_pinned(&self) -> &Option<bool>
pub fn get_pinned(&self) -> &Option<bool>
True if the function is pinned. Pinned means the function is long-lived and starts when the core starts.
sourcepub fn timeout(self, input: i32) -> Self
pub fn timeout(self, input: i32) -> Self
The allowed function execution time, after which Lambda should terminate the function. This timeout still applies to pinned Lambda functions for each request.
sourcepub fn set_timeout(self, input: Option<i32>) -> Self
pub fn set_timeout(self, input: Option<i32>) -> Self
The allowed function execution time, after which Lambda should terminate the function. This timeout still applies to pinned Lambda functions for each request.
sourcepub fn get_timeout(&self) -> &Option<i32>
pub fn get_timeout(&self) -> &Option<i32>
The allowed function execution time, after which Lambda should terminate the function. This timeout still applies to pinned Lambda functions for each request.
sourcepub fn function_runtime_override(self, input: impl Into<String>) -> Self
pub fn function_runtime_override(self, input: impl Into<String>) -> Self
The Lambda runtime supported by Greengrass which is to be used instead of the one specified in the Lambda function.
sourcepub fn set_function_runtime_override(self, input: Option<String>) -> Self
pub fn set_function_runtime_override(self, input: Option<String>) -> Self
The Lambda runtime supported by Greengrass which is to be used instead of the one specified in the Lambda function.
sourcepub fn get_function_runtime_override(&self) -> &Option<String>
pub fn get_function_runtime_override(&self) -> &Option<String>
The Lambda runtime supported by Greengrass which is to be used instead of the one specified in the Lambda function.
sourcepub fn build(self) -> FunctionConfiguration
pub fn build(self) -> FunctionConfiguration
Consumes the builder and constructs a FunctionConfiguration
.
Trait Implementations§
source§impl Clone for FunctionConfigurationBuilder
impl Clone for FunctionConfigurationBuilder
source§fn clone(&self) -> FunctionConfigurationBuilder
fn clone(&self) -> FunctionConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FunctionConfigurationBuilder
impl Debug for FunctionConfigurationBuilder
source§impl Default for FunctionConfigurationBuilder
impl Default for FunctionConfigurationBuilder
source§fn default() -> FunctionConfigurationBuilder
fn default() -> FunctionConfigurationBuilder
source§impl PartialEq for FunctionConfigurationBuilder
impl PartialEq for FunctionConfigurationBuilder
source§fn eq(&self, other: &FunctionConfigurationBuilder) -> bool
fn eq(&self, other: &FunctionConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.