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

Class: Aws::Lambda::Types::FunctionCode

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

Overview

Note:

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

{
  zip_file: "data",
  s3_bucket: "S3Bucket",
  s3_key: "S3Key",
  s3_object_version: "S3ObjectVersion",
}

The code for the Lambda function.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#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

The contents of your zip file containing your deployment package. If you are using the web API directly, the contents of the zip file must be base64-encoded. If you are using the AWS SDKs or the AWS CLI, the SDKs or CLI will do the encoding for you. For more information about creating a .zip file, see Execution Permissions in the AWS Lambda Developer Guide.

Returns:

  • (String)

    The contents of your zip file containing your deployment package.