pub struct Builder { /* private fields */ }
Expand description
A builder for AwsLambdaFunctionDetails
.
Implementations§
source§impl Builder
impl Builder
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 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 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 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 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 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 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 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. 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. 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 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 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 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 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 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 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 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 set_version(self, input: Option<String>) -> Self
pub fn set_version(self, input: Option<String>) -> Self
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 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 build(self) -> AwsLambdaFunctionDetails
pub fn build(self) -> AwsLambdaFunctionDetails
Consumes the builder and constructs a AwsLambdaFunctionDetails
.