Class: AWSCDK::CloudFront::FileCodeOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::FileCodeOptions
- Defined in:
- cloud_front/file_code_options.rb
Overview
Options when reading the function's code from an external file.
Instance Attribute Summary collapse
-
#file_path ⇒ String
readonly
The path of the file to read the code from.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(file_path:) ⇒ FileCodeOptions
constructor
A new instance of FileCodeOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(file_path:) ⇒ FileCodeOptions
Returns a new instance of FileCodeOptions.
8 9 10 11 |
# File 'cloud_front/file_code_options.rb', line 8 def initialize(file_path:) @file_path = file_path Jsii::Type.check_type(@file_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "filePath") end |
Instance Attribute Details
#file_path ⇒ String (readonly)
The path of the file to read the code from.
16 17 18 |
# File 'cloud_front/file_code_options.rb', line 16 def file_path @file_path end |
Class Method Details
.jsii_properties ⇒ Object
18 19 20 21 22 |
# File 'cloud_front/file_code_options.rb', line 18 def self.jsii_properties { :file_path => "filePath", } end |
Instance Method Details
#to_jsii ⇒ Object
24 25 26 27 28 29 30 |
# File 'cloud_front/file_code_options.rb', line 24 def to_jsii result = {} result.merge!({ "filePath" => @file_path, }) result.compact end |