Class: AWSCDK::AppSync::CfnResolver::AppSyncRuntimeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppSync::CfnResolver::AppSyncRuntimeProperty
- 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
-
#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.
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
#name ⇒ String (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_version ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |