Class: AWSCDK::AppSync::CfnDataSource::RDSHttpEndpointConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(aws_region:, aws_secret_store_arn:, db_cluster_identifier:, database_name: nil, schema: nil) ⇒ RDSHttpEndpointConfigProperty

Returns a new instance of RDSHttpEndpointConfigProperty.

Parameters:

  • aws_region (String)

    AWS Region for RDS HTTP endpoint.

  • aws_secret_store_arn (String)

    The ARN for database credentials stored in AWS Secrets Manager .

  • db_cluster_identifier (String)

    Amazon RDS cluster Amazon Resource Name (ARN).

  • database_name (String, nil) (defaults to: nil)

    Logical database name.

  • schema (String, nil) (defaults to: nil)

    Logical schema name.



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_regionString (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_arnString (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_nameString? (readonly)

Logical database name.



1140
1141
1142
# File 'app_sync/cfn_data_source.rb', line 1140

def database_name
  @database_name
end

#db_cluster_identifierString (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

#schemaString? (readonly)

Logical schema name.



1145
1146
1147
# File 'app_sync/cfn_data_source.rb', line 1145

def schema
  @schema
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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