Class: AWSCDK::DMS::CfnDataProvider::MicrosoftSqlServerSettingsProperty

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

Overview

Provides information that defines a Microsoft SQL Server endpoint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of MicrosoftSqlServerSettingsProperty.

Parameters:

  • database_name (String)

    Database name for the endpoint.

  • port (Numeric)

    Endpoint TCP port.

  • server_name (String)

    Fully qualified domain name of the endpoint.

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


858
859
860
861
862
863
864
865
866
867
868
869
# File 'dms/cfn_data_provider.rb', line 858

def initialize(database_name:, port:, server_name:, ssl_mode:, certificate_arn: 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")
  @ssl_mode = ssl_mode
  Jsii::Type.check_type(@ssl_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sslMode")
  @certificate_arn = certificate_arn
  Jsii::Type.check_type(@certificate_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "certificateArn") unless @certificate_arn.nil?
end

Instance Attribute Details

#certificate_arnString? (readonly)



893
894
895
# File 'dms/cfn_data_provider.rb', line 893

def certificate_arn
  @certificate_arn
end

#database_nameString (readonly)

Database name for the endpoint.



875
876
877
# File 'dms/cfn_data_provider.rb', line 875

def database_name
  @database_name
end

#portNumeric (readonly)

Endpoint TCP port.



880
881
882
# File 'dms/cfn_data_provider.rb', line 880

def port
  @port
end

#server_nameString (readonly)

Fully qualified domain name of the endpoint.

For an Amazon RDS SQL Server instance, this is the output of DescribeDBInstances , in the [Endpoint](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_Endpoint.html) .Address field.



887
888
889
# File 'dms/cfn_data_provider.rb', line 887

def server_name
  @server_name
end

#ssl_modeString (readonly)



890
891
892
# File 'dms/cfn_data_provider.rb', line 890

def ssl_mode
  @ssl_mode
end

Class Method Details

.jsii_propertiesObject



895
896
897
898
899
900
901
902
903
# File 'dms/cfn_data_provider.rb', line 895

def self.jsii_properties
  {
    :database_name => "databaseName",
    :port => "port",
    :server_name => "serverName",
    :ssl_mode => "sslMode",
    :certificate_arn => "certificateArn",
  }
end

Instance Method Details

#to_jsiiObject



905
906
907
908
909
910
911
912
913
914
915
# File 'dms/cfn_data_provider.rb', line 905

def to_jsii
  result = {}
  result.merge!({
    "databaseName" => @database_name,
    "port" => @port,
    "serverName" => @server_name,
    "sslMode" => @ssl_mode,
    "certificateArn" => @certificate_arn,
  })
  result.compact
end