Class: AWSCDK::EC2::ExecuteFileOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::ExecuteFileOptions
- Defined in:
- ec2/execute_file_options.rb
Overview
Options when executing a file.
Instance Attribute Summary collapse
-
#arguments ⇒ String?
readonly
The arguments to be passed to the file.
-
#file_path ⇒ String
readonly
The path to the file.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(file_path:, arguments: nil) ⇒ ExecuteFileOptions
constructor
A new instance of ExecuteFileOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(file_path:, arguments: nil) ⇒ ExecuteFileOptions
Returns a new instance of ExecuteFileOptions.
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
#arguments ⇒ String? (readonly)
Note:
Default: No arguments are passed to the file.
The arguments to be passed to the file.
24 25 26 |
# File 'ec2/execute_file_options.rb', line 24 def arguments @arguments end |
#file_path ⇒ String (readonly)
The path to the file.
19 20 21 |
# File 'ec2/execute_file_options.rb', line 19 def file_path @file_path end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |