Class: AWSCDK::DataBrew::CfnRecipe::RecipeStepProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
data_brew/cfn_recipe.rb

Overview

Represents a single step from a DataBrew recipe to be performed.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action:, condition_expressions: nil) ⇒ RecipeStepProperty

Returns a new instance of RecipeStepProperty.

Parameters:



1805
1806
1807
1808
1809
1810
# File 'data_brew/cfn_recipe.rb', line 1805

def initialize(action:, condition_expressions: nil)
  @action = action.is_a?(Hash) ? ::AWSCDK::DataBrew::CfnRecipe::ActionProperty.new(**action.transform_keys(&:to_sym)) : action
  Jsii::Type.check_type(@action, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kYXRhYnJldy5DZm5SZWNpcGUuQWN0aW9uUHJvcGVydHkifV19fQ==")), "action")
  @condition_expressions = condition_expressions
  Jsii::Type.check_type(@condition_expressions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZGF0YWJyZXcuQ2ZuUmVjaXBlLkNvbmRpdGlvbkV4cHJlc3Npb25Qcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "conditionExpressions") unless @condition_expressions.nil?
end

Instance Attribute Details

#actionAWSCDK::IResolvable, AWSCDK::DataBrew::CfnRecipe::ActionProperty (readonly)

The particular action to be performed in the recipe step.



1816
1817
1818
# File 'data_brew/cfn_recipe.rb', line 1816

def action
  @action
end

#condition_expressionsAWSCDK::IResolvable, ... (readonly)

One or more conditions that must be met for the recipe step to succeed.

All of the conditions in the array must be met. In other words, all of the conditions must be combined using a logical AND operation.



1823
1824
1825
# File 'data_brew/cfn_recipe.rb', line 1823

def condition_expressions
  @condition_expressions
end

Class Method Details

.jsii_propertiesObject



1825
1826
1827
1828
1829
1830
# File 'data_brew/cfn_recipe.rb', line 1825

def self.jsii_properties
  {
    :action => "action",
    :condition_expressions => "conditionExpressions",
  }
end

Instance Method Details

#to_jsiiObject



1832
1833
1834
1835
1836
1837
1838
1839
# File 'data_brew/cfn_recipe.rb', line 1832

def to_jsii
  result = {}
  result.merge!({
    "action" => @action,
    "conditionExpressions" => @condition_expressions,
  })
  result.compact
end