Class: AWSCDK::LakeFormation::CfnDataCellsFilterProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lake_formation/cfn_data_cells_filter_props.rb

Overview

Properties for defining a CfnDataCellsFilter.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(database_name:, name:, table_catalog_id:, table_name:, column_names: nil, column_wildcard: nil, row_filter: nil) ⇒ CfnDataCellsFilterProps

Returns a new instance of CfnDataCellsFilterProps.

Parameters:



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lake_formation/cfn_data_cells_filter_props.rb', line 16

def initialize(database_name:, name:, table_catalog_id:, table_name:, column_names: nil, column_wildcard: nil, row_filter: nil)
  @database_name = database_name
  Jsii::Type.check_type(@database_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "databaseName")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @table_catalog_id = table_catalog_id
  Jsii::Type.check_type(@table_catalog_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tableCatalogId")
  @table_name = table_name
  Jsii::Type.check_type(@table_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tableName")
  @column_names = column_names
  Jsii::Type.check_type(@column_names, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "columnNames") unless @column_names.nil?
  @column_wildcard = column_wildcard.is_a?(Hash) ? ::AWSCDK::LakeFormation::CfnDataCellsFilter::ColumnWildcardProperty.new(**column_wildcard.transform_keys(&:to_sym)) : column_wildcard
  Jsii::Type.check_type(@column_wildcard, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sYWtlZm9ybWF0aW9uLkNmbkRhdGFDZWxsc0ZpbHRlci5Db2x1bW5XaWxkY2FyZFByb3BlcnR5In1dfX0=")), "columnWildcard") unless @column_wildcard.nil?
  @row_filter = row_filter.is_a?(Hash) ? ::AWSCDK::LakeFormation::CfnDataCellsFilter::RowFilterProperty.new(**row_filter.transform_keys(&:to_sym)) : row_filter
  Jsii::Type.check_type(@row_filter, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sYWtlZm9ybWF0aW9uLkNmbkRhdGFDZWxsc0ZpbHRlci5Sb3dGaWx0ZXJQcm9wZXJ0eSJ9XX19")), "rowFilter") unless @row_filter.nil?
end

Instance Attribute Details

#column_namesArray<String>? (readonly)

An array of UTF-8 strings.

A list of column names.



67
68
69
# File 'lake_formation/cfn_data_cells_filter_props.rb', line 67

def column_names
  @column_names
end

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

A wildcard with exclusions.

You must specify either a ColumnNames list or the ColumnWildCard .



74
75
76
# File 'lake_formation/cfn_data_cells_filter_props.rb', line 74

def column_wildcard
  @column_wildcard
end

#database_nameString (readonly)

UTF-8 string, not less than 1 or more than 255 bytes long, matching the single-line string pattern .

A database in the Data Catalog .



39
40
41
# File 'lake_formation/cfn_data_cells_filter_props.rb', line 39

def database_name
  @database_name
end

#nameString (readonly)

UTF-8 string, not less than 1 or more than 255 bytes long, matching the single-line string pattern .

The name given by the user to the data filter cell.



46
47
48
# File 'lake_formation/cfn_data_cells_filter_props.rb', line 46

def name
  @name
end

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

A PartiQL predicate.



79
80
81
# File 'lake_formation/cfn_data_cells_filter_props.rb', line 79

def row_filter
  @row_filter
end

#table_catalog_idString (readonly)

Catalog id string, not less than 1 or more than 255 bytes long, matching the single-line string pattern .

The ID of the catalog to which the table belongs.



53
54
55
# File 'lake_formation/cfn_data_cells_filter_props.rb', line 53

def table_catalog_id
  @table_catalog_id
end

#table_nameString (readonly)

UTF-8 string, not less than 1 or more than 255 bytes long, matching the single-line string pattern .

A table in the database.



60
61
62
# File 'lake_formation/cfn_data_cells_filter_props.rb', line 60

def table_name
  @table_name
end

Class Method Details

.jsii_propertiesObject



81
82
83
84
85
86
87
88
89
90
91
# File 'lake_formation/cfn_data_cells_filter_props.rb', line 81

def self.jsii_properties
  {
    :database_name => "databaseName",
    :name => "name",
    :table_catalog_id => "tableCatalogId",
    :table_name => "tableName",
    :column_names => "columnNames",
    :column_wildcard => "columnWildcard",
    :row_filter => "rowFilter",
  }
end

Instance Method Details

#to_jsiiObject



93
94
95
96
97
98
99
100
101
102
103
104
105
# File 'lake_formation/cfn_data_cells_filter_props.rb', line 93

def to_jsii
  result = {}
  result.merge!({
    "databaseName" => @database_name,
    "name" => @name,
    "tableCatalogId" => @table_catalog_id,
    "tableName" => @table_name,
    "columnNames" => @column_names,
    "columnWildcard" => @column_wildcard,
    "rowFilter" => @row_filter,
  })
  result.compact
end