Class: AWSCDK::Lambda::CfnFunction::ImageConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lambda/cfn_function.rb

Overview

Configuration values that override the container image Dockerfile settings.

For more information, see Container image settings .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command: nil, entry_point: nil, working_directory: nil) ⇒ ImageConfigProperty

Returns a new instance of ImageConfigProperty.

Parameters:

  • command (Array<String>, nil) (defaults to: nil)

    Specifies parameters that you want to pass in with ENTRYPOINT.

  • entry_point (Array<String>, nil) (defaults to: nil)

    Specifies the entry point to their application, which is typically the location of the runtime executable.

  • working_directory (String, nil) (defaults to: nil)

    Specifies the working directory.



1358
1359
1360
1361
1362
1363
1364
1365
# File 'lambda/cfn_function.rb', line 1358

def initialize(command: nil, entry_point: nil, working_directory: nil)
  @command = command
  Jsii::Type.check_type(@command, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "command") unless @command.nil?
  @entry_point = entry_point
  Jsii::Type.check_type(@entry_point, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "entryPoint") unless @entry_point.nil?
  @working_directory = working_directory
  Jsii::Type.check_type(@working_directory, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "workingDirectory") unless @working_directory.nil?
end

Instance Attribute Details

#commandArray<String>? (readonly)

Specifies parameters that you want to pass in with ENTRYPOINT.

You can specify a maximum of 1,500 parameters in the list.



1373
1374
1375
# File 'lambda/cfn_function.rb', line 1373

def command
  @command
end

#entry_pointArray<String>? (readonly)

Specifies the entry point to their application, which is typically the location of the runtime executable.

You can specify a maximum of 1,500 string entries in the list.



1380
1381
1382
# File 'lambda/cfn_function.rb', line 1380

def entry_point
  @entry_point
end

#working_directoryString? (readonly)

Specifies the working directory.

The length of the directory string cannot exceed 1,000 characters.



1387
1388
1389
# File 'lambda/cfn_function.rb', line 1387

def working_directory
  @working_directory
end

Class Method Details

.jsii_propertiesObject



1389
1390
1391
1392
1393
1394
1395
# File 'lambda/cfn_function.rb', line 1389

def self.jsii_properties
  {
    :command => "command",
    :entry_point => "entryPoint",
    :working_directory => "workingDirectory",
  }
end

Instance Method Details

#to_jsiiObject



1397
1398
1399
1400
1401
1402
1403
1404
1405
# File 'lambda/cfn_function.rb', line 1397

def to_jsii
  result = {}
  result.merge!({
    "command" => @command,
    "entryPoint" => @entry_point,
    "workingDirectory" => @working_directory,
  })
  result.compact
end