Struct aws_sdk_codedeploy::model::lambda_function_info::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for LambdaFunctionInfo
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn function_name(self, input: impl Into<String>) -> Self
pub fn function_name(self, input: impl Into<String>) -> Self
The name of a Lambda function.
sourcepub fn set_function_name(self, input: Option<String>) -> Self
pub fn set_function_name(self, input: Option<String>) -> Self
The name of a Lambda function.
sourcepub fn function_alias(self, input: impl Into<String>) -> Self
pub fn function_alias(self, input: impl Into<String>) -> Self
The alias of a Lambda function. For more information, see Lambda Function Aliases in the Lambda Developer Guide.
sourcepub fn set_function_alias(self, input: Option<String>) -> Self
pub fn set_function_alias(self, input: Option<String>) -> Self
The alias of a Lambda function. For more information, see Lambda Function Aliases in the Lambda Developer Guide.
sourcepub fn current_version(self, input: impl Into<String>) -> Self
pub fn current_version(self, input: impl Into<String>) -> Self
The version of a Lambda function that production traffic points to.
sourcepub fn set_current_version(self, input: Option<String>) -> Self
pub fn set_current_version(self, input: Option<String>) -> Self
The version of a Lambda function that production traffic points to.
sourcepub fn target_version(self, input: impl Into<String>) -> Self
pub fn target_version(self, input: impl Into<String>) -> Self
The version of a Lambda function that production traffic points to after the Lambda function is deployed.
sourcepub fn set_target_version(self, input: Option<String>) -> Self
pub fn set_target_version(self, input: Option<String>) -> Self
The version of a Lambda function that production traffic points to after the Lambda function is deployed.
sourcepub fn target_version_weight(self, input: f64) -> Self
pub fn target_version_weight(self, input: f64) -> Self
The percentage of production traffic that the target version of a Lambda function receives.
sourcepub fn set_target_version_weight(self, input: Option<f64>) -> Self
pub fn set_target_version_weight(self, input: Option<f64>) -> Self
The percentage of production traffic that the target version of a Lambda function receives.
sourcepub fn build(self) -> LambdaFunctionInfo
pub fn build(self) -> LambdaFunctionInfo
Consumes the builder and constructs a LambdaFunctionInfo
.