You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Lambda::Types::UpdateFunctionCodeRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing UpdateFunctionCodeRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  function_name: "FunctionName", # required
  zip_file: "data",
  s3_bucket: "S3Bucket",
  s3_key: "S3Key",
  s3_object_version: "S3ObjectVersion",
  publish: false,
  dry_run: false,
}

Instance Attribute Summary collapse

Instance Attribute Details

#dry_runBoolean

This boolean parameter can be used to test your request to AWS Lambda to update the Lambda function and publish a version as an atomic operation. It will do all necessary computation and validation of your code but will not upload it or a publish a version. Each time this operation is invoked, the CodeSha256 hash value the provided code will also be computed and returned in the response.

Returns:

  • (Boolean)

    This boolean parameter can be used to test your request to AWS Lambda to update the Lambda function and publish a version as an atomic operation.

#function_nameString

The existing Lambda function name whose code you want to replace.

You can specify a function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 characters in length.

Returns:

  • (String)

    The existing Lambda function name whose code you want to replace.

#publishBoolean

This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a version as an atomic operation.

Returns:

  • (Boolean)

    This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a version as an atomic operation.

#s3_bucketString

Amazon S3 bucket name where the .zip file containing your deployment package is stored. This bucket must reside in the same AWS Region where you are creating the Lambda function.

Returns:

  • (String)

    Amazon S3 bucket name where the .zip file containing your deployment package is stored.

#s3_keyString

The Amazon S3 object (the deployment package) key name you want to upload.

Returns:

  • (String)

    The Amazon S3 object (the deployment package) key name you want to upload.

#s3_object_versionString

The Amazon S3 object (the deployment package) version you want to upload.

Returns:

  • (String)

    The Amazon S3 object (the deployment package) version you want to upload.

#zip_fileString

.zip file containing your packaged source code.

Returns:

  • (String)

    .zip file containing your packaged source code.