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

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb

Overview

Note:

When making an API call, you may pass FunctionCode data as a hash:

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

The code for the Lambda function.

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)


816
817
818
819
820
821
822
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 816

class FunctionCode < Struct.new(
  :zip_file,
  :s3_bucket,
  :s3_key,
  :s3_object_version)
  include Aws::Structure
end

#s3_keyString

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

Returns:

  • (String)


816
817
818
819
820
821
822
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 816

class FunctionCode < Struct.new(
  :zip_file,
  :s3_bucket,
  :s3_key,
  :s3_object_version)
  include Aws::Structure
end

#s3_object_versionString

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

Returns:

  • (String)


816
817
818
819
820
821
822
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 816

class FunctionCode < Struct.new(
  :zip_file,
  :s3_bucket,
  :s3_key,
  :s3_object_version)
  include Aws::Structure
end

#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)


816
817
818
819
820
821
822
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 816

class FunctionCode < Struct.new(
  :zip_file,
  :s3_bucket,
  :s3_key,
  :s3_object_version)
  include Aws::Structure
end