Class: AWSCDK::AppSync::Values

Inherits:
Jsii::Object
  • Object
show all
Defined in:
app_sync/values.rb

Overview

Factory class for attribute value assignments.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeValues

Returns a new instance of Values.



8
9
10
# File 'app_sync/values.rb', line 8

def initialize
  Jsii::Object.instance_method(:initialize).bind(self).call
end

Class Method Details

.attribute(attr) ⇒ AWSCDK::AppSync::AttributeValuesStep

Allows assigning a value to the specified attribute.

Parameters:

  • attr (String)

Returns:



21
22
23
24
# File 'app_sync/values.rb', line 21

def self.attribute(attr)
  Jsii::Type.check_type(attr, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "attr")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appsync.Values", "attribute", [attr])
end

.jsii_overridable_methodsObject



12
13
14
15
# File 'app_sync/values.rb', line 12

def self.jsii_overridable_methods
  {
  }
end

.projecting(arg = nil) ⇒ AWSCDK::AppSync::AttributeValues

Treats the specified object as a map of assignments, where the property names represent attribute names.

It’s opinionated about how it represents some of the nested objects: e.g., it will use lists (“L”) rather than sets (“SS”, “NS”, “BS”). By default it projects the argument container ("$ctx.args").

Parameters:

  • arg (String, nil) (defaults to: nil)

Returns:



34
35
36
37
# File 'app_sync/values.rb', line 34

def self.projecting(arg = nil)
  Jsii::Type.check_type(arg, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "arg") unless arg.nil?
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appsync.Values", "projecting", [arg])
end