Class: AWSCDK::AppSync::CfnDataSource::RelationalDatabaseConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppSync::CfnDataSource::RelationalDatabaseConfigProperty
- Defined in:
- app_sync/cfn_data_source.rb
Overview
Use the RelationalDatabaseConfig property type to specify RelationalDatabaseConfig for an AWS AppSync data source.
RelationalDatabaseConfig is a property of the AWS::AppSync::DataSource property type.
Instance Attribute Summary collapse
-
#rds_http_endpoint_config ⇒ AWSCDK::IResolvable, ...
readonly
Information about the Amazon RDS resource.
-
#relational_database_source_type ⇒ String
readonly
The type of relational data source.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(relational_database_source_type:, rds_http_endpoint_config: nil) ⇒ RelationalDatabaseConfigProperty
constructor
A new instance of RelationalDatabaseConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(relational_database_source_type:, rds_http_endpoint_config: nil) ⇒ RelationalDatabaseConfigProperty
Returns a new instance of RelationalDatabaseConfigProperty.
1180 1181 1182 1183 1184 1185 |
# File 'app_sync/cfn_data_source.rb', line 1180 def initialize(relational_database_source_type:, rds_http_endpoint_config: nil) @relational_database_source_type = relational_database_source_type Jsii::Type.check_type(@relational_database_source_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "relationalDatabaseSourceType") @rds_http_endpoint_config = rds_http_endpoint_config.is_a?(Hash) ? ::AWSCDK::AppSync::CfnDataSource::RDSHttpEndpointConfigProperty.new(**rds_http_endpoint_config.transform_keys(&:to_sym)) : rds_http_endpoint_config Jsii::Type.check_type(@rds_http_endpoint_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBzeW5jLkNmbkRhdGFTb3VyY2UuUmRzSHR0cEVuZHBvaW50Q29uZmlnUHJvcGVydHkifV19fQ==")), "rdsHttpEndpointConfig") unless @rds_http_endpoint_config.nil? end |
Instance Attribute Details
#rds_http_endpoint_config ⇒ AWSCDK::IResolvable, ... (readonly)
Information about the Amazon RDS resource.
1196 1197 1198 |
# File 'app_sync/cfn_data_source.rb', line 1196 def rds_http_endpoint_config @rds_http_endpoint_config end |
#relational_database_source_type ⇒ String (readonly)
The type of relational data source.
1191 1192 1193 |
# File 'app_sync/cfn_data_source.rb', line 1191 def relational_database_source_type @relational_database_source_type end |
Class Method Details
.jsii_properties ⇒ Object
1198 1199 1200 1201 1202 1203 |
# File 'app_sync/cfn_data_source.rb', line 1198 def self.jsii_properties { :relational_database_source_type => "relationalDatabaseSourceType", :rds_http_endpoint_config => "rdsHttpEndpointConfig", } end |
Instance Method Details
#to_jsii ⇒ Object
1205 1206 1207 1208 1209 1210 1211 1212 |
# File 'app_sync/cfn_data_source.rb', line 1205 def to_jsii result = {} result.merge!({ "relationalDatabaseSourceType" => @relational_database_source_type, "rdsHttpEndpointConfig" => @rds_http_endpoint_config, }) result.compact end |