import * as pulumi from "@pulumi/pulumi";
/**
 * Allows you to set a user or group as the AD administrator for an PostgreSQL server in Azure
 *
 * > **Note:** The `azure.postgresql.ActiveDirectoryAdministrator` resource is deprecated and will be removed in v5.0 of the AzureRM Provider. Azure Database for PostgreSQL Single Server and its sub resources have been retired as of 2025-03-28, please use the `azure.postgresql.FlexibleServerActiveDirectoryAdministrator` resource instead. For more information, see https://techcommunity.microsoft.com/blog/adforpostgresql/retiring-azure-database-for-postgresql-single-server-in-2025/3783783.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 *
 * const current = azure.core.getClientConfig({});
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleServer = new azure.postgresql.Server("example", {
 *     name: "example-psqlserver",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     version: "9.6",
 *     administratorLogin: "4dm1n157r470r",
 *     administratorLoginPassword: "4-v3ry-53cr37-p455w0rd",
 *     skuName: "GP_Gen5_2",
 *     sslEnforcementEnabled: true,
 * });
 * const exampleActiveDirectoryAdministrator = new azure.postgresql.ActiveDirectoryAdministrator("example", {
 *     serverName: exampleServer.name,
 *     resourceGroupName: example.name,
 *     login: "sqladmin",
 *     tenantId: current.then(current => current.tenantId),
 *     objectId: current.then(current => current.objectId),
 * });
 * ```
 *
 * ## API Providers
 *
 * <!-- This section is generated, changes will be overwritten -->
 * This resource uses the following Azure API Providers:
 *
 * * `Microsoft.DBforPostgreSQL` - 2017-12-01
 *
 * ## Import
 *
 * A PostgreSQL Active Directory Administrator can be imported using the `resource id`, e.g.
 *
 * ```sh
 * $ pulumi import azure:postgresql/activeDirectoryAdministrator:ActiveDirectoryAdministrator administrator /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.DBforPostgreSQL/servers/myserver
 * ```
 */
export declare class ActiveDirectoryAdministrator extends pulumi.CustomResource {
    /**
     * Get an existing ActiveDirectoryAdministrator 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?: ActiveDirectoryAdministratorState, opts?: pulumi.CustomResourceOptions): ActiveDirectoryAdministrator;
    /**
     * Returns true if the given object is an instance of ActiveDirectoryAdministrator.  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 ActiveDirectoryAdministrator;
    /**
     * The login name of the principal to set as the server administrator
     */
    readonly login: pulumi.Output<string>;
    /**
     * The ID of the principal to set as the server administrator. For a managed identity this should be the Client ID of the identity.
     */
    readonly objectId: pulumi.Output<string>;
    /**
     * The name of the resource group for the PostgreSQL server. Changing this forces a new resource to be created.
     */
    readonly resourceGroupName: pulumi.Output<string>;
    /**
     * The name of the PostgreSQL Server on which to set the administrator. Changing this forces a new resource to be created.
     */
    readonly serverName: pulumi.Output<string>;
    /**
     * The Azure Tenant ID
     */
    readonly tenantId: pulumi.Output<string>;
    /**
     * Create a ActiveDirectoryAdministrator 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: ActiveDirectoryAdministratorArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering ActiveDirectoryAdministrator resources.
 */
export interface ActiveDirectoryAdministratorState {
    /**
     * The login name of the principal to set as the server administrator
     */
    login?: pulumi.Input<string | undefined>;
    /**
     * The ID of the principal to set as the server administrator. For a managed identity this should be the Client ID of the identity.
     */
    objectId?: pulumi.Input<string | undefined>;
    /**
     * The name of the resource group for the PostgreSQL server. Changing this forces a new resource to be created.
     */
    resourceGroupName?: pulumi.Input<string | undefined>;
    /**
     * The name of the PostgreSQL Server on which to set the administrator. Changing this forces a new resource to be created.
     */
    serverName?: pulumi.Input<string | undefined>;
    /**
     * The Azure Tenant ID
     */
    tenantId?: pulumi.Input<string | undefined>;
}
/**
 * The set of arguments for constructing a ActiveDirectoryAdministrator resource.
 */
export interface ActiveDirectoryAdministratorArgs {
    /**
     * The login name of the principal to set as the server administrator
     */
    login: pulumi.Input<string>;
    /**
     * The ID of the principal to set as the server administrator. For a managed identity this should be the Client ID of the identity.
     */
    objectId: pulumi.Input<string>;
    /**
     * The name of the resource group for the PostgreSQL server. Changing this forces a new resource to be created.
     */
    resourceGroupName: pulumi.Input<string>;
    /**
     * The name of the PostgreSQL Server on which to set the administrator. Changing this forces a new resource to be created.
     */
    serverName: pulumi.Input<string>;
    /**
     * The Azure Tenant ID
     */
    tenantId: pulumi.Input<string>;
}
//# sourceMappingURL=activeDirectoryAdministrator.d.ts.map