pub struct LambdaFunction {Show 35 fields
pub name: String,
pub arn: String,
pub runtime: Option<String>,
pub role: String,
pub handler: Option<String>,
pub description: String,
pub timeout: u32,
pub memory_size: u32,
pub code_sha256: String,
pub code_size: u64,
pub code: Option<Body>,
pub environment: HashMap<String, String>,
pub version: String,
pub versions: Vec<FunctionVersion>,
pub aliases: HashMap<String, Alias>,
pub last_modified: String,
pub state: String,
pub invocations: Vec<InvocationRecord>,
pub policy_statements: HashMap<String, Value>,
pub tags: HashMap<String, String>,
pub reserved_concurrent_executions: Option<u32>,
pub provisioned_concurrency: HashMap<String, ProvisionedConcurrencyConfig>,
pub architectures: Vec<String>,
pub ephemeral_storage_size: u32,
pub package_type: String,
pub layers: Vec<String>,
pub vpc_config: Option<Value>,
pub dead_letter_config: Option<Value>,
pub tracing_config: Option<Value>,
pub kms_key_arn: Option<String>,
pub file_system_configs: Option<Value>,
pub logging_config: Option<Value>,
pub snap_start: Option<Value>,
pub image_config: Option<Value>,
pub recursive_loop: String,
}Fields§
§name: String§arn: String§runtime: Option<String>§role: String§handler: Option<String>§description: String§timeout: u32§memory_size: u32§code_sha256: String§code_size: u64§code: Option<Body>§environment: HashMap<String, String>§version: StringAlways “$LATEST” for the live function.
versions: Vec<FunctionVersion>§aliases: HashMap<String, Alias>§last_modified: String§state: String“Active”, “Pending”, “Failed”, etc.
invocations: Vec<InvocationRecord>Invocation records for debugging / admin console.
policy_statements: HashMap<String, Value>Resource-based policy statements (for AddPermission / RemovePermission).
Tags attached to this function.
reserved_concurrent_executions: Option<u32>Reserved concurrent executions ceiling per PutFunctionConcurrency.
None means unreserved — the function shares the account pool.
provisioned_concurrency: HashMap<String, ProvisionedConcurrencyConfig>Provisioned concurrency configurations keyed by qualifier (alias name or function version). Each entry tracks the requested capacity along with a simulated state machine that flips IN_PROGRESS -> READY.
architectures: Vec<String>CPU architecture set: ["x86_64"] or ["arm64"]. Defaults to
["x86_64"] per AWS.
ephemeral_storage_size: u32/tmp size in MiB. Defaults to 512; AWS allows 512..=10240.
package_type: String“Zip” or “Image”. Defaults to “Zip”.
layers: Vec<String>Optional layer-version ARNs attached to the function.
vpc_config: Option<Value>VpcConfig as supplied by the caller plus the synthesized VpcId field.
dead_letter_config: Option<Value>DeadLetterConfig ({ TargetArn }).
tracing_config: Option<Value>TracingConfig ({ Mode }). Defaults to { Mode: "PassThrough" }.
kms_key_arn: Option<String>KMS key ARN used to encrypt environment variables at rest.
file_system_configs: Option<Value>EFS mounts: array of { Arn, LocalMountPath }.
logging_config: Option<Value>LoggingConfig ({ LogFormat, ApplicationLogLevel, SystemLogLevel, LogGroup }).
snap_start: Option<Value>SnapStart configuration. Stored as supplied; the serializer adds the
computed OptimizationStatus field.
image_config: Option<Value>ImageConfig for container-image functions.
recursive_loop: StringSelf-invoke recursion control. AWS Lambda stamps this on the
function and exposes it via Get / Put FunctionRecursionConfig;
Allow lets the function call itself in a loop, Terminate
(default) stops recursive invocation chains.
Trait Implementations§
Source§impl Clone for LambdaFunction
impl Clone for LambdaFunction
Source§fn clone(&self) -> LambdaFunction
fn clone(&self) -> LambdaFunction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more