pub struct LambdaFunction {Show 20 fields
pub function_name: String,
pub function_arn: String,
pub runtime: String,
pub role: String,
pub handler: String,
pub description: String,
pub timeout: i64,
pub memory_size: i64,
pub code_sha256: String,
pub code_size: i64,
pub version: String,
pub last_modified: DateTime<Utc>,
pub tags: BTreeMap<String, String>,
pub environment: BTreeMap<String, String>,
pub architectures: Vec<String>,
pub package_type: String,
pub code_zip: Option<Vec<u8>>,
pub image_uri: Option<String>,
pub policy: Option<String>,
pub layers: Vec<AttachedLayer>,
}Fields§
§function_name: String§function_arn: String§runtime: String§role: String§handler: String§description: String§timeout: i64§memory_size: i64§code_sha256: String§code_size: i64§version: String§last_modified: DateTime<Utc>§environment: BTreeMap<String, String>§architectures: Vec<String>§package_type: String§code_zip: Option<Vec<u8>>§image_uri: Option<String>Container image URI for PackageType=Image functions. Points at a
private or public ECR image that the runtime pulls at invoke time.
None for PackageType=Zip.
policy: Option<String>Resource-based policy attached to this function via
AddPermission, serialized as a full JSON policy document
({"Version":"2012-10-17","Statement":[...]}). None means
the function has no resource policy attached, matching the
ResourceNotFoundException AWS returns from GetPolicy in
that state. AddPermission lazily initializes this; every
RemovePermission leaves at least {"Statement":[]} behind,
matching AWS behavior.
layers: Vec<AttachedLayer>Layer versions attached to this function, in attach order. AWS
extracts each layer’s content into /opt of the runtime sandbox at
invoke time; fakecloud’s container runtime mirrors that via
docker cp. code_size is captured at attach time from the
referenced LayerVersion so GetFunctionConfiguration can echo it
without a second state lookup; layer versions are immutable so the
cached size never goes stale.
Trait Implementations§
Source§impl Clone for LambdaFunction
impl Clone for LambdaFunction
Source§fn clone(&self) -> LambdaFunction
fn clone(&self) -> LambdaFunction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more