import * as core from "@terrascript/core"; export interface DbProxyEndpointArgs extends core.ResourceArgs { /** * (Required) The identifier for the proxy endpoint. An identifier must begin with a letter and must co * ntain only ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive * hyphens. */ dbProxyEndpointName: string | core.StringOut; /** * (Required) The name of the DB proxy associated with the DB proxy endpoint that you create. */ dbProxyName: string | core.StringOut; /** * (Optional) A mapping of tags to assign to the resource. */ tags?: core.Map | core.MapOut; tagsAll?: core.Map | core.MapOut; /** * (Optional) Indicates whether the DB proxy endpoint can be used for read/write or read-only operation * s. The default is `READ_WRITE`. Valid values are `READ_WRITE` and `READ_ONLY`. */ targetRole?: string | core.StringOut; /** * (Optional) One or more VPC security group IDs to associate with the new proxy. */ vpcSecurityGroupIds?: core.Array | core.ArrayOut; /** * (Required) One or more VPC subnet IDs to associate with the new proxy. */ vpcSubnetIds: core.Array | core.ArrayOut; } export class DbProxyEndpoint extends core.Resource { /** * The Amazon Resource Name (ARN) for the proxy endpoint. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Required) The identifier for the proxy endpoint. An identifier must begin with a letter and must co * ntain only ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive * hyphens. */ @core.attr(String) public dbProxyEndpointName!: string | core.StringOut; /** * (Required) The name of the DB proxy associated with the DB proxy endpoint that you create. */ @core.attr(String) public dbProxyName!: string | core.StringOut; /** * The endpoint that you can use to connect to the proxy. You include the endpoint value in the connect * ion string for a database client application. */ @core.attr(String, { computed: true }) public endpoint!: string | core.StringOut; /** * The name of the proxy and proxy endpoint separated by `/`, `DB-PROXY-NAME/DB-PROXY-ENDPOINT-NAME`. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * Indicates whether this endpoint is the default endpoint for the associated DB proxy. */ @core.attr(Boolean, { computed: true }) public isDefault!: boolean | core.BooleanOut; /** * (Optional) A mapping of tags to assign to the resource. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; /** * (Optional) Indicates whether the DB proxy endpoint can be used for read/write or read-only operation * s. The default is `READ_WRITE`. Valid values are `READ_WRITE` and `READ_ONLY`. */ @core.attr(String) public targetRole?: string | core.StringOut; /** * The VPC ID of the DB proxy endpoint. */ @core.attr(String, { computed: true }) public vpcId!: string | core.StringOut; /** * (Optional) One or more VPC security group IDs to associate with the new proxy. */ @core.attr(String, { computed: true, kind: "array" }) public vpcSecurityGroupIds?: | core.Array | core.ArrayOut; /** * (Required) One or more VPC subnet IDs to associate with the new proxy. */ @core.attr(String, { kind: "array" }) public vpcSubnetIds!: core.Array | core.ArrayOut; constructor(name: string, args?: DbProxyEndpointArgs) { super(name, "aws_db_proxy_endpoint", args); } public override getNamespace(): string { return "aws_rds"; } }