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. You can specify either an object in Amazon S3, or upload a deployment package directly.

Constant Summary collapse

SENSITIVE =
[:zip_file]

Instance Attribute Summary collapse

Instance Attribute Details

#s3_bucketString

An Amazon S3 bucket in the same AWS Region as your function. The bucket can be in a different AWS account.

Returns:

  • (String)


1427
1428
1429
1430
1431
1432
1433
1434
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 1427

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

#s3_keyString

The Amazon S3 key of the deployment package.

Returns:

  • (String)


1427
1428
1429
1430
1431
1432
1433
1434
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 1427

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

#s3_object_versionString

For versioned objects, the version of the deployment package object to use.

Returns:

  • (String)


1427
1428
1429
1430
1431
1432
1433
1434
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 1427

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

#zip_fileString

The base64-encoded contents of the deployment package. AWS SDK and AWS CLI clients handle the encoding for you.

Returns:

  • (String)


1427
1428
1429
1430
1431
1432
1433
1434
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 1427

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