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

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

Overview

The code for the Lambda function. You can either specify an object in Amazon S3, upload a .zip file archive deployment package directly, or specify the URI of a container image.

Constant Summary collapse

SENSITIVE =
[:zip_file]

Instance Attribute Summary collapse

Instance Attribute Details

#image_uriString

URI of a container image in the Amazon ECR registry.

Returns:

  • (String)


2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 2279

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

#s3_bucketString

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.

Returns:

  • (String)


2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 2279

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

#s3_keyString

The Amazon S3 key of the deployment package.

Returns:

  • (String)


2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 2279

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

#s3_object_versionString

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

Returns:

  • (String)


2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 2279

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

#source_kms_key_arnString

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 owned key.

Returns:

  • (String)


2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 2279

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

#zip_fileString

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

Returns:

  • (String)


2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 2279

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