Class: AWSCDK::EC2::ExecuteFileOptions

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/execute_file_options.rb

Overview

Options when executing a file.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_path:, arguments: nil) ⇒ ExecuteFileOptions

Returns a new instance of ExecuteFileOptions.

Parameters:

  • file_path (String)

    The path to the file.

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

    The arguments to be passed to the file.



9
10
11
12
13
14
# File 'ec2/execute_file_options.rb', line 9

def initialize(file_path:, arguments: nil)
  @file_path = file_path
  Jsii::Type.check_type(@file_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "filePath")
  @arguments = arguments
  Jsii::Type.check_type(@arguments, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "arguments") unless @arguments.nil?
end

Instance Attribute Details

#argumentsString? (readonly)

Note:

Default: No arguments are passed to the file.

The arguments to be passed to the file.

Returns:

  • (String, nil)


24
25
26
# File 'ec2/execute_file_options.rb', line 24

def arguments
  @arguments
end

#file_pathString (readonly)

The path to the file.

Returns:

  • (String)


19
20
21
# File 'ec2/execute_file_options.rb', line 19

def file_path
  @file_path
end

Class Method Details

.jsii_propertiesObject



26
27
28
29
30
31
# File 'ec2/execute_file_options.rb', line 26

def self.jsii_properties
  {
    :file_path => "filePath",
    :arguments => "arguments",
  }
end

Instance Method Details

#to_jsiiObject



33
34
35
36
37
38
39
40
# File 'ec2/execute_file_options.rb', line 33

def to_jsii
  result = {}
  result.merge!({
    "filePath" => @file_path,
    "arguments" => @arguments,
  })
  result.compact
end