Class: AWSCDK::RDS::CfnDBProxyTargetGroupProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
rds/cfn_db_proxy_target_group_props.rb

Overview

Properties for defining a CfnDBProxyTargetGroup.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(db_proxy_name:, target_group_name:, connection_pool_configuration_info: nil, db_cluster_identifiers: nil, db_instance_identifiers: nil) ⇒ CfnDBProxyTargetGroupProps

Returns a new instance of CfnDBProxyTargetGroupProps.

Parameters:



14
15
16
17
18
19
20
21
22
23
24
25
# File 'rds/cfn_db_proxy_target_group_props.rb', line 14

def initialize(db_proxy_name:, target_group_name:, connection_pool_configuration_info: nil, db_cluster_identifiers: nil, db_instance_identifiers: nil)
  @db_proxy_name = db_proxy_name
  Jsii::Type.check_type(@db_proxy_name, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19yZHMuSURCUHJveHlSZWYifV19fQ==")), "dbProxyName")
  @target_group_name = target_group_name
  Jsii::Type.check_type(@target_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetGroupName")
  @connection_pool_configuration_info = connection_pool_configuration_info.is_a?(Hash) ? ::AWSCDK::RDS::CfnDBProxyTargetGroup::ConnectionPoolConfigurationInfoFormatProperty.new(**connection_pool_configuration_info.transform_keys(&:to_sym)) : connection_pool_configuration_info
  Jsii::Type.check_type(@connection_pool_configuration_info, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19yZHMuQ2ZuREJQcm94eVRhcmdldEdyb3VwLkNvbm5lY3Rpb25Qb29sQ29uZmlndXJhdGlvbkluZm9Gb3JtYXRQcm9wZXJ0eSJ9XX19")), "connectionPoolConfigurationInfo") unless @connection_pool_configuration_info.nil?
  @db_cluster_identifiers = db_cluster_identifiers
  Jsii::Type.check_type(@db_cluster_identifiers, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InVuaW9uIjp7InR5cGVzIjpbeyJwcmltaXRpdmUiOiJzdHJpbmcifSx7ImZxbiI6ImF3cy1jZGstbGliLmludGVyZmFjZXMuYXdzX3Jkcy5JREJDbHVzdGVyUmVmIn1dfX0sImtpbmQiOiJhcnJheSJ9fQ==")), "dbClusterIdentifiers") unless @db_cluster_identifiers.nil?
  @db_instance_identifiers = db_instance_identifiers
  Jsii::Type.check_type(@db_instance_identifiers, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "dbInstanceIdentifiers") unless @db_instance_identifiers.nil?
end

Instance Attribute Details

#connection_pool_configuration_infoAWSCDK::IResolvable, ... (readonly)

Displays the settings that control the size and behavior of the connection pool associated with a DBProxyTarget .



43
44
45
# File 'rds/cfn_db_proxy_target_group_props.rb', line 43

def connection_pool_configuration_info
  @connection_pool_configuration_info
end

#db_cluster_identifiersArray<String, AWSCDK::Interfaces::AWSRDS::IDBClusterRef>? (readonly)

One or more DB cluster identifiers.



48
49
50
# File 'rds/cfn_db_proxy_target_group_props.rb', line 48

def db_cluster_identifiers
  @db_cluster_identifiers
end

#db_instance_identifiersArray<String>? (readonly)

One or more DB instance identifiers.



53
54
55
# File 'rds/cfn_db_proxy_target_group_props.rb', line 53

def db_instance_identifiers
  @db_instance_identifiers
end

#db_proxy_nameString, AWSCDK::Interfaces::AWSRDS::IDBProxyRef (readonly)

The identifier of the DBProxy that is associated with the DBProxyTargetGroup .



31
32
33
# File 'rds/cfn_db_proxy_target_group_props.rb', line 31

def db_proxy_name
  @db_proxy_name
end

#target_group_nameString (readonly)

The identifier for the target group.

Currently, this property must be set to default .



38
39
40
# File 'rds/cfn_db_proxy_target_group_props.rb', line 38

def target_group_name
  @target_group_name
end

Class Method Details

.jsii_propertiesObject



55
56
57
58
59
60
61
62
63
# File 'rds/cfn_db_proxy_target_group_props.rb', line 55

def self.jsii_properties
  {
    :db_proxy_name => "dbProxyName",
    :target_group_name => "targetGroupName",
    :connection_pool_configuration_info => "connectionPoolConfigurationInfo",
    :db_cluster_identifiers => "dbClusterIdentifiers",
    :db_instance_identifiers => "dbInstanceIdentifiers",
  }
end

Instance Method Details

#to_jsiiObject



65
66
67
68
69
70
71
72
73
74
75
# File 'rds/cfn_db_proxy_target_group_props.rb', line 65

def to_jsii
  result = {}
  result.merge!({
    "dbProxyName" => @db_proxy_name,
    "targetGroupName" => @target_group_name,
    "connectionPoolConfigurationInfo" => @connection_pool_configuration_info,
    "dbClusterIdentifiers" => @db_cluster_identifiers,
    "dbInstanceIdentifiers" => @db_instance_identifiers,
  })
  result.compact
end