import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Creates and manages Scaleway MongoDB® instance. * For more information refer to [the API documentation](https://www.scaleway.com/en/docs/managed-databases/mongodb/). * * ## Example Usage * * ### Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * * const main = new scaleway.MongodbInstance("main", { * nodeNumber: 1, * nodeType: "MGDB-PLAY2-NANO", * password: "thiZ_is_v&ry_s3cret", * userName: "my_initial_user", * version: "7.0.12", * volumeSizeInGb: 5, * }); * ``` * * ### Restore From Snapshot * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * * const restoredInstance = new scaleway.MongodbInstance("restoredInstance", { * nodeNumber: 1, * nodeType: "MGDB-PLAY2-NANO", * snapshotId: scaleway_vpc_private_network.pn.idscaleway_mongodb_snapshot.main_snapshot.id, * }); * ``` * * ## Import * * MongoDB® instance can be imported using the `id`, e.g. * * bash * * ```sh * $ pulumi import scaleway:index/mongodbInstance:MongodbInstance main fr-par-1/11111111-1111-1111-1111-111111111111 * ``` */ export declare class MongodbInstance extends pulumi.CustomResource { /** * Get an existing MongodbInstance 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, state?: MongodbInstanceState, opts?: pulumi.CustomResourceOptions): MongodbInstance; /** * Returns true if the given object is an instance of MongodbInstance. 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 MongodbInstance; /** * The date and time of the creation of the MongoDB® instance. */ readonly createdAt: pulumi.Output; /** * Name of the MongoDB® instance. */ readonly name: pulumi.Output; /** * Number of nodes in the instance */ readonly nodeNumber: pulumi.Output; /** * The type of MongoDB® intance to create. */ readonly nodeType: pulumi.Output; /** * Password of the user. */ readonly password: pulumi.Output; /** * The projectId you want to attach the resource to */ readonly projectId: pulumi.Output; /** * Public network specs details. */ readonly publicNetwork: pulumi.Output; /** * The region you want to attach the resource to */ readonly region: pulumi.Output; /** * Map of settings to define for the instance. */ readonly settings: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Snapshot ID to restore the MongoDB® instance from. */ readonly snapshotId: pulumi.Output; /** * List of tags attached to the MongoDB® instance. */ readonly tags: pulumi.Output; /** * The date and time of the last update of the MongoDB® instance. */ readonly updatedAt: pulumi.Output; /** * Name of the user created when the intance is created. */ readonly userName: pulumi.Output; /** * MongoDB® version of the instance. */ readonly version: pulumi.Output; /** * Volume size in GB. */ readonly volumeSizeInGb: pulumi.Output; /** * Volume type of the instance. */ readonly volumeType: pulumi.Output; /** * Create a MongodbInstance 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: MongodbInstanceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering MongodbInstance resources. */ export interface MongodbInstanceState { /** * The date and time of the creation of the MongoDB® instance. */ createdAt?: pulumi.Input; /** * Name of the MongoDB® instance. */ name?: pulumi.Input; /** * Number of nodes in the instance */ nodeNumber?: pulumi.Input; /** * The type of MongoDB® intance to create. */ nodeType?: pulumi.Input; /** * Password of the user. */ password?: pulumi.Input; /** * The projectId you want to attach the resource to */ projectId?: pulumi.Input; /** * Public network specs details. */ publicNetwork?: pulumi.Input; /** * The region you want to attach the resource to */ region?: pulumi.Input; /** * Map of settings to define for the instance. */ settings?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Snapshot ID to restore the MongoDB® instance from. */ snapshotId?: pulumi.Input; /** * List of tags attached to the MongoDB® instance. */ tags?: pulumi.Input[]>; /** * The date and time of the last update of the MongoDB® instance. */ updatedAt?: pulumi.Input; /** * Name of the user created when the intance is created. */ userName?: pulumi.Input; /** * MongoDB® version of the instance. */ version?: pulumi.Input; /** * Volume size in GB. */ volumeSizeInGb?: pulumi.Input; /** * Volume type of the instance. */ volumeType?: pulumi.Input; } /** * The set of arguments for constructing a MongodbInstance resource. */ export interface MongodbInstanceArgs { /** * Name of the MongoDB® instance. */ name?: pulumi.Input; /** * Number of nodes in the instance */ nodeNumber: pulumi.Input; /** * The type of MongoDB® intance to create. */ nodeType: pulumi.Input; /** * Password of the user. */ password?: pulumi.Input; /** * The projectId you want to attach the resource to */ projectId?: pulumi.Input; /** * Public network specs details. */ publicNetwork?: pulumi.Input; /** * The region you want to attach the resource to */ region?: pulumi.Input; /** * Map of settings to define for the instance. */ settings?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Snapshot ID to restore the MongoDB® instance from. */ snapshotId?: pulumi.Input; /** * List of tags attached to the MongoDB® instance. */ tags?: pulumi.Input[]>; /** * Name of the user created when the intance is created. */ userName?: pulumi.Input; /** * MongoDB® version of the instance. */ version?: pulumi.Input; /** * Volume size in GB. */ volumeSizeInGb?: pulumi.Input; /** * Volume type of the instance. */ volumeType?: pulumi.Input; }