import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
 * Manages a Linked Service (connection) between Azure SQL Managed Instance and Azure Data Factory.
 *
 * > **Note:** All arguments including the connectionString will be stored in the raw state as plain-text. [Read more about sensitive data in state](https://www.terraform.io/docs/state/sensitive-data.html).
 *
 * ## 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: "West Europe",
 * });
 * const exampleFactory = new azure.datafactory.Factory("example", {
 *     name: "example",
 *     location: example.location,
 *     resourceGroupName: example.name,
 * });
 * const exampleLinkedServiceSqlManagedInstance = new azure.datafactory.LinkedServiceSqlManagedInstance("example", {
 *     name: "example",
 *     dataFactoryId: exampleFactory.id,
 *     connectionString: "Server=myserver.database.windows.net;Database=mydatabase;User ID=myuser;Password=mypassword;",
 * });
 * ```
 *
 * ## API Providers
 *
 * <!-- This section is generated, changes will be overwritten -->
 * This resource uses the following Azure API Providers:
 *
 * * `Microsoft.DataFactory` - 2018-06-01
 *
 * ## Import
 *
 * Data Factory Linked Service SQL Managed Instances can be imported using the `resource id`, e.g.
 *
 * ```sh
 * $ pulumi import azure:datafactory/linkedServiceSqlManagedInstance:LinkedServiceSqlManagedInstance example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-resources/providers/Microsoft.DataFactory/factories/example/linkedServices/example
 * ```
 */
export declare class LinkedServiceSqlManagedInstance extends pulumi.CustomResource {
    /**
     * Get an existing LinkedServiceSqlManagedInstance 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?: LinkedServiceSqlManagedInstanceState, opts?: pulumi.CustomResourceOptions): LinkedServiceSqlManagedInstance;
    /**
     * Returns true if the given object is an instance of LinkedServiceSqlManagedInstance.  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 LinkedServiceSqlManagedInstance;
    /**
     * List of tags that can be used for describing the Data Factory Linked Service SQL Managed Instance.
     */
    readonly annotations: pulumi.Output<string[] | undefined>;
    /**
     * The connection string in which to authenticate with the SQL Managed Instance. Exactly one of either `connectionString` or `keyVaultConnectionString` is required.
     *
     * > **Note:** When using service principal authentication, the connection string must not contain authentication values like `User Id`.
     */
    readonly connectionString: pulumi.Output<string | undefined>;
    /**
     * The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource to be created.
     */
    readonly dataFactoryId: pulumi.Output<string>;
    /**
     * The description for the Data Factory Linked Service SQL Managed Instance.
     */
    readonly description: pulumi.Output<string | undefined>;
    /**
     * The integration runtime reference to associate with the Data Factory Linked Service SQL Managed Instance.
     */
    readonly integrationRuntimeName: pulumi.Output<string | undefined>;
    /**
     * A `keyVaultConnectionString` block as defined below. Use this argument to store SQL Managed Instance connection string in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of either `connectionString` or `keyVaultConnectionString` is required.
     */
    readonly keyVaultConnectionString: pulumi.Output<outputs.datafactory.LinkedServiceSqlManagedInstanceKeyVaultConnectionString | undefined>;
    /**
     * A `keyVaultPassword` block as defined below. Use this argument to store SQL Managed Instance password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service.
     */
    readonly keyVaultPassword: pulumi.Output<outputs.datafactory.LinkedServiceSqlManagedInstanceKeyVaultPassword | undefined>;
    /**
     * Specifies the name of the Data Factory Linked Service SQL Managed Instance. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions.
     */
    readonly name: pulumi.Output<string>;
    /**
     * A map of parameters to associate with the Data Factory Linked Service SQL Managed Instance.
     */
    readonly parameters: pulumi.Output<{
        [key: string]: string;
    } | undefined>;
    /**
     * The service principal id in which to authenticate against the Azure SQL Managed Instance.
     */
    readonly servicePrincipalId: pulumi.Output<string | undefined>;
    /**
     * The service principal key in which to authenticate against the Azure SQL Managed Instance.
     */
    readonly servicePrincipalKey: pulumi.Output<string | undefined>;
    /**
     * The tenant id or name in which to authenticate against the Azure SQL Managed Instance.
     */
    readonly tenant: pulumi.Output<string | undefined>;
    /**
     * Create a LinkedServiceSqlManagedInstance 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: LinkedServiceSqlManagedInstanceArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering LinkedServiceSqlManagedInstance resources.
 */
export interface LinkedServiceSqlManagedInstanceState {
    /**
     * List of tags that can be used for describing the Data Factory Linked Service SQL Managed Instance.
     */
    annotations?: pulumi.Input<pulumi.Input<string>[] | undefined>;
    /**
     * The connection string in which to authenticate with the SQL Managed Instance. Exactly one of either `connectionString` or `keyVaultConnectionString` is required.
     *
     * > **Note:** When using service principal authentication, the connection string must not contain authentication values like `User Id`.
     */
    connectionString?: pulumi.Input<string | undefined>;
    /**
     * The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource to be created.
     */
    dataFactoryId?: pulumi.Input<string | undefined>;
    /**
     * The description for the Data Factory Linked Service SQL Managed Instance.
     */
    description?: pulumi.Input<string | undefined>;
    /**
     * The integration runtime reference to associate with the Data Factory Linked Service SQL Managed Instance.
     */
    integrationRuntimeName?: pulumi.Input<string | undefined>;
    /**
     * A `keyVaultConnectionString` block as defined below. Use this argument to store SQL Managed Instance connection string in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of either `connectionString` or `keyVaultConnectionString` is required.
     */
    keyVaultConnectionString?: pulumi.Input<inputs.datafactory.LinkedServiceSqlManagedInstanceKeyVaultConnectionString | undefined>;
    /**
     * A `keyVaultPassword` block as defined below. Use this argument to store SQL Managed Instance password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service.
     */
    keyVaultPassword?: pulumi.Input<inputs.datafactory.LinkedServiceSqlManagedInstanceKeyVaultPassword | undefined>;
    /**
     * Specifies the name of the Data Factory Linked Service SQL Managed Instance. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions.
     */
    name?: pulumi.Input<string | undefined>;
    /**
     * A map of parameters to associate with the Data Factory Linked Service SQL Managed Instance.
     */
    parameters?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * The service principal id in which to authenticate against the Azure SQL Managed Instance.
     */
    servicePrincipalId?: pulumi.Input<string | undefined>;
    /**
     * The service principal key in which to authenticate against the Azure SQL Managed Instance.
     */
    servicePrincipalKey?: pulumi.Input<string | undefined>;
    /**
     * The tenant id or name in which to authenticate against the Azure SQL Managed Instance.
     */
    tenant?: pulumi.Input<string | undefined>;
}
/**
 * The set of arguments for constructing a LinkedServiceSqlManagedInstance resource.
 */
export interface LinkedServiceSqlManagedInstanceArgs {
    /**
     * List of tags that can be used for describing the Data Factory Linked Service SQL Managed Instance.
     */
    annotations?: pulumi.Input<pulumi.Input<string>[] | undefined>;
    /**
     * The connection string in which to authenticate with the SQL Managed Instance. Exactly one of either `connectionString` or `keyVaultConnectionString` is required.
     *
     * > **Note:** When using service principal authentication, the connection string must not contain authentication values like `User Id`.
     */
    connectionString?: pulumi.Input<string | undefined>;
    /**
     * The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource to be created.
     */
    dataFactoryId: pulumi.Input<string>;
    /**
     * The description for the Data Factory Linked Service SQL Managed Instance.
     */
    description?: pulumi.Input<string | undefined>;
    /**
     * The integration runtime reference to associate with the Data Factory Linked Service SQL Managed Instance.
     */
    integrationRuntimeName?: pulumi.Input<string | undefined>;
    /**
     * A `keyVaultConnectionString` block as defined below. Use this argument to store SQL Managed Instance connection string in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of either `connectionString` or `keyVaultConnectionString` is required.
     */
    keyVaultConnectionString?: pulumi.Input<inputs.datafactory.LinkedServiceSqlManagedInstanceKeyVaultConnectionString | undefined>;
    /**
     * A `keyVaultPassword` block as defined below. Use this argument to store SQL Managed Instance password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service.
     */
    keyVaultPassword?: pulumi.Input<inputs.datafactory.LinkedServiceSqlManagedInstanceKeyVaultPassword | undefined>;
    /**
     * Specifies the name of the Data Factory Linked Service SQL Managed Instance. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions.
     */
    name?: pulumi.Input<string | undefined>;
    /**
     * A map of parameters to associate with the Data Factory Linked Service SQL Managed Instance.
     */
    parameters?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * The service principal id in which to authenticate against the Azure SQL Managed Instance.
     */
    servicePrincipalId?: pulumi.Input<string | undefined>;
    /**
     * The service principal key in which to authenticate against the Azure SQL Managed Instance.
     */
    servicePrincipalKey?: pulumi.Input<string | undefined>;
    /**
     * The tenant id or name in which to authenticate against the Azure SQL Managed Instance.
     */
    tenant?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=linkedServiceSqlManagedInstance.d.ts.map