Class: AWSCDK::AppSync::CfnFunctionConfiguration::AppSyncRuntimeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppSync::CfnFunctionConfiguration::AppSyncRuntimeProperty
- 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
-
#name ⇒ String
readonly
The
nameof the runtime to use. -
#runtime_version ⇒ String
readonly
The
versionof the runtime to use.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, runtime_version:) ⇒ AppSyncRuntimeProperty
constructor
A new instance of AppSyncRuntimeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, runtime_version:) ⇒ AppSyncRuntimeProperty
Returns a new instance of AppSyncRuntimeProperty.
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
#name ⇒ String (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_version ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |