Class: AWSCDK::AppSync::FunctionRuntime

Inherits:
Jsii::Object
  • Object
show all
Defined in:
app_sync/function_runtime.rb

Overview

Utility class for specifying specific appsync runtime versions.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(family, version) ⇒ FunctionRuntime

Returns a new instance of FunctionRuntime.

Parameters:



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_0AWSCDK::AppSync::FunctionRuntime

APPSYNC_JS v1.0.0 runtime.

Returns:

  • (AWSCDK::AppSync::FunctionRuntime)


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_methodsObject



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

#nameString

The name of the runtime.

Returns:

  • (String)


34
35
36
# File 'app_sync/function_runtime.rb', line 34

def name()
  jsii_get_property("name")
end

#to_propertiesAWSCDK::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

#versionString

The runtime version.

Returns:

  • (String)


41
42
43
# File 'app_sync/function_runtime.rb', line 41

def version()
  jsii_get_property("version")
end