#[non_exhaustive]pub struct AwsLambdaFunctionDetailsBuilder { /* private fields */ }
Expand description
A builder for AwsLambdaFunctionDetails
.
Implementations§
Source§impl AwsLambdaFunctionDetailsBuilder
impl AwsLambdaFunctionDetailsBuilder
Sourcepub fn code(self, input: AwsLambdaFunctionCode) -> Self
pub fn code(self, input: AwsLambdaFunctionCode) -> Self
An AwsLambdaFunctionCode
object.
Sourcepub fn set_code(self, input: Option<AwsLambdaFunctionCode>) -> Self
pub fn set_code(self, input: Option<AwsLambdaFunctionCode>) -> Self
An AwsLambdaFunctionCode
object.
Sourcepub fn get_code(&self) -> &Option<AwsLambdaFunctionCode>
pub fn get_code(&self) -> &Option<AwsLambdaFunctionCode>
An AwsLambdaFunctionCode
object.
Sourcepub fn code_sha256(self, input: impl Into<String>) -> Self
pub fn code_sha256(self, input: impl Into<String>) -> Self
The SHA256 hash of the function's deployment package.
Sourcepub fn set_code_sha256(self, input: Option<String>) -> Self
pub fn set_code_sha256(self, input: Option<String>) -> Self
The SHA256 hash of the function's deployment package.
Sourcepub fn get_code_sha256(&self) -> &Option<String>
pub fn get_code_sha256(&self) -> &Option<String>
The SHA256 hash of the function's deployment package.
Sourcepub fn dead_letter_config(
self,
input: AwsLambdaFunctionDeadLetterConfig,
) -> Self
pub fn dead_letter_config( self, input: AwsLambdaFunctionDeadLetterConfig, ) -> Self
The function's dead letter queue.
Sourcepub fn set_dead_letter_config(
self,
input: Option<AwsLambdaFunctionDeadLetterConfig>,
) -> Self
pub fn set_dead_letter_config( self, input: Option<AwsLambdaFunctionDeadLetterConfig>, ) -> Self
The function's dead letter queue.
Sourcepub fn get_dead_letter_config(
&self,
) -> &Option<AwsLambdaFunctionDeadLetterConfig>
pub fn get_dead_letter_config( &self, ) -> &Option<AwsLambdaFunctionDeadLetterConfig>
The function's dead letter queue.
Sourcepub fn environment(self, input: AwsLambdaFunctionEnvironment) -> Self
pub fn environment(self, input: AwsLambdaFunctionEnvironment) -> Self
The function's environment variables.
Sourcepub fn set_environment(
self,
input: Option<AwsLambdaFunctionEnvironment>,
) -> Self
pub fn set_environment( self, input: Option<AwsLambdaFunctionEnvironment>, ) -> Self
The function's environment variables.
Sourcepub fn get_environment(&self) -> &Option<AwsLambdaFunctionEnvironment>
pub fn get_environment(&self) -> &Option<AwsLambdaFunctionEnvironment>
The function's environment variables.
Sourcepub fn function_name(self, input: impl Into<String>) -> Self
pub fn function_name(self, input: impl Into<String>) -> Self
The name of the function.
Sourcepub fn set_function_name(self, input: Option<String>) -> Self
pub fn set_function_name(self, input: Option<String>) -> Self
The name of the function.
Sourcepub fn get_function_name(&self) -> &Option<String>
pub fn get_function_name(&self) -> &Option<String>
The name of the function.
Sourcepub fn handler(self, input: impl Into<String>) -> Self
pub fn handler(self, input: impl Into<String>) -> Self
The function that Lambda calls to begin executing your function.
Sourcepub fn set_handler(self, input: Option<String>) -> Self
pub fn set_handler(self, input: Option<String>) -> Self
The function that Lambda calls to begin executing your function.
Sourcepub fn get_handler(&self) -> &Option<String>
pub fn get_handler(&self) -> &Option<String>
The function that Lambda calls to begin executing your function.
Sourcepub fn kms_key_arn(self, input: impl Into<String>) -> Self
pub fn kms_key_arn(self, input: impl Into<String>) -> Self
The KMS key that is used to encrypt the function's environment variables. This key is only returned if you've configured a customer managed customer managed key.
Sourcepub fn set_kms_key_arn(self, input: Option<String>) -> Self
pub fn set_kms_key_arn(self, input: Option<String>) -> Self
The KMS key that is used to encrypt the function's environment variables. This key is only returned if you've configured a customer managed customer managed key.
Sourcepub fn get_kms_key_arn(&self) -> &Option<String>
pub fn get_kms_key_arn(&self) -> &Option<String>
The KMS key that is used to encrypt the function's environment variables. This key is only returned if you've configured a customer managed customer managed key.
Sourcepub fn last_modified(self, input: impl Into<String>) -> Self
pub fn last_modified(self, input: impl Into<String>) -> Self
Indicates when the function was last updated.
For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
Sourcepub fn set_last_modified(self, input: Option<String>) -> Self
pub fn set_last_modified(self, input: Option<String>) -> Self
Indicates when the function was last updated.
For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
Sourcepub fn get_last_modified(&self) -> &Option<String>
pub fn get_last_modified(&self) -> &Option<String>
Indicates when the function was last updated.
For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
Sourcepub fn layers(self, input: AwsLambdaFunctionLayer) -> Self
pub fn layers(self, input: AwsLambdaFunctionLayer) -> Self
Appends an item to layers
.
To override the contents of this collection use set_layers
.
The function's layers.
Sourcepub fn set_layers(self, input: Option<Vec<AwsLambdaFunctionLayer>>) -> Self
pub fn set_layers(self, input: Option<Vec<AwsLambdaFunctionLayer>>) -> Self
The function's layers.
Sourcepub fn get_layers(&self) -> &Option<Vec<AwsLambdaFunctionLayer>>
pub fn get_layers(&self) -> &Option<Vec<AwsLambdaFunctionLayer>>
The function's layers.
Sourcepub fn master_arn(self, input: impl Into<String>) -> Self
pub fn master_arn(self, input: impl Into<String>) -> Self
For Lambda@Edge functions, the ARN of the master function.
Sourcepub fn set_master_arn(self, input: Option<String>) -> Self
pub fn set_master_arn(self, input: Option<String>) -> Self
For Lambda@Edge functions, the ARN of the master function.
Sourcepub fn get_master_arn(&self) -> &Option<String>
pub fn get_master_arn(&self) -> &Option<String>
For Lambda@Edge functions, the ARN of the master function.
Sourcepub fn memory_size(self, input: i32) -> Self
pub fn memory_size(self, input: i32) -> Self
The memory that is allocated to the function.
Sourcepub fn set_memory_size(self, input: Option<i32>) -> Self
pub fn set_memory_size(self, input: Option<i32>) -> Self
The memory that is allocated to the function.
Sourcepub fn get_memory_size(&self) -> &Option<i32>
pub fn get_memory_size(&self) -> &Option<i32>
The memory that is allocated to the function.
Sourcepub fn revision_id(self, input: impl Into<String>) -> Self
pub fn revision_id(self, input: impl Into<String>) -> Self
The latest updated revision of the function or alias.
Sourcepub fn set_revision_id(self, input: Option<String>) -> Self
pub fn set_revision_id(self, input: Option<String>) -> Self
The latest updated revision of the function or alias.
Sourcepub fn get_revision_id(&self) -> &Option<String>
pub fn get_revision_id(&self) -> &Option<String>
The latest updated revision of the function or alias.
Sourcepub fn runtime(self, input: impl Into<String>) -> Self
pub fn runtime(self, input: impl Into<String>) -> Self
The runtime environment for the Lambda function.
Sourcepub fn set_runtime(self, input: Option<String>) -> Self
pub fn set_runtime(self, input: Option<String>) -> Self
The runtime environment for the Lambda function.
Sourcepub fn get_runtime(&self) -> &Option<String>
pub fn get_runtime(&self) -> &Option<String>
The runtime environment for the Lambda function.
Sourcepub fn timeout(self, input: i32) -> Self
pub fn timeout(self, input: i32) -> Self
The amount of time that Lambda allows a function to run before stopping it.
Sourcepub fn set_timeout(self, input: Option<i32>) -> Self
pub fn set_timeout(self, input: Option<i32>) -> Self
The amount of time that Lambda allows a function to run before stopping it.
Sourcepub fn get_timeout(&self) -> &Option<i32>
pub fn get_timeout(&self) -> &Option<i32>
The amount of time that Lambda allows a function to run before stopping it.
Sourcepub fn tracing_config(self, input: AwsLambdaFunctionTracingConfig) -> Self
pub fn tracing_config(self, input: AwsLambdaFunctionTracingConfig) -> Self
The function's X-Ray tracing configuration.
Sourcepub fn set_tracing_config(
self,
input: Option<AwsLambdaFunctionTracingConfig>,
) -> Self
pub fn set_tracing_config( self, input: Option<AwsLambdaFunctionTracingConfig>, ) -> Self
The function's X-Ray tracing configuration.
Sourcepub fn get_tracing_config(&self) -> &Option<AwsLambdaFunctionTracingConfig>
pub fn get_tracing_config(&self) -> &Option<AwsLambdaFunctionTracingConfig>
The function's X-Ray tracing configuration.
Sourcepub fn vpc_config(self, input: AwsLambdaFunctionVpcConfig) -> Self
pub fn vpc_config(self, input: AwsLambdaFunctionVpcConfig) -> Self
The function's networking configuration.
Sourcepub fn set_vpc_config(self, input: Option<AwsLambdaFunctionVpcConfig>) -> Self
pub fn set_vpc_config(self, input: Option<AwsLambdaFunctionVpcConfig>) -> Self
The function's networking configuration.
Sourcepub fn get_vpc_config(&self) -> &Option<AwsLambdaFunctionVpcConfig>
pub fn get_vpc_config(&self) -> &Option<AwsLambdaFunctionVpcConfig>
The function's networking configuration.
Sourcepub fn set_version(self, input: Option<String>) -> Self
pub fn set_version(self, input: Option<String>) -> Self
The version of the Lambda function.
Sourcepub fn get_version(&self) -> &Option<String>
pub fn get_version(&self) -> &Option<String>
The version of the Lambda function.
Sourcepub fn architectures(self, input: impl Into<String>) -> Self
pub fn architectures(self, input: impl Into<String>) -> Self
Appends an item to architectures
.
To override the contents of this collection use set_architectures
.
The instruction set architecture that the function uses. Valid values are x86_64
or arm64
.
Sourcepub fn set_architectures(self, input: Option<Vec<String>>) -> Self
pub fn set_architectures(self, input: Option<Vec<String>>) -> Self
The instruction set architecture that the function uses. Valid values are x86_64
or arm64
.
Sourcepub fn get_architectures(&self) -> &Option<Vec<String>>
pub fn get_architectures(&self) -> &Option<Vec<String>>
The instruction set architecture that the function uses. Valid values are x86_64
or arm64
.
Sourcepub fn package_type(self, input: impl Into<String>) -> Self
pub fn package_type(self, input: impl Into<String>) -> Self
The type of deployment package that's used to deploy the function code to Lambda. Set to Image
for a container image and Zip
for a .zip file archive.
Sourcepub fn set_package_type(self, input: Option<String>) -> Self
pub fn set_package_type(self, input: Option<String>) -> Self
The type of deployment package that's used to deploy the function code to Lambda. Set to Image
for a container image and Zip
for a .zip file archive.
Sourcepub fn get_package_type(&self) -> &Option<String>
pub fn get_package_type(&self) -> &Option<String>
The type of deployment package that's used to deploy the function code to Lambda. Set to Image
for a container image and Zip
for a .zip file archive.
Sourcepub fn build(self) -> AwsLambdaFunctionDetails
pub fn build(self) -> AwsLambdaFunctionDetails
Consumes the builder and constructs a AwsLambdaFunctionDetails
.
Trait Implementations§
Source§impl Clone for AwsLambdaFunctionDetailsBuilder
impl Clone for AwsLambdaFunctionDetailsBuilder
Source§fn clone(&self) -> AwsLambdaFunctionDetailsBuilder
fn clone(&self) -> AwsLambdaFunctionDetailsBuilder
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for AwsLambdaFunctionDetailsBuilder
impl Default for AwsLambdaFunctionDetailsBuilder
Source§fn default() -> AwsLambdaFunctionDetailsBuilder
fn default() -> AwsLambdaFunctionDetailsBuilder
Source§impl PartialEq for AwsLambdaFunctionDetailsBuilder
impl PartialEq for AwsLambdaFunctionDetailsBuilder
Source§fn eq(&self, other: &AwsLambdaFunctionDetailsBuilder) -> bool
fn eq(&self, other: &AwsLambdaFunctionDetailsBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for AwsLambdaFunctionDetailsBuilder
Auto Trait Implementations§
impl Freeze for AwsLambdaFunctionDetailsBuilder
impl RefUnwindSafe for AwsLambdaFunctionDetailsBuilder
impl Send for AwsLambdaFunctionDetailsBuilder
impl Sync for AwsLambdaFunctionDetailsBuilder
impl Unpin for AwsLambdaFunctionDetailsBuilder
impl UnwindSafe for AwsLambdaFunctionDetailsBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);