import * as pulumi from "@pulumi/pulumi";
/**
 * Associates a Spring Cloud Application with a MySQL Database.
 *
 * !> **Note:** Azure Spring Apps is now deprecated and will be retired on 2028-05-31 - as such the `azure.appplatform.SpringCloudAppMysqlAssociation` resource is deprecated and will be removed in a future major version of the AzureRM Provider. See https://aka.ms/asaretirement for more information.
 *
 * ## 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 exampleSpringCloudService = new azure.appplatform.SpringCloudService("example", {
 *     name: "example-springcloud",
 *     resourceGroupName: example.name,
 *     location: example.location,
 * });
 * const exampleSpringCloudApp = new azure.appplatform.SpringCloudApp("example", {
 *     name: "example-springcloudapp",
 *     resourceGroupName: example.name,
 *     serviceName: exampleSpringCloudService.name,
 * });
 * const exampleFlexibleServer = new azure.mysql.FlexibleServer("example", {
 *     name: "example-fsserver",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     administratorLogin: "adminTerraform",
 *     administratorPassword: "QAZwsx123",
 *     skuName: "B_Standard_B1ms",
 *     zone: "2",
 * });
 * const exampleFlexibleDatabase = new azure.mysql.FlexibleDatabase("example", {
 *     name: "exampledb",
 *     resourceGroupName: example.name,
 *     serverName: exampleFlexibleServer.name,
 *     charset: "utf8",
 *     collation: "utf8_unicode_ci",
 * });
 * const exampleSpringCloudAppMysqlAssociation = new azure.appplatform.SpringCloudAppMysqlAssociation("example", {
 *     name: "example-bind",
 *     springCloudAppId: exampleSpringCloudApp.id,
 *     mysqlServerId: exampleFlexibleServer.id,
 *     databaseName: exampleFlexibleDatabase.name,
 *     username: exampleFlexibleServer.administratorLogin,
 *     password: exampleFlexibleServer.administratorLoginPassword,
 * });
 * ```
 *
 * ## Import
 *
 * Spring Cloud Application MySQL Association can be imported using the `resource id`, e.g.
 *
 * ```sh
 * $ pulumi import azure:appplatform/springCloudAppMysqlAssociation:SpringCloudAppMysqlAssociation example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroup1/providers/Microsoft.AppPlatform/spring/service1/apps/app1/bindings/bind1
 * ```
 */
export declare class SpringCloudAppMysqlAssociation extends pulumi.CustomResource {
    /**
     * Get an existing SpringCloudAppMysqlAssociation 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?: SpringCloudAppMysqlAssociationState, opts?: pulumi.CustomResourceOptions): SpringCloudAppMysqlAssociation;
    /**
     * Returns true if the given object is an instance of SpringCloudAppMysqlAssociation.  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 SpringCloudAppMysqlAssociation;
    /**
     * Specifies the name of the MySQL Database which the Spring Cloud App should be associated with.
     */
    readonly databaseName: pulumi.Output<string>;
    /**
     * Specifies the ID of the MySQL Server. Changing this forces a new resource to be created.
     */
    readonly mysqlServerId: pulumi.Output<string>;
    /**
     * Specifies the name of the Spring Cloud Application Association. Changing this forces a new resource to be created.
     */
    readonly name: pulumi.Output<string>;
    /**
     * Specifies the password which should be used when connecting to the MySQL Database from the Spring Cloud App.
     */
    readonly password: pulumi.Output<string>;
    /**
     * Specifies the ID of the Spring Cloud Application where this Association is created. Changing this forces a new resource to be created.
     */
    readonly springCloudAppId: pulumi.Output<string>;
    /**
     * Specifies the username which should be used when connecting to the MySQL Database from the Spring Cloud App.
     */
    readonly username: pulumi.Output<string>;
    /**
     * Create a SpringCloudAppMysqlAssociation 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: SpringCloudAppMysqlAssociationArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering SpringCloudAppMysqlAssociation resources.
 */
export interface SpringCloudAppMysqlAssociationState {
    /**
     * Specifies the name of the MySQL Database which the Spring Cloud App should be associated with.
     */
    databaseName?: pulumi.Input<string | undefined>;
    /**
     * Specifies the ID of the MySQL Server. Changing this forces a new resource to be created.
     */
    mysqlServerId?: pulumi.Input<string | undefined>;
    /**
     * Specifies the name of the Spring Cloud Application Association. Changing this forces a new resource to be created.
     */
    name?: pulumi.Input<string | undefined>;
    /**
     * Specifies the password which should be used when connecting to the MySQL Database from the Spring Cloud App.
     */
    password?: pulumi.Input<string | undefined>;
    /**
     * Specifies the ID of the Spring Cloud Application where this Association is created. Changing this forces a new resource to be created.
     */
    springCloudAppId?: pulumi.Input<string | undefined>;
    /**
     * Specifies the username which should be used when connecting to the MySQL Database from the Spring Cloud App.
     */
    username?: pulumi.Input<string | undefined>;
}
/**
 * The set of arguments for constructing a SpringCloudAppMysqlAssociation resource.
 */
export interface SpringCloudAppMysqlAssociationArgs {
    /**
     * Specifies the name of the MySQL Database which the Spring Cloud App should be associated with.
     */
    databaseName: pulumi.Input<string>;
    /**
     * Specifies the ID of the MySQL Server. Changing this forces a new resource to be created.
     */
    mysqlServerId: pulumi.Input<string>;
    /**
     * Specifies the name of the Spring Cloud Application Association. Changing this forces a new resource to be created.
     */
    name?: pulumi.Input<string | undefined>;
    /**
     * Specifies the password which should be used when connecting to the MySQL Database from the Spring Cloud App.
     */
    password: pulumi.Input<string>;
    /**
     * Specifies the ID of the Spring Cloud Application where this Association is created. Changing this forces a new resource to be created.
     */
    springCloudAppId: pulumi.Input<string>;
    /**
     * Specifies the username which should be used when connecting to the MySQL Database from the Spring Cloud App.
     */
    username: pulumi.Input<string>;
}
//# sourceMappingURL=springCloudAppMysqlAssociation.d.ts.map