Struct aws_sdk_codedeploy::types::LambdaFunctionInfo
source · #[non_exhaustive]pub struct LambdaFunctionInfo {
pub function_name: Option<String>,
pub function_alias: Option<String>,
pub current_version: Option<String>,
pub target_version: Option<String>,
pub target_version_weight: f64,
}
Expand description
Information about a Lambda function specified in a deployment.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.function_name: Option<String>
The name of a Lambda function.
function_alias: Option<String>
The alias of a Lambda function. For more information, see Lambda Function Aliases in the Lambda Developer Guide.
current_version: Option<String>
The version of a Lambda function that production traffic points to.
target_version: Option<String>
The version of a Lambda function that production traffic points to after the Lambda function is deployed.
target_version_weight: f64
The percentage of production traffic that the target version of a Lambda function receives.
Implementations§
source§impl LambdaFunctionInfo
impl LambdaFunctionInfo
sourcepub fn function_name(&self) -> Option<&str>
pub fn function_name(&self) -> Option<&str>
The name of a Lambda function.
sourcepub fn function_alias(&self) -> Option<&str>
pub fn function_alias(&self) -> Option<&str>
The alias of a Lambda function. For more information, see Lambda Function Aliases in the Lambda Developer Guide.
sourcepub fn current_version(&self) -> Option<&str>
pub fn current_version(&self) -> Option<&str>
The version of a Lambda function that production traffic points to.
sourcepub fn target_version(&self) -> Option<&str>
pub fn target_version(&self) -> Option<&str>
The version of a Lambda function that production traffic points to after the Lambda function is deployed.
sourcepub fn target_version_weight(&self) -> f64
pub fn target_version_weight(&self) -> f64
The percentage of production traffic that the target version of a Lambda function receives.
source§impl LambdaFunctionInfo
impl LambdaFunctionInfo
sourcepub fn builder() -> LambdaFunctionInfoBuilder
pub fn builder() -> LambdaFunctionInfoBuilder
Creates a new builder-style object to manufacture LambdaFunctionInfo
.
Trait Implementations§
source§impl Clone for LambdaFunctionInfo
impl Clone for LambdaFunctionInfo
source§fn clone(&self) -> LambdaFunctionInfo
fn clone(&self) -> LambdaFunctionInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LambdaFunctionInfo
impl Debug for LambdaFunctionInfo
source§impl PartialEq for LambdaFunctionInfo
impl PartialEq for LambdaFunctionInfo
source§fn eq(&self, other: &LambdaFunctionInfo) -> bool
fn eq(&self, other: &LambdaFunctionInfo) -> bool
self
and other
values to be equal, and is used
by ==
.