Class: AWSCDK::DMS::CfnDataProvider::DocDBSettingsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DMS::CfnDataProvider::DocDBSettingsProperty
- Defined in:
- dms/cfn_data_provider.rb
Overview
Provides information that defines a DocumentDB endpoint.
Instance Attribute Summary collapse
- #certificate_arn ⇒ String? readonly
-
#database_name ⇒ String
readonly
The database name on the DocumentDB source endpoint.
-
#port ⇒ Numeric
readonly
The port value for the DocumentDB source endpoint.
-
#server_name ⇒ String
readonly
The name of the server on the DocumentDB source endpoint.
- #ssl_mode ⇒ String? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(database_name:, port:, server_name:, certificate_arn: nil, ssl_mode: nil) ⇒ DocDBSettingsProperty
constructor
A new instance of DocDBSettingsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(database_name:, port:, server_name:, certificate_arn: nil, ssl_mode: nil) ⇒ DocDBSettingsProperty
Returns a new instance of DocDBSettingsProperty.
608 609 610 611 612 613 614 615 616 617 618 619 |
# File 'dms/cfn_data_provider.rb', line 608 def initialize(database_name:, port:, server_name:, certificate_arn: nil, ssl_mode: nil) @database_name = database_name Jsii::Type.check_type(@database_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "databaseName") @port = port Jsii::Type.check_type(@port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "port") @server_name = server_name Jsii::Type.check_type(@server_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serverName") @certificate_arn = certificate_arn Jsii::Type.check_type(@certificate_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "certificateArn") unless @certificate_arn.nil? @ssl_mode = ssl_mode Jsii::Type.check_type(@ssl_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sslMode") unless @ssl_mode.nil? end |
Instance Attribute Details
#certificate_arn ⇒ String? (readonly)
638 639 640 |
# File 'dms/cfn_data_provider.rb', line 638 def certificate_arn @certificate_arn end |
#database_name ⇒ String (readonly)
The database name on the DocumentDB source endpoint.
625 626 627 |
# File 'dms/cfn_data_provider.rb', line 625 def database_name @database_name end |
#port ⇒ Numeric (readonly)
The port value for the DocumentDB source endpoint.
630 631 632 |
# File 'dms/cfn_data_provider.rb', line 630 def port @port end |
#server_name ⇒ String (readonly)
The name of the server on the DocumentDB source endpoint.
635 636 637 |
# File 'dms/cfn_data_provider.rb', line 635 def server_name @server_name end |
#ssl_mode ⇒ String? (readonly)
641 642 643 |
# File 'dms/cfn_data_provider.rb', line 641 def ssl_mode @ssl_mode end |
Class Method Details
.jsii_properties ⇒ Object
643 644 645 646 647 648 649 650 651 |
# File 'dms/cfn_data_provider.rb', line 643 def self.jsii_properties { :database_name => "databaseName", :port => "port", :server_name => "serverName", :certificate_arn => "certificateArn", :ssl_mode => "sslMode", } end |
Instance Method Details
#to_jsii ⇒ Object
653 654 655 656 657 658 659 660 661 662 663 |
# File 'dms/cfn_data_provider.rb', line 653 def to_jsii result = {} result.merge!({ "databaseName" => @database_name, "port" => @port, "serverName" => @server_name, "certificateArn" => @certificate_arn, "sslMode" => @ssl_mode, }) result.compact end |