Class: AWSCDK::Glue::CfnCrawler::MongoDBTargetProperty

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

Overview

Specifies an Amazon DocumentDB or MongoDB data store to crawl.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connection_name: nil, path: nil) ⇒ MongoDBTargetProperty

Returns a new instance of MongoDBTargetProperty.

Parameters:

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

    The name of the connection to use to connect to the Amazon DocumentDB or MongoDB target.

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

    The path of the Amazon DocumentDB or MongoDB target (database/collection).



1151
1152
1153
1154
1155
1156
# File 'glue/cfn_crawler.rb', line 1151

def initialize(connection_name: nil, path: nil)
  @connection_name = connection_name
  Jsii::Type.check_type(@connection_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "connectionName") unless @connection_name.nil?
  @path = path
  Jsii::Type.check_type(@path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "path") unless @path.nil?
end

Instance Attribute Details

#connection_nameString? (readonly)

The name of the connection to use to connect to the Amazon DocumentDB or MongoDB target.



1162
1163
1164
# File 'glue/cfn_crawler.rb', line 1162

def connection_name
  @connection_name
end

#pathString? (readonly)

The path of the Amazon DocumentDB or MongoDB target (database/collection).



1167
1168
1169
# File 'glue/cfn_crawler.rb', line 1167

def path
  @path
end

Class Method Details

.jsii_propertiesObject



1169
1170
1171
1172
1173
1174
# File 'glue/cfn_crawler.rb', line 1169

def self.jsii_properties
  {
    :connection_name => "connectionName",
    :path => "path",
  }
end

Instance Method Details

#to_jsiiObject



1176
1177
1178
1179
1180
1181
1182
1183
# File 'glue/cfn_crawler.rb', line 1176

def to_jsii
  result = {}
  result.merge!({
    "connectionName" => @connection_name,
    "path" => @path,
  })
  result.compact
end