Class: AWSCDK::AppSync::RuntimeConfig
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppSync::RuntimeConfig
- Defined in:
- app_sync/runtime_config.rb
Overview
Config for binding runtime to a function or resolver.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The name of the runtime.
-
#runtime_version ⇒ String
readonly
The version string of the runtime.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, runtime_version:) ⇒ RuntimeConfig
constructor
A new instance of RuntimeConfig.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, runtime_version:) ⇒ RuntimeConfig
Returns a new instance of RuntimeConfig.
9 10 11 12 13 14 |
# File 'app_sync/runtime_config.rb', line 9 def initialize(name:, runtime_version:) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @runtime_version = runtime_version Jsii::Type.check_type(@runtime_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "runtimeVersion") end |
Instance Attribute Details
#name ⇒ String (readonly)
The name of the runtime.
19 20 21 |
# File 'app_sync/runtime_config.rb', line 19 def name @name end |
#runtime_version ⇒ String (readonly)
The version string of the runtime.
23 24 25 |
# File 'app_sync/runtime_config.rb', line 23 def runtime_version @runtime_version end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'app_sync/runtime_config.rb', line 25 def self.jsii_properties { :name => "name", :runtime_version => "runtimeVersion", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'app_sync/runtime_config.rb', line 32 def to_jsii result = {} result.merge!({ "name" => @name, "runtimeVersion" => @runtime_version, }) result.compact end |