import * as pulumi from "@pulumi/pulumi";
/**
 * Creates and manages Scaleway compute Instance User Data values.
 *
 * User data is a key value store API you can use to provide data from and to your server without authentication. It is the mechanism by which a user can pass information contained in a local file to an Instance at launch time.
 *
 * The typical use case is to pass something like a shell script or a configuration file as user data.
 *
 * For more information about [userData](https://www.scaleway.com/en/developers/api/instance/#path-user-data-list-user-data) check our documentation guide [here](https://www.scaleway.com/en/docs/compute/instances/how-to/use-boot-modes/#how-to-use-cloud-init).
 *
 * About cloud-init documentation please check this [link](https://cloudinit.readthedocs.io/en/latest/).
 *
 * ## Example Usage
 *
 * ### Basic
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as scaleway from "@pulumiverse/scaleway";
 *
 * const config = new pulumi.Config();
 * const userData = config.getObject<Record<string, any>>("userData") || {
 *     "cloud-init": `#cloud-config
 * apt-update: true
 * apt-upgrade: true
 * `,
 *     foo: "bar",
 * };
 * const mainServer = new scaleway.instance.Server("main", {
 *     image: "ubuntu_focal",
 *     type: "DEV1-S",
 * });
 * // User data with a single value
 * const main = new scaleway.instance.UserData("main", {
 *     serverId: mainServer.id,
 *     key: "foo",
 *     value: "bar",
 * });
 * // User Data with many keys.
 * const data: scaleway.instance.UserData[] = [];
 * for (const range of Object.entries(userData).map(([k, v]) => ({key: k, value: v}))) {
 *     data.push(new scaleway.instance.UserData(`data-${range.key}`, {
 *         serverId: mainServer.id,
 *         key: range.key,
 *         value: range.value,
 *     }));
 * }
 * ```
 *
 * ## Import
 *
 * User data can be imported using the `{zone}/{key}/{server_id}`, e.g.
 *
 * bash
 *
 * ```sh
 * $ pulumi import scaleway:index/instanceUserData:InstanceUserData main fr-par-1/cloud-init/11111111-1111-1111-1111-111111111111
 * ```
 *
 * @deprecated scaleway.index/instanceuserdata.InstanceUserData has been deprecated in favor of scaleway.instance/userdata.UserData
 */
export declare class InstanceUserData extends pulumi.CustomResource {
    /**
     * Get an existing InstanceUserData 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?: InstanceUserDataState, opts?: pulumi.CustomResourceOptions): InstanceUserData;
    /**
     * Returns true if the given object is an instance of InstanceUserData.  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 InstanceUserData;
    /**
     * Key of the user data.
     */
    readonly key: pulumi.Output<string>;
    /**
     * The ID of the server associated with.
     */
    readonly serverId: pulumi.Output<string>;
    /**
     * Value associated with your key
     */
    readonly value: pulumi.Output<string>;
    /**
     * `zone`) The zone in which the server should be created.
     *
     * > **Important:**   Use the `cloud-init` key to use [cloud-init](https://cloudinit.readthedocs.io/en/latest/) on your instance.
     * You can define values using:
     * - string
     * - UTF-8 encoded file content using file
     */
    readonly zone: pulumi.Output<string>;
    /**
     * Create a InstanceUserData 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.
     */
    /** @deprecated scaleway.index/instanceuserdata.InstanceUserData has been deprecated in favor of scaleway.instance/userdata.UserData */
    constructor(name: string, args: InstanceUserDataArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering InstanceUserData resources.
 */
export interface InstanceUserDataState {
    /**
     * Key of the user data.
     */
    key?: pulumi.Input<string>;
    /**
     * The ID of the server associated with.
     */
    serverId?: pulumi.Input<string>;
    /**
     * Value associated with your key
     */
    value?: pulumi.Input<string>;
    /**
     * `zone`) The zone in which the server should be created.
     *
     * > **Important:**   Use the `cloud-init` key to use [cloud-init](https://cloudinit.readthedocs.io/en/latest/) on your instance.
     * You can define values using:
     * - string
     * - UTF-8 encoded file content using file
     */
    zone?: pulumi.Input<string>;
}
/**
 * The set of arguments for constructing a InstanceUserData resource.
 */
export interface InstanceUserDataArgs {
    /**
     * Key of the user data.
     */
    key: pulumi.Input<string>;
    /**
     * The ID of the server associated with.
     */
    serverId: pulumi.Input<string>;
    /**
     * Value associated with your key
     */
    value: pulumi.Input<string>;
    /**
     * `zone`) The zone in which the server should be created.
     *
     * > **Important:**   Use the `cloud-init` key to use [cloud-init](https://cloudinit.readthedocs.io/en/latest/) on your instance.
     * You can define values using:
     * - string
     * - UTF-8 encoded file content using file
     */
    zone?: pulumi.Input<string>;
}
