#[non_exhaustive]pub struct AwsLambdaFunctionDetails {Show 20 fields
pub code: Option<AwsLambdaFunctionCode>,
pub code_sha256: Option<String>,
pub dead_letter_config: Option<AwsLambdaFunctionDeadLetterConfig>,
pub environment: Option<AwsLambdaFunctionEnvironment>,
pub function_name: Option<String>,
pub handler: Option<String>,
pub kms_key_arn: Option<String>,
pub last_modified: Option<String>,
pub layers: Option<Vec<AwsLambdaFunctionLayer>>,
pub master_arn: Option<String>,
pub memory_size: Option<i32>,
pub revision_id: Option<String>,
pub role: Option<String>,
pub runtime: Option<String>,
pub timeout: Option<i32>,
pub tracing_config: Option<AwsLambdaFunctionTracingConfig>,
pub vpc_config: Option<AwsLambdaFunctionVpcConfig>,
pub version: Option<String>,
pub architectures: Option<Vec<String>>,
pub package_type: Option<String>,
}Expand description
Details about an Lambda function's configuration.
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.code: Option<AwsLambdaFunctionCode>An AwsLambdaFunctionCode object.
code_sha256: Option<String>The SHA256 hash of the function's deployment package.
dead_letter_config: Option<AwsLambdaFunctionDeadLetterConfig>The function's dead letter queue.
environment: Option<AwsLambdaFunctionEnvironment>The function's environment variables.
function_name: Option<String>The name of the function.
handler: Option<String>The function that Lambda calls to begin executing your function.
kms_key_arn: 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.
last_modified: Option<String>Indicates when the function was last updated.
This field accepts only the specified formats. Timestamps can end with Z or ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
-
YYYY-MM-DDTHH:MM:SSZ(for example,2019-01-31T23:00:00Z) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ(for example,2019-01-31T23:00:00.123456789Z) -
YYYY-MM-DDTHH:MM:SS+HH:MM(for example,2024-01-04T15:25:10+17:59) -
YYYY-MM-DDTHH:MM:SS-HHMM(for example,2024-01-04T15:25:10-1759) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM(for example,2024-01-04T15:25:10.123456789+17:59)
layers: Option<Vec<AwsLambdaFunctionLayer>>The function's layers.
master_arn: Option<String>For Lambda@Edge functions, the ARN of the master function.
memory_size: Option<i32>The memory that is allocated to the function.
revision_id: Option<String>The latest updated revision of the function or alias.
role: Option<String>The function's execution role.
runtime: Option<String>The runtime environment for the Lambda function.
timeout: Option<i32>The amount of time that Lambda allows a function to run before stopping it.
tracing_config: Option<AwsLambdaFunctionTracingConfig>The function's X-Ray tracing configuration.
vpc_config: Option<AwsLambdaFunctionVpcConfig>The function's networking configuration.
version: Option<String>The version of the Lambda function.
architectures: Option<Vec<String>>The instruction set architecture that the function uses. Valid values are x86_64 or arm64.
package_type: 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.
Implementations§
source§impl AwsLambdaFunctionDetails
impl AwsLambdaFunctionDetails
sourcepub fn code(&self) -> Option<&AwsLambdaFunctionCode>
pub fn code(&self) -> Option<&AwsLambdaFunctionCode>
An AwsLambdaFunctionCode object.
sourcepub fn code_sha256(&self) -> Option<&str>
pub fn code_sha256(&self) -> Option<&str>
The SHA256 hash of the function's deployment package.
sourcepub fn dead_letter_config(&self) -> Option<&AwsLambdaFunctionDeadLetterConfig>
pub fn dead_letter_config(&self) -> Option<&AwsLambdaFunctionDeadLetterConfig>
The function's dead letter queue.
sourcepub fn environment(&self) -> Option<&AwsLambdaFunctionEnvironment>
pub fn environment(&self) -> Option<&AwsLambdaFunctionEnvironment>
The function's environment variables.
sourcepub fn function_name(&self) -> Option<&str>
pub fn function_name(&self) -> Option<&str>
The name of the function.
sourcepub fn handler(&self) -> Option<&str>
pub fn handler(&self) -> Option<&str>
The function that Lambda calls to begin executing your function.
sourcepub fn kms_key_arn(&self) -> Option<&str>
pub fn kms_key_arn(&self) -> Option<&str>
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) -> Option<&str>
pub fn last_modified(&self) -> Option<&str>
Indicates when the function was last updated.
This field accepts only the specified formats. Timestamps can end with Z or ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
-
YYYY-MM-DDTHH:MM:SSZ(for example,2019-01-31T23:00:00Z) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ(for example,2019-01-31T23:00:00.123456789Z) -
YYYY-MM-DDTHH:MM:SS+HH:MM(for example,2024-01-04T15:25:10+17:59) -
YYYY-MM-DDTHH:MM:SS-HHMM(for example,2024-01-04T15:25:10-1759) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM(for example,2024-01-04T15:25:10.123456789+17:59)
sourcepub fn layers(&self) -> &[AwsLambdaFunctionLayer]
pub fn layers(&self) -> &[AwsLambdaFunctionLayer]
The function's layers.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .layers.is_none().
sourcepub fn master_arn(&self) -> Option<&str>
pub fn master_arn(&self) -> Option<&str>
For Lambda@Edge functions, the ARN of the master function.
sourcepub fn memory_size(&self) -> Option<i32>
pub fn memory_size(&self) -> Option<i32>
The memory that is allocated to the function.
sourcepub fn revision_id(&self) -> Option<&str>
pub fn revision_id(&self) -> Option<&str>
The latest updated revision of the function or alias.
sourcepub fn timeout(&self) -> Option<i32>
pub fn timeout(&self) -> Option<i32>
The amount of time that Lambda allows a function to run before stopping it.
sourcepub fn tracing_config(&self) -> Option<&AwsLambdaFunctionTracingConfig>
pub fn tracing_config(&self) -> Option<&AwsLambdaFunctionTracingConfig>
The function's X-Ray tracing configuration.
sourcepub fn vpc_config(&self) -> Option<&AwsLambdaFunctionVpcConfig>
pub fn vpc_config(&self) -> Option<&AwsLambdaFunctionVpcConfig>
The function's networking configuration.
sourcepub fn architectures(&self) -> &[String]
pub fn architectures(&self) -> &[String]
The instruction set architecture that the function uses. Valid values are x86_64 or arm64.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .architectures.is_none().
sourcepub fn package_type(&self) -> Option<&str>
pub fn package_type(&self) -> Option<&str>
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.
source§impl AwsLambdaFunctionDetails
impl AwsLambdaFunctionDetails
sourcepub fn builder() -> AwsLambdaFunctionDetailsBuilder
pub fn builder() -> AwsLambdaFunctionDetailsBuilder
Creates a new builder-style object to manufacture AwsLambdaFunctionDetails.
Trait Implementations§
source§impl Clone for AwsLambdaFunctionDetails
impl Clone for AwsLambdaFunctionDetails
source§fn clone(&self) -> AwsLambdaFunctionDetails
fn clone(&self) -> AwsLambdaFunctionDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AwsLambdaFunctionDetails
impl Debug for AwsLambdaFunctionDetails
source§impl PartialEq for AwsLambdaFunctionDetails
impl PartialEq for AwsLambdaFunctionDetails
source§fn eq(&self, other: &AwsLambdaFunctionDetails) -> bool
fn eq(&self, other: &AwsLambdaFunctionDetails) -> bool
self and other values to be equal, and is used
by ==.