ProxyTarget

class aws_cdk.aws_rds.ProxyTarget(*args: Any, **kwargs)

Bases: object

Proxy target: Instance or Cluster.

A target group is a collection of databases that the proxy can connect to. Currently, you can specify only one RDS DB instance or Aurora DB cluster.

Methods

bind(proxy)

Bind this target to the specified database proxy.

Parameters

proxy (DatabaseProxy) –

Return type

ProxyTargetConfig

Static Methods

classmethod from_cluster(cluster)

From cluster.

Parameters

cluster (IDatabaseCluster) – RDS database cluster.

Return type

ProxyTarget

classmethod from_instance(instance)

From instance.

Parameters

instance (IDatabaseInstance) – RDS database instance.

Return type

ProxyTarget