class Amazonite::Lambda::FunctionCode

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

Defined in:

lambda/function_code.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.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) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def image_uri : String | Nil #

URI of a container image in the Amazon ECR registry.


[View source]
def image_uri=(image_uri : String | Nil) #

URI of a container image in the Amazon ECR registry.


[View source]
def s3_bucket : String | Nil #

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.


[View source]
def s3_bucket=(s3_bucket : String | Nil) #

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.


[View source]
def s3_key : String | Nil #

The Amazon S3 key of the deployment package.


[View source]
def s3_key=(s3_key : String | Nil) #

The Amazon S3 key of the deployment package.


[View source]
def s3_object_storage_mode : S3ObjectStorageMode | Nil #

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.


[View source]
def s3_object_storage_mode=(s3_object_storage_mode : S3ObjectStorageMode | Nil) #

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.


[View source]
def s3_object_version : String | Nil #

For versioned objects, the version of the deployment package object to use.


[View source]
def s3_object_version=(s3_object_version : String | Nil) #

For versioned objects, the version of the deployment package object to use.


[View source]
def 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. If you don't provide a customer managed key, Lambda uses an Amazon Web Services owned key.


[View source]
def 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. If you don't provide a customer managed key, Lambda uses an Amazon Web Services owned key.


[View source]
def validate! : Nil #

[View source]
def zip_file : Bytes | Nil #

The base64-encoded contents of the deployment package. Amazon Web Services SDK and CLI clients handle the encoding for you.


[View source]
def zip_file=(zip_file : Bytes | Nil) #

The base64-encoded contents of the deployment package. Amazon Web Services SDK and CLI clients handle the encoding for you.


[View source]