Class: AWSCDK::DMS::CfnDataProvider::DocDBSettingsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
dms/cfn_data_provider.rb

Overview

Provides information that defines a DocumentDB endpoint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(database_name:, port:, server_name:, certificate_arn: nil, ssl_mode: nil) ⇒ DocDBSettingsProperty

Returns a new instance of DocDBSettingsProperty.

Parameters:

  • database_name (String)

    The database name on the DocumentDB source endpoint.

  • port (Numeric)

    The port value for the DocumentDB source endpoint.

  • server_name (String)

    The name of the server on the DocumentDB source endpoint.

  • certificate_arn (String, nil) (defaults to: nil)
  • ssl_mode (String, nil) (defaults to: nil)


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_arnString? (readonly)



638
639
640
# File 'dms/cfn_data_provider.rb', line 638

def certificate_arn
  @certificate_arn
end

#database_nameString (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

#portNumeric (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_nameString (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_modeString? (readonly)



641
642
643
# File 'dms/cfn_data_provider.rb', line 641

def ssl_mode
  @ssl_mode
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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