import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
 * Use this data source to access information about an existing SQL database.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 *
 * const exampleResourceGroup = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleServer = new azure.mssql.Server("example", {
 *     name: "example",
 *     resourceGroupName: exampleResourceGroup.name,
 *     location: exampleResourceGroup.location,
 *     version: "12.0",
 *     administratorLogin: "4dm1n157r470r",
 *     administratorLoginPassword: "4-v3ry-53cr37-p455w0rd",
 * });
 * const example = azure.mssql.getDatabaseOutput({
 *     name: "example-mssql-db",
 *     serverId: exampleServer.id,
 * });
 * export const databaseId = example.apply(example => example.id);
 * ```
 *
 * ## API Providers
 *
 * <!-- This section is generated, changes will be overwritten -->
 * This data source uses the following Azure API Providers:
 *
 * * `Microsoft.Sql` - 2023-08-01-preview
 */
export declare function getDatabase(args: GetDatabaseArgs, opts?: pulumi.InvokeOptions): Promise<GetDatabaseResult>;
/**
 * A collection of arguments for invoking getDatabase.
 */
export interface GetDatabaseArgs {
    /**
     * The name of the MS SQL Database.
     */
    name: string;
    /**
     * The id of the MS SQL Server on which to read the database.
     */
    serverId: string;
}
/**
 * A collection of values returned by getDatabase.
 */
export interface GetDatabaseResult {
    /**
     * The collation of the database.
     */
    readonly collation: string;
    /**
     * The id of the elastic pool containing this database.
     */
    readonly elasticPoolId: string;
    /**
     * The type of enclave being used by the database.
     */
    readonly enclaveType: string;
    /**
     * The provider-assigned unique ID for this managed resource.
     */
    readonly id: string;
    /**
     * A `identity` block as defined below.
     */
    readonly identities: outputs.mssql.GetDatabaseIdentity[];
    /**
     * The license type to apply for this database.
     */
    readonly licenseType: string;
    /**
     * The max size of the database in gigabytes.
     */
    readonly maxSizeGb: number;
    readonly name: string;
    /**
     * The number of readonly secondary replicas associated with the database to which readonly application intent connections may be routed.
     */
    readonly readReplicaCount: number;
    /**
     * If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica.
     */
    readonly readScale: boolean;
    readonly serverId: string;
    /**
     * The name of the SKU of the database.
     */
    readonly skuName: string;
    /**
     * The storage account type used to store backups for this database.
     */
    readonly storageAccountType: string;
    /**
     * A mapping of tags to assign to the resource.
     */
    readonly tags: {
        [key: string]: string;
    };
    /**
     * Whether or not Transparent Data Encryption is enabled.
     */
    readonly transparentDataEncryptionEnabled: boolean;
    /**
     * Whether or not TDE automatically rotates the encryption Key to latest version.
     */
    readonly transparentDataEncryptionKeyAutomaticRotationEnabled: boolean;
    /**
     * The Key Vault key URI to be used as the `Customer Managed Key`(CMK/BYOK) for the `Transparent Data Encryption`(TDE) layer.
     */
    readonly transparentDataEncryptionKeyVaultKeyId: string;
    /**
     * Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones.
     */
    readonly zoneRedundant: boolean;
}
/**
 * Use this data source to access information about an existing SQL database.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 *
 * const exampleResourceGroup = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleServer = new azure.mssql.Server("example", {
 *     name: "example",
 *     resourceGroupName: exampleResourceGroup.name,
 *     location: exampleResourceGroup.location,
 *     version: "12.0",
 *     administratorLogin: "4dm1n157r470r",
 *     administratorLoginPassword: "4-v3ry-53cr37-p455w0rd",
 * });
 * const example = azure.mssql.getDatabaseOutput({
 *     name: "example-mssql-db",
 *     serverId: exampleServer.id,
 * });
 * export const databaseId = example.apply(example => example.id);
 * ```
 *
 * ## API Providers
 *
 * <!-- This section is generated, changes will be overwritten -->
 * This data source uses the following Azure API Providers:
 *
 * * `Microsoft.Sql` - 2023-08-01-preview
 */
export declare function getDatabaseOutput(args: GetDatabaseOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDatabaseResult>;
/**
 * A collection of arguments for invoking getDatabase.
 */
export interface GetDatabaseOutputArgs {
    /**
     * The name of the MS SQL Database.
     */
    name: pulumi.Input<string>;
    /**
     * The id of the MS SQL Server on which to read the database.
     */
    serverId: pulumi.Input<string>;
}
//# sourceMappingURL=getDatabase.d.ts.map