Class: AWSCDK::DMS::CfnDataProvider::MySqlSettingsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DMS::CfnDataProvider::MySqlSettingsProperty
- Defined in:
- dms/cfn_data_provider.rb
Overview
Provides information that defines a MySQL endpoint.
Instance Attribute Summary collapse
- #certificate_arn ⇒ String? readonly
-
#port ⇒ Numeric
readonly
Endpoint TCP port.
-
#server_name ⇒ String
readonly
The host name of the endpoint database.
- #ssl_mode ⇒ String readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(port:, server_name:, ssl_mode:, certificate_arn: nil) ⇒ MySqlSettingsProperty
constructor
A new instance of MySqlSettingsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(port:, server_name:, ssl_mode:, certificate_arn: nil) ⇒ MySqlSettingsProperty
Returns a new instance of MySqlSettingsProperty.
1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 |
# File 'dms/cfn_data_provider.rb', line 1035 def initialize(port:, server_name:, ssl_mode:, certificate_arn: nil) @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_arn ⇒ String? (readonly)
1065 1066 1067 |
# File 'dms/cfn_data_provider.rb', line 1065 def certificate_arn @certificate_arn end |
#port ⇒ Numeric (readonly)
Endpoint TCP port.
1050 1051 1052 |
# File 'dms/cfn_data_provider.rb', line 1050 def port @port end |
#server_name ⇒ String (readonly)
The host name of the endpoint database.
For an Amazon RDS MySQL instance, this is the output of DescribeDBInstances , in the [Endpoint](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_Endpoint.html) .Address field.
For an Aurora MySQL instance, this is the output of DescribeDBClusters , in the Endpoint field.
1059 1060 1061 |
# File 'dms/cfn_data_provider.rb', line 1059 def server_name @server_name end |
#ssl_mode ⇒ String (readonly)
1062 1063 1064 |
# File 'dms/cfn_data_provider.rb', line 1062 def ssl_mode @ssl_mode end |
Class Method Details
.jsii_properties ⇒ Object
1067 1068 1069 1070 1071 1072 1073 1074 |
# File 'dms/cfn_data_provider.rb', line 1067 def self.jsii_properties { :port => "port", :server_name => "serverName", :ssl_mode => "sslMode", :certificate_arn => "certificateArn", } end |
Instance Method Details
#to_jsii ⇒ Object
1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 |
# File 'dms/cfn_data_provider.rb', line 1076 def to_jsii result = {} result.merge!({ "port" => @port, "serverName" => @server_name, "sslMode" => @ssl_mode, "certificateArn" => @certificate_arn, }) result.compact end |