import * as pulumi from "@pulumi/pulumi"; /** * Provides an RDS DB proxy target resource. * * > **NOTE:** When the associated `aws.rds.Proxy` resource is replaced, Terraform will lose track of this resource, causing unexpected differences on the next apply. To ensure proper dependency management, add a `lifecycle` block with `replaceTriggeredBy` referencing the `aws.rds.Proxy` resource's `id` attribute. * * ## Import * * Provisioned Clusters: * * **Using `pulumi import` to import** RDS DB Proxy Targets using the `dbProxyName`, `targetGroupName`, target type (such as `RDS_INSTANCE` or `TRACKED_CLUSTER`), and resource identifier separated by forward slashes (`/`). For example: * * Instances: * * ```sh * $ pulumi import aws:rds/proxyTarget:ProxyTarget example example-proxy/default/RDS_INSTANCE/example-instance * ``` * * Provisioned Clusters: * * ```sh * $ pulumi import aws:rds/proxyTarget:ProxyTarget example example-proxy/default/TRACKED_CLUSTER/example-cluster * ``` */ export declare class ProxyTarget extends pulumi.CustomResource { /** * Get an existing ProxyTarget resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ProxyTargetState, opts?: pulumi.CustomResourceOptions): ProxyTarget; /** * Returns true if the given object is an instance of ProxyTarget. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ProxyTarget; /** * DB cluster identifier. */ readonly dbClusterIdentifier: pulumi.Output; /** * DB instance identifier. */ readonly dbInstanceIdentifier: pulumi.Output; /** * Name of the DB proxy. */ readonly dbProxyName: pulumi.Output; /** * Hostname for the target RDS DB Instance. Only returned for `RDS_INSTANCE` type. */ readonly endpoint: pulumi.Output; /** * Port for the target RDS DB Instance or Aurora DB Cluster. */ readonly port: pulumi.Output; /** * Identifier representing the DB Instance or DB Cluster target. */ readonly rdsResourceId: pulumi.Output; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output; /** * ARN for the DB instance or DB cluster. Currently not returned by the RDS API. */ readonly targetArn: pulumi.Output; /** * Name of the target group. */ readonly targetGroupName: pulumi.Output; /** * DB Cluster identifier for the DB Instance target. Not returned unless manually importing an `RDS_INSTANCE` target that is part of a DB Cluster. */ readonly trackedClusterId: pulumi.Output; /** * Type of targetE.g., `RDS_INSTANCE` or `TRACKED_CLUSTER` */ readonly type: pulumi.Output; /** * Create a ProxyTarget resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ProxyTargetArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ProxyTarget resources. */ export interface ProxyTargetState { /** * DB cluster identifier. */ dbClusterIdentifier?: pulumi.Input; /** * DB instance identifier. */ dbInstanceIdentifier?: pulumi.Input; /** * Name of the DB proxy. */ dbProxyName?: pulumi.Input; /** * Hostname for the target RDS DB Instance. Only returned for `RDS_INSTANCE` type. */ endpoint?: pulumi.Input; /** * Port for the target RDS DB Instance or Aurora DB Cluster. */ port?: pulumi.Input; /** * Identifier representing the DB Instance or DB Cluster target. */ rdsResourceId?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * ARN for the DB instance or DB cluster. Currently not returned by the RDS API. */ targetArn?: pulumi.Input; /** * Name of the target group. */ targetGroupName?: pulumi.Input; /** * DB Cluster identifier for the DB Instance target. Not returned unless manually importing an `RDS_INSTANCE` target that is part of a DB Cluster. */ trackedClusterId?: pulumi.Input; /** * Type of targetE.g., `RDS_INSTANCE` or `TRACKED_CLUSTER` */ type?: pulumi.Input; } /** * The set of arguments for constructing a ProxyTarget resource. */ export interface ProxyTargetArgs { /** * DB cluster identifier. */ dbClusterIdentifier?: pulumi.Input; /** * DB instance identifier. */ dbInstanceIdentifier?: pulumi.Input; /** * Name of the DB proxy. */ dbProxyName: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Name of the target group. */ targetGroupName: pulumi.Input; } //# sourceMappingURL=proxyTarget.d.ts.map