import * as pulumi from "@pulumi/pulumi";
/**
 * This data source provides details about a specific Managed Database Preferred Credential resource in Oracle Cloud Infrastructure Database Management service.
 *
 * Gets the preferred credential details for a Managed Database based on credentialName.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * const testManagedDatabasePreferredCredential = oci.database.getManagedPreferredCredential({
 *     credentialName: managedDatabasePreferredCredentialCredentialName,
 *     managedDatabaseId: testManagedDatabase.id,
 * });
 * ```
 */
export declare function getManagedPreferredCredential(args: GetManagedPreferredCredentialArgs, opts?: pulumi.InvokeOptions): Promise<GetManagedPreferredCredentialResult>;
/**
 * A collection of arguments for invoking getManagedPreferredCredential.
 */
export interface GetManagedPreferredCredentialArgs {
    /**
     * The name of the preferred credential.
     */
    credentialName: string;
    /**
     * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Managed Database.
     */
    managedDatabaseId: string;
    /**
     * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Named Credential that contains the database user password metadata.
     */
    namedCredentialId?: string;
}
/**
 * A collection of values returned by getManagedPreferredCredential.
 */
export interface GetManagedPreferredCredentialResult {
    /**
     * The name of the preferred credential.
     */
    readonly credentialName: string;
    /**
     * The provider-assigned unique ID for this managed resource.
     */
    readonly id: string;
    /**
     * Indicates whether the preferred credential is accessible.
     */
    readonly isAccessible: boolean;
    readonly managedDatabaseId: string;
    /**
     * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Named Credential that contains the database user password metadata.
     */
    readonly namedCredentialId: string;
    /**
     * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Vault service secret that contains the database user password.
     */
    readonly passwordSecretId: string;
    /**
     * The role of the database user.
     */
    readonly role: string;
    /**
     * The status of the preferred credential.
     */
    readonly status: string;
    /**
     * The type of preferred credential. Only 'BASIC' is supported currently.
     */
    readonly type: string;
    /**
     * The user name used to connect to the database.
     */
    readonly userName: string;
}
/**
 * This data source provides details about a specific Managed Database Preferred Credential resource in Oracle Cloud Infrastructure Database Management service.
 *
 * Gets the preferred credential details for a Managed Database based on credentialName.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * const testManagedDatabasePreferredCredential = oci.database.getManagedPreferredCredential({
 *     credentialName: managedDatabasePreferredCredentialCredentialName,
 *     managedDatabaseId: testManagedDatabase.id,
 * });
 * ```
 */
export declare function getManagedPreferredCredentialOutput(args: GetManagedPreferredCredentialOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetManagedPreferredCredentialResult>;
/**
 * A collection of arguments for invoking getManagedPreferredCredential.
 */
export interface GetManagedPreferredCredentialOutputArgs {
    /**
     * The name of the preferred credential.
     */
    credentialName: pulumi.Input<string>;
    /**
     * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Managed Database.
     */
    managedDatabaseId: pulumi.Input<string>;
    /**
     * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Named Credential that contains the database user password metadata.
     */
    namedCredentialId?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=getManagedPreferredCredential.d.ts.map