Class: AWSCDK::LookoutMetrics::CfnAnomalyDetector::RDSSourceConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::LookoutMetrics::CfnAnomalyDetector::RDSSourceConfigProperty
- Defined in:
- lookout_metrics/cfn_anomaly_detector.rb
Overview
Contains information about the Amazon Relational Database Service (RDS) configuration.
Instance Attribute Summary collapse
-
#database_host ⇒ String
readonly
The host name of the database.
-
#database_name ⇒ String
readonly
The name of the RDS database.
-
#database_port ⇒ Numeric
readonly
The port number where the database can be accessed.
-
#db_instance_identifier ⇒ String
readonly
A string identifying the database instance.
-
#role_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the role.
-
#secret_manager_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the AWS Secrets Manager role.
-
#table_name ⇒ String
readonly
The name of the table in the database.
-
#vpc_configuration ⇒ AWSCDK::IResolvable, AWSCDK::LookoutMetrics::CfnAnomalyDetector::VPCConfigurationProperty
readonly
An object containing information about the Amazon Virtual Private Cloud (VPC) configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(database_host:, database_name:, database_port:, db_instance_identifier:, role_arn:, secret_manager_arn:, table_name:, vpc_configuration:) ⇒ RDSSourceConfigProperty
constructor
A new instance of RDSSourceConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(database_host:, database_name:, database_port:, db_instance_identifier:, role_arn:, secret_manager_arn:, table_name:, vpc_configuration:) ⇒ RDSSourceConfigProperty
Returns a new instance of RDSSourceConfigProperty.
1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1092 def initialize(database_host:, database_name:, database_port:, db_instance_identifier:, role_arn:, secret_manager_arn:, table_name:, vpc_configuration:) @database_host = database_host Jsii::Type.check_type(@database_host, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "databaseHost") @database_name = database_name Jsii::Type.check_type(@database_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "databaseName") @database_port = database_port Jsii::Type.check_type(@database_port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "databasePort") @db_instance_identifier = db_instance_identifier Jsii::Type.check_type(@db_instance_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dbInstanceIdentifier") @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") @secret_manager_arn = secret_manager_arn Jsii::Type.check_type(@secret_manager_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "secretManagerArn") @table_name = table_name Jsii::Type.check_type(@table_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tableName") @vpc_configuration = vpc_configuration.is_a?(Hash) ? ::AWSCDK::LookoutMetrics::CfnAnomalyDetector::VPCConfigurationProperty.new(**vpc_configuration.transform_keys(&:to_sym)) : vpc_configuration Jsii::Type.check_type(@vpc_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sb29rb3V0bWV0cmljcy5DZm5Bbm9tYWx5RGV0ZWN0b3IuVnBjQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "vpcConfiguration") end |
Instance Attribute Details
#database_host ⇒ String (readonly)
The host name of the database.
1115 1116 1117 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1115 def database_host @database_host end |
#database_name ⇒ String (readonly)
The name of the RDS database.
1120 1121 1122 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1120 def database_name @database_name end |
#database_port ⇒ Numeric (readonly)
The port number where the database can be accessed.
1125 1126 1127 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1125 def database_port @database_port end |
#db_instance_identifier ⇒ String (readonly)
A string identifying the database instance.
1130 1131 1132 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1130 def db_instance_identifier @db_instance_identifier end |
#role_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of the role.
1135 1136 1137 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1135 def role_arn @role_arn end |
#secret_manager_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of the AWS Secrets Manager role.
1140 1141 1142 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1140 def secret_manager_arn @secret_manager_arn end |
#table_name ⇒ String (readonly)
The name of the table in the database.
1145 1146 1147 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1145 def table_name @table_name end |
#vpc_configuration ⇒ AWSCDK::IResolvable, AWSCDK::LookoutMetrics::CfnAnomalyDetector::VPCConfigurationProperty (readonly)
An object containing information about the Amazon Virtual Private Cloud (VPC) configuration.
1150 1151 1152 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1150 def vpc_configuration @vpc_configuration end |
Class Method Details
.jsii_properties ⇒ Object
1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1152 def self.jsii_properties { :database_host => "databaseHost", :database_name => "databaseName", :database_port => "databasePort", :db_instance_identifier => "dbInstanceIdentifier", :role_arn => "roleArn", :secret_manager_arn => "secretManagerArn", :table_name => "tableName", :vpc_configuration => "vpcConfiguration", } end |
Instance Method Details
#to_jsii ⇒ Object
1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1165 def to_jsii result = {} result.merge!({ "databaseHost" => @database_host, "databaseName" => @database_name, "databasePort" => @database_port, "dbInstanceIdentifier" => @db_instance_identifier, "roleArn" => @role_arn, "secretManagerArn" => @secret_manager_arn, "tableName" => @table_name, "vpcConfiguration" => @vpc_configuration, }) result.compact end |