Class: AWSCDK::Glue::CfnCrawler::IcebergTargetProperty

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

Overview

Specifies Apache Iceberg data store targets.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connection_name: nil, exclusions: nil, maximum_traversal_depth: nil, paths: nil) ⇒ IcebergTargetProperty

Returns a new instance of IcebergTargetProperty.

Parameters:

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

    The name of the connection to use to connect to the Iceberg target.

  • exclusions (Array<String>, nil) (defaults to: nil)

    A list of global patterns used to exclude from the crawl.

  • maximum_traversal_depth (Numeric, nil) (defaults to: nil)

    The maximum depth of Amazon S3 paths that the crawler can traverse to discover the Iceberg metadata folder in your Amazon S3 path.

  • paths (Array<String>, nil) (defaults to: nil)

    One or more Amazon S3 paths that contains Iceberg metadata folders as s3://bucket/prefix .



974
975
976
977
978
979
980
981
982
983
# File 'glue/cfn_crawler.rb', line 974

def initialize(connection_name: nil, exclusions: nil, maximum_traversal_depth: nil, paths: nil)
  @connection_name = connection_name
  Jsii::Type.check_type(@connection_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "connectionName") unless @connection_name.nil?
  @exclusions = exclusions
  Jsii::Type.check_type(@exclusions, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "exclusions") unless @exclusions.nil?
  @maximum_traversal_depth = maximum_traversal_depth
  Jsii::Type.check_type(@maximum_traversal_depth, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maximumTraversalDepth") unless @maximum_traversal_depth.nil?
  @paths = paths
  Jsii::Type.check_type(@paths, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "paths") unless @paths.nil?
end

Instance Attribute Details

#connection_nameString? (readonly)

The name of the connection to use to connect to the Iceberg target.



989
990
991
# File 'glue/cfn_crawler.rb', line 989

def connection_name
  @connection_name
end

#exclusionsArray<String>? (readonly)

A list of global patterns used to exclude from the crawl.



994
995
996
# File 'glue/cfn_crawler.rb', line 994

def exclusions
  @exclusions
end

#maximum_traversal_depthNumeric? (readonly)

The maximum depth of Amazon S3 paths that the crawler can traverse to discover the Iceberg metadata folder in your Amazon S3 path.

Used to limit the crawler run time.



1001
1002
1003
# File 'glue/cfn_crawler.rb', line 1001

def maximum_traversal_depth
  @maximum_traversal_depth
end

#pathsArray<String>? (readonly)

One or more Amazon S3 paths that contains Iceberg metadata folders as s3://bucket/prefix .



1006
1007
1008
# File 'glue/cfn_crawler.rb', line 1006

def paths
  @paths
end

Class Method Details

.jsii_propertiesObject



1008
1009
1010
1011
1012
1013
1014
1015
# File 'glue/cfn_crawler.rb', line 1008

def self.jsii_properties
  {
    :connection_name => "connectionName",
    :exclusions => "exclusions",
    :maximum_traversal_depth => "maximumTraversalDepth",
    :paths => "paths",
  }
end

Instance Method Details

#to_jsiiObject



1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
# File 'glue/cfn_crawler.rb', line 1017

def to_jsii
  result = {}
  result.merge!({
    "connectionName" => @connection_name,
    "exclusions" => @exclusions,
    "maximumTraversalDepth" => @maximum_traversal_depth,
    "paths" => @paths,
  })
  result.compact
end