Class: AWSCDK::AppSync::AttributeValues
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::AppSync::AttributeValues
- Defined in:
- app_sync/attribute_values.rb
Overview
Specifies the attribute value assignments.
Class Method Summary collapse
Instance Method Summary collapse
-
#attribute(attr) ⇒ AWSCDK::AppSync::AttributeValuesStep
Allows assigning a value to the specified attribute.
-
#initialize(container, assignments = nil) ⇒ AttributeValues
constructor
A new instance of AttributeValues.
-
#render_template ⇒ String
Renders the attribute value assingments to a VTL string.
-
#render_variables ⇒ String
Renders the variables required for
renderTemplate.
Constructor Details
#initialize(container, assignments = nil) ⇒ AttributeValues
Returns a new instance of AttributeValues.
10 11 12 13 14 |
# File 'app_sync/attribute_values.rb', line 10 def initialize(container, assignments = nil) Jsii::Type.check_type(container, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "container") Jsii::Type.check_type(assignments, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBzeW5jLkFzc2lnbiJ9LCJraW5kIjoiYXJyYXkifX0=")), "assignments") unless assignments.nil? Jsii::Object.instance_method(:initialize).bind(self).call(container, assignments) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
16 17 18 19 20 21 22 |
# File 'app_sync/attribute_values.rb', line 16 def self.jsii_overridable_methods { :attribute => { kind: :method, name: "attribute", is_optional: false }, :render_template => { kind: :method, name: "renderTemplate", is_optional: false }, :render_variables => { kind: :method, name: "renderVariables", is_optional: false }, } end |
Instance Method Details
#attribute(attr) ⇒ AWSCDK::AppSync::AttributeValuesStep
Allows assigning a value to the specified attribute.
28 29 30 31 |
# File 'app_sync/attribute_values.rb', line 28 def attribute(attr) Jsii::Type.check_type(attr, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "attr") jsii_call_method("attribute", [attr]) end |
#render_template ⇒ String
Renders the attribute value assingments to a VTL string.
36 37 38 |
# File 'app_sync/attribute_values.rb', line 36 def render_template() jsii_call_method("renderTemplate", []) end |
#render_variables ⇒ String
Renders the variables required for renderTemplate.
43 44 45 |
# File 'app_sync/attribute_values.rb', line 43 def render_variables() jsii_call_method("renderVariables", []) end |