Class: AWSCDK::DataBrew::CfnRulesetProps

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

Overview

Properties for defining a CfnRuleset.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, rules:, target_arn:, description: nil, tags: nil) ⇒ CfnRulesetProps

Returns a new instance of CfnRulesetProps.

Parameters:

  • name (String)

    The name of the ruleset.

  • rules (AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::DataBrew::CfnRuleset::RuleProperty>)

    Contains metadata about the ruleset.

  • target_arn (String)

    The Amazon Resource Name (ARN) of a resource (dataset) that the ruleset is associated with.

  • description (String, nil) (defaults to: nil)

    The description of the ruleset.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    An array of key-value pairs to apply to this resource.



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

The description of the ruleset.



46
47
48
# File 'data_brew/cfn_ruleset_props.rb', line 46

def description
  @description
end

#nameString (readonly)

The name of the ruleset.



31
32
33
# File 'data_brew/cfn_ruleset_props.rb', line 31

def name
  @name
end

#tagsArray<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
  @tags
end

#target_arnString (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_propertiesObject



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_jsiiObject



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