Skip to content

UpdateFunctionCodeRequest

Source code in docs_src/capo_lambda/types/update_function_code_request.py
class UpdateFunctionCodeRequest(TypedDict, closed=True):
    function_name: "capo_lambda.types.function_name.FunctionName"
    """<p>The name or ARN of the Lambda function.</p> <p class="title"> <b>Name formats</b> </p> <ul> <li> <p> <b>Function name</b> – <code>my-function</code>.</p> </li> <li> <p> <b>Function ARN</b> – <code>arn:aws:lambda:us-west-2:123456789012:function:my-function</code>.</p> </li> <li> <p> <b>Partial ARN</b> – <code>123456789012:function:my-function</code>.</p> </li> </ul> <p>The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.</p>"""
    zip_file: NotRequired["capo_lambda.types.blob.Blob"]
    """<p>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.</p>"""
    s3_bucket: NotRequired["capo_lambda.types.s3_bucket.S3Bucket"]
    """<p>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.</p>"""
    s3_key: NotRequired["capo_lambda.types.s3_key.S3Key"]
    """<p>The Amazon S3 key of the deployment package. Use only with a function defined with a .zip file archive deployment package.</p>"""
    s3_object_version: NotRequired[
        "capo_lambda.types.s3_object_version.S3ObjectVersion"
    ]
    """<p>For versioned objects, the version of the deployment package object to use.</p>"""
    s3_object_storage_mode: NotRequired[
        "capo_lambda.types.s3_object_storage_mode.S3ObjectStorageMode"
    ]
    """<p>Specifies how the deployment package is stored. Valid values:</p> <ul> <li> <p> <code>COPY</code> (default) – Uploads a copy of your deployment package to Lambda.</p> </li> <li> <p> <code>REFERENCE</code> – Lambda references the deployment package from the specified Amazon S3 bucket.</p> </li> </ul>"""
    image_uri: NotRequired["capo_lambda.types.string.String"]
    """<p>URI of a container image in the Amazon ECR registry. Do not use for a function defined with a .zip file archive.</p>"""
    architectures: NotRequired["capo_lambda.types.architectures_list.ArchitecturesList"]
    """<p>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 <code>x86_64</code>.</p>"""
    publish: "capo_lambda.types.boolean.Boolean"
    """<p>Set to true to publish a new version of the function after updating the code. This has the same effect as calling <a>PublishVersion</a> separately.</p>"""
    publish_to: NotRequired[
        "capo_lambda.types.function_version_latest_published.FunctionVersionLatestPublished"
    ]
    """<p>Specifies where to publish the function version or configuration.</p>"""
    dry_run: "capo_lambda.types.boolean.Boolean"
    """<p>Set to true to validate the request parameters and access permissions without modifying the function code.</p>"""
    revision_id: NotRequired["capo_lambda.types.string.String"]
    """<p>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.</p>"""
    source_kms_key_arn: NotRequired["capo_lambda.types.kms_key_arn.KMSKeyArn"]
    """<p>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.</p>"""

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.

zip_file instance-attribute

zip_file: NotRequired[Blob]

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.