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 ==
.impl StructuralPartialEq for LambdaFunctionInfo
Auto Trait Implementations§
impl Freeze for LambdaFunctionInfo
impl RefUnwindSafe for LambdaFunctionInfo
impl Send for LambdaFunctionInfo
impl Sync for LambdaFunctionInfo
impl Unpin for LambdaFunctionInfo
impl UnwindSafe for LambdaFunctionInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more