Class: AWSCDK::StepFunctionsTasks::DynamoProjectionExpression

Inherits:
Jsii::Object
  • Object
show all
Defined in:
step_functions_tasks/dynamo_projection_expression.rb

Overview

Class to generate projection expression.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDynamoProjectionExpression

Returns a new instance of DynamoProjectionExpression.



8
9
10
# File 'step_functions_tasks/dynamo_projection_expression.rb', line 8

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

Class Method Details

.jsii_overridable_methodsObject



12
13
14
15
16
17
18
# File 'step_functions_tasks/dynamo_projection_expression.rb', line 12

def self.jsii_overridable_methods
  {
    :at_index => { kind: :method, name: "atIndex", is_optional: false },
    :to_string => { kind: :method, name: "toString", is_optional: false },
    :with_attribute => { kind: :method, name: "withAttribute", is_optional: false },
  }
end

Instance Method Details

#at_index(index) ⇒ AWSCDK::StepFunctionsTasks::DynamoProjectionExpression

Adds the array literal access for passed index.

Parameters:

  • index (Numeric)

    array index.

Returns:

  • (AWSCDK::StepFunctionsTasks::DynamoProjectionExpression)


24
25
26
27
# File 'step_functions_tasks/dynamo_projection_expression.rb', line 24

def at_index(index)
  Jsii::Type.check_type(index, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "index")
  jsii_call_method("atIndex", [index])
end

#to_stringString

converts and return the string expression.

Returns:

  • (String)


32
33
34
# File 'step_functions_tasks/dynamo_projection_expression.rb', line 32

def to_string()
  jsii_call_method("toString", [])
end

#with_attribute(attr) ⇒ AWSCDK::StepFunctionsTasks::DynamoProjectionExpression

Adds the passed attribute to the chain.

Parameters:

  • attr (String)

    Attribute name.

Returns:

  • (AWSCDK::StepFunctionsTasks::DynamoProjectionExpression)


40
41
42
43
# File 'step_functions_tasks/dynamo_projection_expression.rb', line 40

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