Class: AWSCDK::Glue::CfnCrawler::JdbcTargetProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Glue::CfnCrawler::JdbcTargetProperty
- Defined in:
- glue/cfn_crawler.rb
Overview
Specifies a JDBC data store to crawl.
Instance Attribute Summary collapse
-
#connection_name ⇒ String?
readonly
The name of the connection to use to connect to the JDBC target.
-
#enable_additional_metadata ⇒ Array<String>?
readonly
Specify a value of
RAWTYPESorCOMMENTSto enable additional metadata in table responses. -
#exclusions ⇒ Array<String>?
readonly
A list of glob patterns used to exclude from the crawl.
-
#path ⇒ String?
readonly
The path of the JDBC target.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(connection_name: nil, enable_additional_metadata: nil, exclusions: nil, path: nil) ⇒ JdbcTargetProperty
constructor
A new instance of JdbcTargetProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(connection_name: nil, enable_additional_metadata: nil, exclusions: nil, path: nil) ⇒ JdbcTargetProperty
Returns a new instance of JdbcTargetProperty.
1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 |
# File 'glue/cfn_crawler.rb', line 1039 def initialize(connection_name: nil, enable_additional_metadata: nil, exclusions: nil, path: nil) @connection_name = connection_name Jsii::Type.check_type(@connection_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "connectionName") unless @connection_name.nil? @enable_additional_metadata = Jsii::Type.check_type(@enable_additional_metadata, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "enableAdditionalMetadata") unless @enable_additional_metadata.nil? @exclusions = exclusions Jsii::Type.check_type(@exclusions, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "exclusions") unless @exclusions.nil? @path = path Jsii::Type.check_type(@path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "path") unless @path.nil? end |
Instance Attribute Details
#connection_name ⇒ String? (readonly)
The name of the connection to use to connect to the JDBC target.
1054 1055 1056 |
# File 'glue/cfn_crawler.rb', line 1054 def connection_name @connection_name end |
#enable_additional_metadata ⇒ Array<String>? (readonly)
Specify a value of RAWTYPES or COMMENTS to enable additional metadata in table responses.
RAWTYPES provides the native-level datatype. COMMENTS provides comments associated with a column or table in the database.
If you do not need additional metadata, keep the field empty.
1063 1064 1065 |
# File 'glue/cfn_crawler.rb', line 1063 def @enable_additional_metadata end |
#exclusions ⇒ Array<String>? (readonly)
A list of glob patterns used to exclude from the crawl.
For more information, see Catalog Tables with a Crawler .
1070 1071 1072 |
# File 'glue/cfn_crawler.rb', line 1070 def exclusions @exclusions end |
#path ⇒ String? (readonly)
The path of the JDBC target.
1075 1076 1077 |
# File 'glue/cfn_crawler.rb', line 1075 def path @path end |
Class Method Details
.jsii_properties ⇒ Object
1077 1078 1079 1080 1081 1082 1083 1084 |
# File 'glue/cfn_crawler.rb', line 1077 def self.jsii_properties { :connection_name => "connectionName", :enable_additional_metadata => "enableAdditionalMetadata", :exclusions => "exclusions", :path => "path", } end |
Instance Method Details
#to_jsii ⇒ Object
1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 |
# File 'glue/cfn_crawler.rb', line 1086 def to_jsii result = {} result.merge!({ "connectionName" => @connection_name, "enableAdditionalMetadata" => @enable_additional_metadata, "exclusions" => @exclusions, "path" => @path, }) result.compact end |