Class: AWSCDK::LookoutMetrics::CfnAnomalyDetector::RedshiftSourceConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::LookoutMetrics::CfnAnomalyDetector::RedshiftSourceConfigProperty
- Defined in:
- lookout_metrics/cfn_anomaly_detector.rb
Overview
Provides information about the Amazon Redshift database configuration.
Instance Attribute Summary collapse
-
#cluster_identifier ⇒ String
readonly
A string identifying the Redshift cluster.
-
#database_host ⇒ String
readonly
The name of the database host.
-
#database_name ⇒ String
readonly
The Redshift database name.
-
#database_port ⇒ Numeric
readonly
The port number where the database can be accessed.
-
#role_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the role providing access to the database.
-
#secret_manager_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the AWS Secrets Manager role.
-
#table_name ⇒ String
readonly
The table name of the Redshift database.
-
#vpc_configuration ⇒ AWSCDK::IResolvable, AWSCDK::LookoutMetrics::CfnAnomalyDetector::VPCConfigurationProperty
readonly
Contains information about the Amazon Virtual Private Cloud (VPC) configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cluster_identifier:, database_host:, database_name:, database_port:, role_arn:, secret_manager_arn:, table_name:, vpc_configuration:) ⇒ RedshiftSourceConfigProperty
constructor
A new instance of RedshiftSourceConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cluster_identifier:, database_host:, database_name:, database_port:, role_arn:, secret_manager_arn:, table_name:, vpc_configuration:) ⇒ RedshiftSourceConfigProperty
Returns a new instance of RedshiftSourceConfigProperty.
1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1195 def initialize(cluster_identifier:, database_host:, database_name:, database_port:, role_arn:, secret_manager_arn:, table_name:, vpc_configuration:) @cluster_identifier = cluster_identifier Jsii::Type.check_type(@cluster_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clusterIdentifier") @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") @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
#cluster_identifier ⇒ String (readonly)
A string identifying the Redshift cluster.
1218 1219 1220 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1218 def cluster_identifier @cluster_identifier end |
#database_host ⇒ String (readonly)
The name of the database host.
1223 1224 1225 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1223 def database_host @database_host end |
#database_name ⇒ String (readonly)
The Redshift database name.
1228 1229 1230 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1228 def database_name @database_name end |
#database_port ⇒ Numeric (readonly)
The port number where the database can be accessed.
1233 1234 1235 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1233 def database_port @database_port end |
#role_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of the role providing access to the database.
1238 1239 1240 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1238 def role_arn @role_arn end |
#secret_manager_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of the AWS Secrets Manager role.
1243 1244 1245 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1243 def secret_manager_arn @secret_manager_arn end |
#table_name ⇒ String (readonly)
The table name of the Redshift database.
1248 1249 1250 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1248 def table_name @table_name end |
#vpc_configuration ⇒ AWSCDK::IResolvable, AWSCDK::LookoutMetrics::CfnAnomalyDetector::VPCConfigurationProperty (readonly)
Contains information about the Amazon Virtual Private Cloud (VPC) configuration.
1253 1254 1255 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1253 def vpc_configuration @vpc_configuration end |
Class Method Details
.jsii_properties ⇒ Object
1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1255 def self.jsii_properties { :cluster_identifier => "clusterIdentifier", :database_host => "databaseHost", :database_name => "databaseName", :database_port => "databasePort", :role_arn => "roleArn", :secret_manager_arn => "secretManagerArn", :table_name => "tableName", :vpc_configuration => "vpcConfiguration", } end |
Instance Method Details
#to_jsii ⇒ Object
1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 |
# File 'lookout_metrics/cfn_anomaly_detector.rb', line 1268 def to_jsii result = {} result.merge!({ "clusterIdentifier" => @cluster_identifier, "databaseHost" => @database_host, "databaseName" => @database_name, "databasePort" => @database_port, "roleArn" => @role_arn, "secretManagerArn" => @secret_manager_arn, "tableName" => @table_name, "vpcConfiguration" => @vpc_configuration, }) result.compact end |