Class: AWSCDK::AppSync::CfnDataSource::RDSHttpEndpointConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppSync::CfnDataSource::RDSHttpEndpointConfigProperty
- Defined in:
- app_sync/cfn_data_source.rb
Overview
Use the RdsHttpEndpointConfig property type to specify the RdsHttpEndpoint for an AWS AppSync relational database.
RdsHttpEndpointConfig is a property of the AWS AppSync DataSource RelationalDatabaseConfig resource.
Instance Attribute Summary collapse
-
#aws_region ⇒ String
readonly
AWS Region for RDS HTTP endpoint.
-
#aws_secret_store_arn ⇒ String
readonly
The ARN for database credentials stored in AWS Secrets Manager .
-
#database_name ⇒ String?
readonly
Logical database name.
-
#db_cluster_identifier ⇒ String
readonly
Amazon RDS cluster Amazon Resource Name (ARN).
-
#schema ⇒ String?
readonly
Logical schema name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(aws_region:, aws_secret_store_arn:, db_cluster_identifier:, database_name: nil, schema: nil) ⇒ RDSHttpEndpointConfigProperty
constructor
A new instance of RDSHttpEndpointConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(aws_region:, aws_secret_store_arn:, db_cluster_identifier:, database_name: nil, schema: nil) ⇒ RDSHttpEndpointConfigProperty
Returns a new instance of RDSHttpEndpointConfigProperty.
1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 |
# File 'app_sync/cfn_data_source.rb', line 1108 def initialize(aws_region:, aws_secret_store_arn:, db_cluster_identifier:, database_name: nil, schema: nil) @aws_region = aws_region Jsii::Type.check_type(@aws_region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "awsRegion") @aws_secret_store_arn = aws_secret_store_arn Jsii::Type.check_type(@aws_secret_store_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "awsSecretStoreArn") @db_cluster_identifier = db_cluster_identifier Jsii::Type.check_type(@db_cluster_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dbClusterIdentifier") @database_name = database_name Jsii::Type.check_type(@database_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "databaseName") unless @database_name.nil? @schema = schema Jsii::Type.check_type(@schema, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "schema") unless @schema.nil? end |
Instance Attribute Details
#aws_region ⇒ String (readonly)
AWS Region for RDS HTTP endpoint.
1125 1126 1127 |
# File 'app_sync/cfn_data_source.rb', line 1125 def aws_region @aws_region end |
#aws_secret_store_arn ⇒ String (readonly)
The ARN for database credentials stored in AWS Secrets Manager .
1130 1131 1132 |
# File 'app_sync/cfn_data_source.rb', line 1130 def aws_secret_store_arn @aws_secret_store_arn end |
#database_name ⇒ String? (readonly)
Logical database name.
1140 1141 1142 |
# File 'app_sync/cfn_data_source.rb', line 1140 def database_name @database_name end |
#db_cluster_identifier ⇒ String (readonly)
Amazon RDS cluster Amazon Resource Name (ARN).
1135 1136 1137 |
# File 'app_sync/cfn_data_source.rb', line 1135 def db_cluster_identifier @db_cluster_identifier end |
#schema ⇒ String? (readonly)
Logical schema name.
1145 1146 1147 |
# File 'app_sync/cfn_data_source.rb', line 1145 def schema @schema end |
Class Method Details
.jsii_properties ⇒ Object
1147 1148 1149 1150 1151 1152 1153 1154 1155 |
# File 'app_sync/cfn_data_source.rb', line 1147 def self.jsii_properties { :aws_region => "awsRegion", :aws_secret_store_arn => "awsSecretStoreArn", :db_cluster_identifier => "dbClusterIdentifier", :database_name => "databaseName", :schema => "schema", } end |
Instance Method Details
#to_jsii ⇒ Object
1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 |
# File 'app_sync/cfn_data_source.rb', line 1157 def to_jsii result = {} result.merge!({ "awsRegion" => @aws_region, "awsSecretStoreArn" => @aws_secret_store_arn, "dbClusterIdentifier" => @db_cluster_identifier, "databaseName" => @database_name, "schema" => @schema, }) result.compact end |