Class: AWSCDK::DataBrew::CfnRulesetProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DataBrew::CfnRulesetProps
- Defined in:
- data_brew/cfn_ruleset_props.rb
Overview
Properties for defining a CfnRuleset.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The description of the ruleset.
-
#name ⇒ String
readonly
The name of the ruleset.
-
#rules ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::DataBrew::CfnRuleset::RuleProperty>
readonly
Contains metadata about the ruleset.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this resource.
-
#target_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of a resource (dataset) that the ruleset is associated with.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, rules:, target_arn:, description: nil, tags: nil) ⇒ CfnRulesetProps
constructor
A new instance of CfnRulesetProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, rules:, target_arn:, description: nil, tags: nil) ⇒ CfnRulesetProps
Returns a new instance of CfnRulesetProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'data_brew/cfn_ruleset_props.rb', line 14 def initialize(name:, rules:, target_arn:, description: nil, tags: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @rules = rules Jsii::Type.check_type(@rules, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZGF0YWJyZXcuQ2ZuUnVsZXNldC5SdWxlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "rules") @target_arn = target_arn Jsii::Type.check_type(@target_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetArn") @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 ruleset.
46 47 48 |
# File 'data_brew/cfn_ruleset_props.rb', line 46 def description @description end |
#name ⇒ String (readonly)
The name of the ruleset.
31 32 33 |
# File 'data_brew/cfn_ruleset_props.rb', line 31 def name @name end |
#rules ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::DataBrew::CfnRuleset::RuleProperty> (readonly)
Contains metadata about the ruleset.
36 37 38 |
# File 'data_brew/cfn_ruleset_props.rb', line 36 def rules @rules end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of key-value pairs to apply to this resource.
For more information, see Tag .
53 54 55 |
# File 'data_brew/cfn_ruleset_props.rb', line 53 def @tags end |
#target_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of a resource (dataset) that the ruleset is associated with.
41 42 43 |
# File 'data_brew/cfn_ruleset_props.rb', line 41 def target_arn @target_arn end |
Class Method Details
.jsii_properties ⇒ Object
55 56 57 58 59 60 61 62 63 |
# File 'data_brew/cfn_ruleset_props.rb', line 55 def self.jsii_properties { :name => "name", :rules => "rules", :target_arn => "targetArn", :description => "description", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
65 66 67 68 69 70 71 72 73 74 75 |
# File 'data_brew/cfn_ruleset_props.rb', line 65 def to_jsii result = {} result.merge!({ "name" => @name, "rules" => @rules, "targetArn" => @target_arn, "description" => @description, "tags" => @tags, }) result.compact end |