import * as core from "@terrascript/core"; export interface DbProxyTargetArgs extends core.ResourceArgs { /** * (Optional, Forces new resource) DB cluster identifier. */ dbClusterIdentifier?: string | core.StringOut; /** * (Optional, Forces new resource) DB instance identifier. */ dbInstanceIdentifier?: string | core.StringOut; /** * (Required, Forces new resource) The name of the DB proxy. */ dbProxyName: string | core.StringOut; /** * (Required, Forces new resource) The name of the target group. */ targetGroupName: string | core.StringOut; } export class DbProxyTarget extends core.Resource { /** * (Optional, Forces new resource) DB cluster identifier. */ @core.attr(String) public dbClusterIdentifier?: string | core.StringOut; /** * (Optional, Forces new resource) DB instance identifier. */ @core.attr(String) public dbInstanceIdentifier?: string | core.StringOut; /** * (Required, Forces new resource) The name of the DB proxy. */ @core.attr(String) public dbProxyName!: string | core.StringOut; /** * Hostname for the target RDS DB Instance. Only returned for `RDS_INSTANCE` type. */ @core.attr(String, { computed: true }) public endpoint!: string | core.StringOut; /** * Identifier of `db_proxy_name`, `target_group_name`, target type (e.g., `RDS_INSTANCE` or `TRACKED_C * LUSTER`), and resource identifier separated by forward slashes (`/`). */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * Port for the target RDS DB Instance or Aurora DB Cluster. */ @core.attr(Number, { computed: true }) public port!: number | core.NumberOut; /** * Identifier representing the DB Instance or DB Cluster target. */ @core.attr(String, { computed: true }) public rdsResourceId!: string | core.StringOut; /** * Amazon Resource Name (ARN) for the DB instance or DB cluster. Currently not returned by the RDS API. */ @core.attr(String, { computed: true }) public targetArn!: string | core.StringOut; /** * (Required, Forces new resource) The name of the target group. */ @core.attr(String) public targetGroupName!: string | core.StringOut; /** * DB Cluster identifier for the DB Instance target. Not returned unless manually importing an `RDS_INS * TANCE` target that is part of a DB Cluster. */ @core.attr(String, { computed: true }) public trackedClusterId!: string | core.StringOut; /** * Type of targetE.g., `RDS_INSTANCE` or `TRACKED_CLUSTER` */ @core.attr(String, { computed: true }) public type!: string | core.StringOut; constructor(name: string, args?: DbProxyTargetArgs) { super(name, "aws_db_proxy_target", args); } public override getNamespace(): string { return "aws_rds"; } }