Class: AWSCDK::AppSync::RuntimeConfig

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

Overview

Config for binding runtime to a function or resolver.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, runtime_version:) ⇒ RuntimeConfig

Returns a new instance of RuntimeConfig.

Parameters:

  • name (String)

    The name of the runtime.

  • runtime_version (String)

    The version string of the runtime.



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

#nameString (readonly)

The name of the runtime.

Returns:

  • (String)


19
20
21
# File 'app_sync/runtime_config.rb', line 19

def name
  @name
end

#runtime_versionString (readonly)

The version string of the runtime.

Returns:

  • (String)


23
24
25
# File 'app_sync/runtime_config.rb', line 23

def runtime_version
  @runtime_version
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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