Class: AWSCDK::AppSync::Resolver
- Inherits:
-
Constructs::Construct
- Object
- Constructs::Construct
- AWSCDK::AppSync::Resolver
- Defined in:
- app_sync/resolver.rb
Overview
An AppSync resolver.
Class Method Summary collapse
Instance Method Summary collapse
-
#arn ⇒ String
the ARN of the resolver.
-
#initialize(scope, id, props) ⇒ Resolver
constructor
A new instance of Resolver.
-
#node ⇒ Constructs::Node
The tree node.
-
#to_string ⇒ String
Returns a string representation of this construct.
-
#with(*mixins) ⇒ Constructs::IConstruct
Applies one or more mixins to this construct.
Constructor Details
#initialize(scope, id, props) ⇒ Resolver
Returns a new instance of Resolver.
11 12 13 14 15 16 17 |
# File 'app_sync/resolver.rb', line 11 def initialize(scope, id, props) props = props.is_a?(Hash) ? ::AWSCDK::AppSync::ResolverProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwc3luYy5SZXNvbHZlclByb3BzIn0=")), "props") Jsii::Object.instance_method(:initialize).bind(self).call(scope, id, props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'app_sync/resolver.rb', line 19 def self.jsii_overridable_methods { :node => { kind: :property, name: "node", is_optional: false }, :arn => { kind: :property, name: "arn", is_optional: false }, :to_string => { kind: :method, name: "toString", is_optional: false }, :with => { kind: :method, name: "with", is_optional: false }, } end |
Instance Method Details
#arn ⇒ String
the ARN of the resolver.
38 39 40 |
# File 'app_sync/resolver.rb', line 38 def arn() jsii_get_property("arn") end |
#node ⇒ Constructs::Node
The tree node.
31 32 33 |
# File 'app_sync/resolver.rb', line 31 def node() jsii_get_property("node") end |
#to_string ⇒ String
Returns a string representation of this construct.
45 46 47 |
# File 'app_sync/resolver.rb', line 45 def to_string() jsii_call_method("toString", []) end |
#with(*mixins) ⇒ Constructs::IConstruct
Applies one or more mixins to this construct.
Mixins are applied in order. The list of constructs is captured at the
start of the call, so constructs added by a mixin will not be visited.
Use multiple with() calls if subsequent mixins should apply to added
constructs.
58 59 60 61 62 63 |
# File 'app_sync/resolver.rb', line 58 def with(*mixins) mixins.each_with_index do |item, index| Jsii::Type.check_type(item, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLklNaXhpbiJ9")), "mixins[#{index}]") end jsii_call_method("with", [*mixins]) end |