Class: AWSCDK::Glue::CfnTable::IcebergPartitionFieldProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
glue/cfn_table.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, source_id:, transform:, field_id: nil) ⇒ IcebergPartitionFieldProperty

Returns a new instance of IcebergPartitionFieldProperty.

Parameters:

  • name (String)
  • source_id (Numeric)
  • transform (String)
  • field_id (Numeric, nil) (defaults to: nil)


661
662
663
664
665
666
667
668
669
670
# File 'glue/cfn_table.rb', line 661

def initialize(name:, source_id:, transform:, field_id: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @source_id = source_id
  Jsii::Type.check_type(@source_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "sourceId")
  @transform = transform
  Jsii::Type.check_type(@transform, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "transform")
  @field_id = field_id
  Jsii::Type.check_type(@field_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "fieldId") unless @field_id.nil?
end

Instance Attribute Details

#field_idNumeric? (readonly)



683
684
685
# File 'glue/cfn_table.rb', line 683

def field_id
  @field_id
end

#nameString (readonly)



674
675
676
# File 'glue/cfn_table.rb', line 674

def name
  @name
end

#source_idNumeric (readonly)



677
678
679
# File 'glue/cfn_table.rb', line 677

def source_id
  @source_id
end

#transformString (readonly)



680
681
682
# File 'glue/cfn_table.rb', line 680

def transform
  @transform
end

Class Method Details

.jsii_propertiesObject



685
686
687
688
689
690
691
692
# File 'glue/cfn_table.rb', line 685

def self.jsii_properties
  {
    :name => "name",
    :source_id => "sourceId",
    :transform => "transform",
    :field_id => "fieldId",
  }
end

Instance Method Details

#to_jsiiObject



694
695
696
697
698
699
700
701
702
703
# File 'glue/cfn_table.rb', line 694

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "sourceId" => @source_id,
    "transform" => @transform,
    "fieldId" => @field_id,
  })
  result.compact
end