import * as core from "@terrascript/core"; export interface ConnectionPoolConfigArgs extends core.SchemaArgs { connectionBorrowTimeout?: number | core.NumberOut; initQuery?: string | core.StringOut; maxConnectionsPercent?: number | core.NumberOut; maxIdleConnectionsPercent?: number | core.NumberOut; sessionPinningFilters?: core.Array | core.ArrayOut; } export class ConnectionPoolConfig extends core.Schema { @core.attr(Number) public connectionBorrowTimeout?: number | core.NumberOut; @core.attr(String) public initQuery?: string | core.StringOut; @core.attr(Number) public maxConnectionsPercent?: number | core.NumberOut; @core.attr(Number) public maxIdleConnectionsPercent?: number | core.NumberOut; @core.attr(String, { kind: "array" }) public sessionPinningFilters?: | core.Array | core.ArrayOut; } export interface DbProxyDefaultTargetGroupArgs extends core.ResourceArgs { /** * (Optional) The settings that determine the size and behavior of the connection pool for the target g * roup. */ connectionPoolConfig?: ConnectionPoolConfig; /** * (Required) Name of the RDS DB Proxy. */ dbProxyName: string | core.StringOut; } export class DbProxyDefaultTargetGroup extends core.Resource { /** * The Amazon Resource Name (ARN) representing the target group. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) The settings that determine the size and behavior of the connection pool for the target g * roup. */ @core.attr(ConnectionPoolConfig, { computed: true }) public connectionPoolConfig?: ConnectionPoolConfig; /** * (Required) Name of the RDS DB Proxy. */ @core.attr(String) public dbProxyName!: string | core.StringOut; /** * Name of the RDS DB Proxy. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The name of the default target group. */ @core.attr(String, { computed: true }) public name!: string | core.StringOut; constructor(name: string, args?: DbProxyDefaultTargetGroupArgs) { super(name, "aws_db_proxy_default_target_group", args); } public override getNamespace(): string { return "aws_rds"; } }