class
Amazonite::Lambda::FunctionCode
- Amazonite::Lambda::FunctionCode
- Reference
- Object
Overview
The code for the Lambda function. You can either specify an object in Amazon S3, upload a .zip file archive deployment package directly, or specify the URI of a container image.
Included Modules
- JSON::Serializable
Defined in:
lambda/function_code.crConstructors
- .new(pull : JSON::PullParser)
- .new(zip_file : Bytes | Nil = nil, s3_bucket : String | Nil = nil, s3_key : String | Nil = nil, s3_object_version : String | Nil = nil, s3_object_storage_mode : S3ObjectStorageMode | Nil = nil, image_uri : String | Nil = nil, source_kms_key_arn : String | Nil = nil)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#hash(hasher)
See
Object#hash(hasher) -
#image_uri : String | Nil
URI of a container image in the Amazon ECR registry.
-
#image_uri=(image_uri : String | Nil)
URI of a container image in the Amazon ECR registry.
-
#s3_bucket : String | Nil
An Amazon S3 bucket in the same Amazon Web Services Region as your function.
-
#s3_bucket=(s3_bucket : String | Nil)
An Amazon S3 bucket in the same Amazon Web Services Region as your function.
-
#s3_key : String | Nil
The Amazon S3 key of the deployment package.
-
#s3_key=(s3_key : String | Nil)
The Amazon S3 key of the deployment package.
-
#s3_object_storage_mode : S3ObjectStorageMode | Nil
Specifies how the deployment package is stored.
-
#s3_object_storage_mode=(s3_object_storage_mode : S3ObjectStorageMode | Nil)
Specifies how the deployment package is stored.
-
#s3_object_version : String | Nil
For versioned objects, the version of the deployment package object to use.
-
#s3_object_version=(s3_object_version : String | Nil)
For versioned objects, the version of the deployment package object to use.
-
#source_kms_key_arn : String | Nil
The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's .zip deployment package.
-
#source_kms_key_arn=(source_kms_key_arn : String | Nil)
The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's .zip deployment package.
- #validate! : Nil
-
#zip_file : Bytes | Nil
The base64-encoded contents of the deployment package.
-
#zip_file=(zip_file : Bytes | Nil)
The base64-encoded contents of the deployment package.
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
An Amazon S3 bucket in the same Amazon Web Services Region as your function. The bucket can be in a different Amazon Web Services account.
An Amazon S3 bucket in the same Amazon Web Services Region as your function. The bucket can be in a different Amazon Web Services account.
Specifies how the deployment package is stored. Valid values:
-
COPY(default) – Uploads a copy of your deployment package to Lambda. -
REFERENCE– Lambda references the deployment package from the specified Amazon S3 bucket.
Specifies how the deployment package is stored. Valid values:
-
COPY(default) – Uploads a copy of your deployment package to Lambda. -
REFERENCE– Lambda references the deployment package from the specified Amazon S3 bucket.
For versioned objects, the version of the deployment package object to use.
For versioned objects, the version of the deployment package object to use.
The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's .zip deployment package. If you don't provide a customer managed key, Lambda uses an Amazon Web Services owned key.
The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's .zip deployment package. If you don't provide a customer managed key, Lambda uses an Amazon Web Services owned key.
The base64-encoded contents of the deployment package. Amazon Web Services SDK and CLI clients handle the encoding for you.
The base64-encoded contents of the deployment package. Amazon Web Services SDK and CLI clients handle the encoding for you.