class
Amazonite::Lambda::UpdateFunctionCodeRequest
- Amazonite::Lambda::UpdateFunctionCodeRequest
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
lambda/update_function_code_request.crConstructors
- .new(pull : JSON::PullParser)
- .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)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#architectures : Array(Architecture) | Nil
The instruction set architecture that the function supports.
-
#architectures=(architectures : Array(Architecture) | Nil)
The instruction set architecture that the function supports.
-
#dry_run : Bool | Nil
Set to true to validate the request parameters and access permissions without modifying the function code.
-
#dry_run=(dry_run : Bool | Nil)
Set to true to validate the request parameters and access permissions without modifying the function code.
-
#function_name : String
The name or ARN of the Lambda function.
-
#function_name=(function_name : String)
The name or ARN of the Lambda function.
-
#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.
-
#publish : Bool | Nil
Set to true to publish a new version of the function after updating the code.
-
#publish=(publish : Bool | Nil)
Set to true to publish a new version of the function after updating the code.
-
#publish_to : FunctionVersionLatestPublished | Nil
Specifies where to publish the function version or configuration.
-
#publish_to=(publish_to : FunctionVersionLatestPublished | Nil)
Specifies where to publish the function version or configuration.
-
#revision_id : String | Nil
Update the function only if the revision ID matches the ID that's specified.
-
#revision_id=(revision_id : String | Nil)
Update the function only if the revision ID matches the ID that's specified.
-
#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?.
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.
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.
Set to true to validate the request parameters and access permissions without modifying the function code.
Set to true to validate the request parameters and access permissions without modifying the function code.
The name or ARN of the Lambda function.
Name formats
-
Function name –
my-function. -
Function ARN –
arn:aws:lambda:us-west-2:123456789012:function:my-function. -
Partial ARN –
123456789012: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.
The name or ARN of the Lambda function.
Name formats
-
Function name –
my-function. -
Function ARN –
arn:aws:lambda:us-west-2:123456789012:function:my-function. -
Partial ARN –
123456789012: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.
URI of a container image in the Amazon ECR registry. Do not use for a function defined with a .zip file archive.
URI of a container image in the Amazon ECR registry. Do not use for a function defined with a .zip file archive.
Set to true to publish a new version of the function after updating the code. This has the same effect as calling PublishVersion separately.
Set to true to publish a new version of the function after updating the code. This has the same effect as calling PublishVersion separately.
Specifies where to publish the function version or configuration.
Specifies where to publish the function version or configuration.
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.
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.
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.
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.
The Amazon S3 key of the deployment package. Use only with a function defined with a .zip file archive deployment package.
The Amazon S3 key of the deployment package. Use only with a function defined with a .zip file archive deployment package.
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 managed 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 managed key.
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.
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.