Class: AWSCDK::CleanRooms::CfnConfiguredTable::AggregationConstraintProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
clean_rooms/cfn_configured_table.rb

Overview

Constraint on query output removing output rows that do not meet a minimum number of distinct values of a specified column.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(column_name:, minimum:, type:) ⇒ AggregationConstraintProperty

Returns a new instance of AggregationConstraintProperty.

Parameters:

  • column_name (String)

    Column in aggregation constraint for which there must be a minimum number of distinct values in an output row for it to be in the query output.

  • minimum (Numeric)

    The minimum number of distinct values that an output row must be an aggregation of.

  • type (String)

    The type of aggregation the constraint allows.



666
667
668
669
670
671
672
673
# File 'clean_rooms/cfn_configured_table.rb', line 666

def initialize(column_name:, minimum:, type:)
  @column_name = column_name
  Jsii::Type.check_type(@column_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "columnName")
  @minimum = minimum
  Jsii::Type.check_type(@minimum, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "minimum")
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
end

Instance Attribute Details

#column_nameString (readonly)

Column in aggregation constraint for which there must be a minimum number of distinct values in an output row for it to be in the query output.



679
680
681
# File 'clean_rooms/cfn_configured_table.rb', line 679

def column_name
  @column_name
end

#minimumNumeric (readonly)

The minimum number of distinct values that an output row must be an aggregation of.

Minimum threshold of distinct values for a specified column that must exist in an output row for it to be in the query output.



686
687
688
# File 'clean_rooms/cfn_configured_table.rb', line 686

def minimum
  @minimum
end

#typeString (readonly)

The type of aggregation the constraint allows.

The only valid value is currently COUNT_DISTINCT.



693
694
695
# File 'clean_rooms/cfn_configured_table.rb', line 693

def type
  @type
end

Class Method Details

.jsii_propertiesObject



695
696
697
698
699
700
701
# File 'clean_rooms/cfn_configured_table.rb', line 695

def self.jsii_properties
  {
    :column_name => "columnName",
    :minimum => "minimum",
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



703
704
705
706
707
708
709
710
711
# File 'clean_rooms/cfn_configured_table.rb', line 703

def to_jsii
  result = {}
  result.merge!({
    "columnName" => @column_name,
    "minimum" => @minimum,
    "type" => @type,
  })
  result.compact
end