Class: AWSCDK::AppSync::CfnResolver::AppSyncRuntimeProperty

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

Overview

Describes a runtime used by an AWS AppSync resolver or AWS AppSync function.

Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, runtime_version:) ⇒ AppSyncRuntimeProperty

Returns a new instance of AppSyncRuntimeProperty.

Parameters:

  • name (String)

    The name of the runtime to use.

  • runtime_version (String)

    The version of the runtime to use.



744
745
746
747
748
749
# File 'app_sync/cfn_resolver.rb', line 744

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 to use.

Currently, the only allowed value is APPSYNC_JS .



757
758
759
# File 'app_sync/cfn_resolver.rb', line 757

def name
  @name
end

#runtime_versionString (readonly)

The version of the runtime to use.

Currently, the only allowed version is 1.0.0 .



764
765
766
# File 'app_sync/cfn_resolver.rb', line 764

def runtime_version
  @runtime_version
end

Class Method Details

.jsii_propertiesObject



766
767
768
769
770
771
# File 'app_sync/cfn_resolver.rb', line 766

def self.jsii_properties
  {
    :name => "name",
    :runtime_version => "runtimeVersion",
  }
end

Instance Method Details

#to_jsiiObject



773
774
775
776
777
778
779
780
# File 'app_sync/cfn_resolver.rb', line 773

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "runtimeVersion" => @runtime_version,
  })
  result.compact
end