Class: AWSCDK::AppSync::SortKeyStep

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

Overview

Utility class to allow assigning a value or an auto-generated id to a sort key.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pkey, skey) ⇒ SortKeyStep

Returns a new instance of SortKeyStep.

Parameters:



10
11
12
13
14
# File 'app_sync/sort_key_step.rb', line 10

def initialize(pkey, skey)
  Jsii::Type.check_type(pkey, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwc3luYy5Bc3NpZ24ifQ==")), "pkey")
  Jsii::Type.check_type(skey, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "skey")
  Jsii::Object.instance_method(:initialize).bind(self).call(pkey, skey)
end

Class Method Details

.jsii_overridable_methodsObject



16
17
18
19
20
21
# File 'app_sync/sort_key_step.rb', line 16

def self.jsii_overridable_methods
  {
    :auto => { kind: :method, name: "auto", is_optional: false },
    :is => { kind: :method, name: "is", is_optional: false },
  }
end

Instance Method Details

#autoAWSCDK::AppSync::PrimaryKey

Assign an auto-generated value to the sort key.



26
27
28
# File 'app_sync/sort_key_step.rb', line 26

def auto()
  jsii_call_method("auto", [])
end

#is(val) ⇒ AWSCDK::AppSync::PrimaryKey

Assign an auto-generated value to the sort key.

Parameters:

  • val (String)

Returns:



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

def is(val)
  Jsii::Type.check_type(val, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "val")
  jsii_call_method("is", [val])
end