Class: AWSCDK::AppSync::CfnFunctionConfiguration::AppSyncRuntimeProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_sync/cfn_function_configuration.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.



704
705
706
707
708
709
# File 'app_sync/cfn_function_configuration.rb', line 704

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 .



717
718
719
# File 'app_sync/cfn_function_configuration.rb', line 717

def name
  @name
end

#runtime_versionString (readonly)

The version of the runtime to use.

Currently, the only allowed version is 1.0.0 .



724
725
726
# File 'app_sync/cfn_function_configuration.rb', line 724

def runtime_version
  @runtime_version
end

Class Method Details

.jsii_propertiesObject



726
727
728
729
730
731
# File 'app_sync/cfn_function_configuration.rb', line 726

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

Instance Method Details

#to_jsiiObject



733
734
735
736
737
738
739
740
# File 'app_sync/cfn_function_configuration.rb', line 733

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