Class: AWSCDK::AppSync::FunctionRuntime
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::AppSync::FunctionRuntime
- Defined in:
- app_sync/function_runtime.rb
Overview
Utility class for specifying specific appsync runtime versions.
Class Method Summary collapse
-
.JS_1_0_0 ⇒ AWSCDK::AppSync::FunctionRuntime
APPSYNC_JS v1.0.0 runtime.
- .jsii_overridable_methods ⇒ Object
Instance Method Summary collapse
-
#initialize(family, version) ⇒ FunctionRuntime
constructor
A new instance of FunctionRuntime.
-
#name ⇒ String
The name of the runtime.
-
#to_properties ⇒ AWSCDK::AppSync::RuntimeConfig
Convert to Cfn runtime configuration property format.
-
#version ⇒ String
The runtime version.
Constructor Details
#initialize(family, version) ⇒ FunctionRuntime
Returns a new instance of FunctionRuntime.
10 11 12 13 14 |
# File 'app_sync/function_runtime.rb', line 10 def initialize(family, version) Jsii::Type.check_type(family, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwc3luYy5GdW5jdGlvblJ1bnRpbWVGYW1pbHkifQ==")), "family") Jsii::Type.check_type(version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "version") Jsii::Object.instance_method(:initialize).bind(self).call(family, version) end |
Class Method Details
.JS_1_0_0 ⇒ AWSCDK::AppSync::FunctionRuntime
APPSYNC_JS v1.0.0 runtime.
27 28 29 |
# File 'app_sync/function_runtime.rb', line 27 def self.JS_1_0_0() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_appsync.FunctionRuntime", "JS_1_0_0") end |
.jsii_overridable_methods ⇒ Object
16 17 18 19 20 21 22 |
# File 'app_sync/function_runtime.rb', line 16 def self.jsii_overridable_methods { :name => { kind: :property, name: "name", is_optional: false }, :version => { kind: :property, name: "version", is_optional: false }, :to_properties => { kind: :method, name: "toProperties", is_optional: false }, } end |
Instance Method Details
#name ⇒ String
The name of the runtime.
34 35 36 |
# File 'app_sync/function_runtime.rb', line 34 def name() jsii_get_property("name") end |
#to_properties ⇒ AWSCDK::AppSync::RuntimeConfig
Convert to Cfn runtime configuration property format.
48 49 50 |
# File 'app_sync/function_runtime.rb', line 48 def to_properties() jsii_call_method("toProperties", []) end |
#version ⇒ String
The runtime version.
41 42 43 |
# File 'app_sync/function_runtime.rb', line 41 def version() jsii_get_property("version") end |