Class: AWSCDK::DataBrew::CfnRecipeProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DataBrew::CfnRecipeProps
- Defined in:
- data_brew/cfn_recipe_props.rb
Overview
Properties for defining a CfnRecipe.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The description of the recipe.
-
#name ⇒ String
readonly
The unique name for the recipe.
-
#steps ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::DataBrew::CfnRecipe::RecipeStepProperty>
readonly
A list of steps that are defined by the recipe.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
Metadata tags that have been applied to the recipe.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, steps:, description: nil, tags: nil) ⇒ CfnRecipeProps
constructor
A new instance of CfnRecipeProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, steps:, description: nil, tags: nil) ⇒ CfnRecipeProps
Returns a new instance of CfnRecipeProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'data_brew/cfn_recipe_props.rb', line 13 def initialize(name:, steps:, description: nil, tags: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @steps = steps Jsii::Type.check_type(@steps, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZGF0YWJyZXcuQ2ZuUmVjaXBlLlJlY2lwZVN0ZXBQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "steps") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
The description of the recipe.
38 39 40 |
# File 'data_brew/cfn_recipe_props.rb', line 38 def description @description end |
#name ⇒ String (readonly)
The unique name for the recipe.
28 29 30 |
# File 'data_brew/cfn_recipe_props.rb', line 28 def name @name end |
#steps ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::DataBrew::CfnRecipe::RecipeStepProperty> (readonly)
A list of steps that are defined by the recipe.
33 34 35 |
# File 'data_brew/cfn_recipe_props.rb', line 33 def steps @steps end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
Metadata tags that have been applied to the recipe.
43 44 45 |
# File 'data_brew/cfn_recipe_props.rb', line 43 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'data_brew/cfn_recipe_props.rb', line 45 def self.jsii_properties { :name => "name", :steps => "steps", :description => "description", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'data_brew/cfn_recipe_props.rb', line 54 def to_jsii result = {} result.merge!({ "name" => @name, "steps" => @steps, "description" => @description, "tags" => @tags, }) result.compact end |