class Amazonite::Lambda::UpdateFunctionCodeRequest

Included Modules

Defined in:

lambda/update_function_code_request.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(function_name : String, 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, architectures : Array(Architecture) | Nil = nil, publish : Bool | Nil = nil, publish_to : FunctionVersionLatestPublished | Nil = nil, dry_run : Bool | Nil = nil, revision_id : String | Nil = nil, source_kms_key_arn : String | Nil = nil) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[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 architectures : Array(Architecture) | Nil #

The instruction set architecture that the function supports. Enter a string array with one of the valid values (arm64 or x86_64). The default value is x86_64.


[View source]
def architectures=(architectures : Array(Architecture) | Nil) #

The instruction set architecture that the function supports. Enter a string array with one of the valid values (arm64 or x86_64). The default value is x86_64.


[View source]
def dry_run : Bool | Nil #

Set to true to validate the request parameters and access permissions without modifying the function code.


[View source]
def dry_run=(dry_run : Bool | Nil) #

Set to true to validate the request parameters and access permissions without modifying the function code.


[View source]
def function_name : String #

The name or ARN of the Lambda function.

Name formats

  • Function namemy-function.

  • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN123456789012:function:my-function.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.


[View source]
def function_name=(function_name : String) #

The name or ARN of the Lambda function.

Name formats

  • Function namemy-function.

  • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN123456789012:function:my-function.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.


[View source]
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. Do not use for a function defined with a .zip file archive.


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

URI of a container image in the Amazon ECR registry. Do not use for a function defined with a .zip file archive.


[View source]
def publish : Bool | Nil #

Set to true to publish a new version of the function after updating the code. This has the same effect as calling PublishVersion separately.


[View source]
def publish=(publish : Bool | Nil) #

Set to true to publish a new version of the function after updating the code. This has the same effect as calling PublishVersion separately.


[View source]
def publish_to : FunctionVersionLatestPublished | Nil #

Specifies where to publish the function version or configuration.


[View source]
def publish_to=(publish_to : FunctionVersionLatestPublished | Nil) #

Specifies where to publish the function version or configuration.


[View source]
def revision_id : String | Nil #

Update the function only if the revision ID matches the ID that's specified. Use this option to avoid modifying a function that has changed since you last read it.


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

Update the function only if the revision ID matches the ID that's specified. Use this option to avoid modifying a function that has changed since you last read it.


[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. Use only with a function defined with a .zip file archive deployment package.


[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. Use only with a function defined with a .zip file archive deployment package.


[View source]
def s3_key : String | Nil #

The Amazon S3 key of the deployment package. Use only with a function defined with a .zip file archive deployment package.


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

The Amazon S3 key of the deployment package. Use only with a function defined with a .zip file archive 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 managed 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 managed 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. Use only with a function defined with a .zip file archive deployment package.


[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. Use only with a function defined with a .zip file archive deployment package.


[View source]