Class: AWSCDK::CloudFront::FileCodeOptions

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cloud_front/file_code_options.rb

Overview

Options when reading the function's code from an external file.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_path:) ⇒ FileCodeOptions

Returns a new instance of FileCodeOptions.

Parameters:

  • file_path (String)

    The path of the file to read the code from.



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_pathString (readonly)

The path of the file to read the code from.

Returns:

  • (String)


16
17
18
# File 'cloud_front/file_code_options.rb', line 16

def file_path
  @file_path
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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