#[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.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
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.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
sourcepub fn get_last_modified(&self) -> &Option<String>
pub fn get_last_modified(&self) -> &Option<String>
Indicates when the function was last updated.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
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§fn clone_from(&mut self, source: &Self)
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 ==
.