import * as pulumi from "@pulumi/pulumi";
/**
 * Allows you to create a Virtual Endpoint associated with a Postgres Flexible Replica.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 *
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "East US",
 * });
 * const exampleFlexibleServer = new azure.postgresql.FlexibleServer("example", {
 *     name: "example",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     version: "16",
 *     publicNetworkAccessEnabled: false,
 *     administratorLogin: "psqladmin",
 *     administratorPassword: "H@Sh1CoR3!",
 *     zone: "1",
 *     storageMb: 32768,
 *     storageTier: "P30",
 *     skuName: "GP_Standard_D2ads_v5",
 * });
 * const exampleReplica = new azure.postgresql.FlexibleServer("example_replica", {
 *     name: "example-replica",
 *     resourceGroupName: exampleFlexibleServer.resourceGroupName,
 *     location: exampleFlexibleServer.location,
 *     createMode: "Replica",
 *     sourceServerId: exampleFlexibleServer.id,
 *     version: "16",
 *     publicNetworkAccessEnabled: false,
 *     zone: "1",
 *     storageMb: 32768,
 *     storageTier: "P30",
 *     skuName: "GP_Standard_D2ads_v5",
 * });
 * const exampleFlexibleServerVirtualEndpoint = new azure.postgresql.FlexibleServerVirtualEndpoint("example", {
 *     name: "example-endpoint-1",
 *     sourceServerId: exampleFlexibleServer.id,
 *     replicaServerId: exampleReplica.id,
 *     type: "ReadWrite",
 * });
 * ```
 *
 * > **Note:** If creating multiple replicas, an error can occur if virtual endpoints are created before all replicas have been completed. To avoid this error, use a `dependsOn` property on `azure.postgresql.FlexibleServerVirtualEndpoint` that references all Postgres Flexible Server Replicas.
 *
 * ## API Providers
 *
 * <!-- This section is generated, changes will be overwritten -->
 * This resource uses the following Azure API Providers:
 *
 * * `Microsoft.DBforPostgreSQL` - 2025-08-01
 *
 * ## Import
 *
 * A PostgreSQL Flexible Virtual Endpoint can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:postgresql/flexibleServerVirtualEndpoint:FlexibleServerVirtualEndpoint example "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DBforPostgreSQL/flexibleServers/sourceServerName/virtualEndpoints/endpointName|/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DBforPostgreSQL/flexibleServers/replicaServerName/virtualEndpoints/endpointName"
 * ```
 */
export declare class FlexibleServerVirtualEndpoint extends pulumi.CustomResource {
    /**
     * Get an existing FlexibleServerVirtualEndpoint 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<pulumi.ID>, state?: FlexibleServerVirtualEndpointState, opts?: pulumi.CustomResourceOptions): FlexibleServerVirtualEndpoint;
    /**
     * Returns true if the given object is an instance of FlexibleServerVirtualEndpoint.  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 FlexibleServerVirtualEndpoint;
    /**
     * The name of the Virtual Endpoint. Changing this forces a new resource to be created.
     */
    readonly name: pulumi.Output<string>;
    /**
     * The Resource ID of the *Replica* Postgres Flexible Server this should be associated with
     *
     * > **Note:** If a fail-over has occurred, you will be unable to update `replicaServerId`. You can remove the resource from state and reimport it back in with `sourceServerId` and `replicaServerId` flipped and then update `replicaServerId`.
     */
    readonly replicaServerId: pulumi.Output<string>;
    /**
     * The Resource ID of the *Source* Postgres Flexible Server this should be associated with. Changing this forces a new resource to be created.
     */
    readonly sourceServerId: pulumi.Output<string>;
    /**
     * The type of Virtual Endpoint. Currently only `ReadWrite` is supported. Changing this forces a new resource to be created.
     */
    readonly type: pulumi.Output<string>;
    /**
     * Create a FlexibleServerVirtualEndpoint 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: FlexibleServerVirtualEndpointArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering FlexibleServerVirtualEndpoint resources.
 */
export interface FlexibleServerVirtualEndpointState {
    /**
     * The name of the Virtual Endpoint. Changing this forces a new resource to be created.
     */
    name?: pulumi.Input<string | undefined>;
    /**
     * The Resource ID of the *Replica* Postgres Flexible Server this should be associated with
     *
     * > **Note:** If a fail-over has occurred, you will be unable to update `replicaServerId`. You can remove the resource from state and reimport it back in with `sourceServerId` and `replicaServerId` flipped and then update `replicaServerId`.
     */
    replicaServerId?: pulumi.Input<string | undefined>;
    /**
     * The Resource ID of the *Source* Postgres Flexible Server this should be associated with. Changing this forces a new resource to be created.
     */
    sourceServerId?: pulumi.Input<string | undefined>;
    /**
     * The type of Virtual Endpoint. Currently only `ReadWrite` is supported. Changing this forces a new resource to be created.
     */
    type?: pulumi.Input<string | undefined>;
}
/**
 * The set of arguments for constructing a FlexibleServerVirtualEndpoint resource.
 */
export interface FlexibleServerVirtualEndpointArgs {
    /**
     * The name of the Virtual Endpoint. Changing this forces a new resource to be created.
     */
    name?: pulumi.Input<string | undefined>;
    /**
     * The Resource ID of the *Replica* Postgres Flexible Server this should be associated with
     *
     * > **Note:** If a fail-over has occurred, you will be unable to update `replicaServerId`. You can remove the resource from state and reimport it back in with `sourceServerId` and `replicaServerId` flipped and then update `replicaServerId`.
     */
    replicaServerId: pulumi.Input<string>;
    /**
     * The Resource ID of the *Source* Postgres Flexible Server this should be associated with. Changing this forces a new resource to be created.
     */
    sourceServerId: pulumi.Input<string>;
    /**
     * The type of Virtual Endpoint. Currently only `ReadWrite` is supported. Changing this forces a new resource to be created.
     */
    type: pulumi.Input<string>;
}
//# sourceMappingURL=flexibleServerVirtualEndpoint.d.ts.map