UpdateFunctionCodeRequest
¶
Source code in docs_src/capo_lambda/types/update_function_code_request.py
architectures
instance-attribute
¶
architectures: NotRequired[ArchitecturesList]
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.
dry_run
instance-attribute
¶
dry_run: Boolean
Set to true to validate the request parameters and access permissions without modifying the function code.
function_name
instance-attribute
¶
function_name: FunctionName
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.
image_uri
instance-attribute
¶
image_uri: NotRequired[String]
URI of a container image in the Amazon ECR registry. Do not use for a function defined with a .zip file archive.
publish
instance-attribute
¶
publish: Boolean
Set to true to publish a new version of the function after updating the code. This has the same effect as calling PublishVersion separately.
publish_to
instance-attribute
¶
publish_to: NotRequired[FunctionVersionLatestPublished]
Specifies where to publish the function version or configuration.
revision_id
instance-attribute
¶
revision_id: NotRequired[String]
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.
s3_bucket
instance-attribute
¶
s3_bucket: NotRequired[S3Bucket]
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.
s3_key
instance-attribute
¶
s3_key: NotRequired[S3Key]
The Amazon S3 key of the deployment package. Use only with a function defined with a .zip file archive deployment package.
s3_object_storage_mode
instance-attribute
¶
s3_object_storage_mode: NotRequired[S3ObjectStorageMode]
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.
s3_object_version
instance-attribute
¶
s3_object_version: NotRequired[S3ObjectVersion]
For versioned objects, the version of the deployment package object to use.
source_kms_key_arn
instance-attribute
¶
source_kms_key_arn: NotRequired[KMSKeyArn]
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.