import * as pulumi from "@pulumi/pulumi"; /** * Creates a namespace for a M3DB cluster associated with a public cloud project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const m3db = ovh.CloudProjectDatabase.getDatabase({ * serviceName: "XXX", * engine: "m3db", * id: "ZZZ", * }); * const namespace = new ovh.cloudprojectdatabase.M3DbNamespace("namespace", { * serviceName: m3db.then(m3db => m3db.serviceName), * clusterId: m3db.then(m3db => m3db.id), * name: "mynamespace", * resolution: "P2D", * retentionPeriodDuration: "PT48H", * }); * ``` * * ## Import * * OVHcloud Managed M3DB clusters namespaces can be imported using the `service_name`, `cluster_id` and `id` of the namespace, separated by "/" E.g., * * bash * * ```sh * $ pulumi import ovh:CloudProjectDatabase/m3DbNamespace:M3DbNamespace my_namespace service_name/cluster_id/id * ``` */ export declare class M3DbNamespace extends pulumi.CustomResource { /** * Get an existing M3DbNamespace 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?: M3DbNamespaceState, opts?: pulumi.CustomResourceOptions): M3DbNamespace; /** * Returns true if the given object is an instance of M3DbNamespace. 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 M3DbNamespace; /** * Cluster ID. */ readonly clusterId: pulumi.Output; /** * Name of the namespace. A namespace named "default" is mapped with already created default namespace instead of creating a new namespace. */ readonly name: pulumi.Output; /** * Resolution for an aggregated namespace. Should follow Rfc3339 e.g P2D, PT48H. */ readonly resolution: pulumi.Output; /** * Controls how long we wait before expiring stale data. Should follow Rfc3339 e.g P2D, PT48H. */ readonly retentionBlockDataExpirationDuration: pulumi.Output; /** * Controls how long to keep a block in memory before flushing to a fileset on disk. Should follow Rfc3339 e.g P2D, PT48H. */ readonly retentionBlockSizeDuration: pulumi.Output; /** * Controls how far into the future writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H. */ readonly retentionBufferFutureDuration: pulumi.Output; /** * Controls how far into the past writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H. */ readonly retentionBufferPastDuration: pulumi.Output; /** * Controls the duration of time that M3DB will retain data for the namespace. Should follow Rfc3339 e.g P2D, PT48H. */ readonly retentionPeriodDuration: pulumi.Output; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ readonly serviceName: pulumi.Output; /** * Defines whether M3DB will create snapshot files for this namespace. */ readonly snapshotEnabled: pulumi.Output; /** * Type of namespace. */ readonly type: pulumi.Output; /** * Defines whether M3DB will include writes to this namespace in the commit log. */ readonly writesToCommitLogEnabled: pulumi.Output; /** * Create a M3DbNamespace 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: M3DbNamespaceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering M3DbNamespace resources. */ export interface M3DbNamespaceState { /** * Cluster ID. */ clusterId?: pulumi.Input; /** * Name of the namespace. A namespace named "default" is mapped with already created default namespace instead of creating a new namespace. */ name?: pulumi.Input; /** * Resolution for an aggregated namespace. Should follow Rfc3339 e.g P2D, PT48H. */ resolution?: pulumi.Input; /** * Controls how long we wait before expiring stale data. Should follow Rfc3339 e.g P2D, PT48H. */ retentionBlockDataExpirationDuration?: pulumi.Input; /** * Controls how long to keep a block in memory before flushing to a fileset on disk. Should follow Rfc3339 e.g P2D, PT48H. */ retentionBlockSizeDuration?: pulumi.Input; /** * Controls how far into the future writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H. */ retentionBufferFutureDuration?: pulumi.Input; /** * Controls how far into the past writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H. */ retentionBufferPastDuration?: pulumi.Input; /** * Controls the duration of time that M3DB will retain data for the namespace. Should follow Rfc3339 e.g P2D, PT48H. */ retentionPeriodDuration?: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName?: pulumi.Input; /** * Defines whether M3DB will create snapshot files for this namespace. */ snapshotEnabled?: pulumi.Input; /** * Type of namespace. */ type?: pulumi.Input; /** * Defines whether M3DB will include writes to this namespace in the commit log. */ writesToCommitLogEnabled?: pulumi.Input; } /** * The set of arguments for constructing a M3DbNamespace resource. */ export interface M3DbNamespaceArgs { /** * Cluster ID. */ clusterId: pulumi.Input; /** * Name of the namespace. A namespace named "default" is mapped with already created default namespace instead of creating a new namespace. */ name?: pulumi.Input; /** * Resolution for an aggregated namespace. Should follow Rfc3339 e.g P2D, PT48H. */ resolution: pulumi.Input; /** * Controls how long we wait before expiring stale data. Should follow Rfc3339 e.g P2D, PT48H. */ retentionBlockDataExpirationDuration?: pulumi.Input; /** * Controls how long to keep a block in memory before flushing to a fileset on disk. Should follow Rfc3339 e.g P2D, PT48H. */ retentionBlockSizeDuration?: pulumi.Input; /** * Controls how far into the future writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H. */ retentionBufferFutureDuration?: pulumi.Input; /** * Controls how far into the past writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H. */ retentionBufferPastDuration?: pulumi.Input; /** * Controls the duration of time that M3DB will retain data for the namespace. Should follow Rfc3339 e.g P2D, PT48H. */ retentionPeriodDuration?: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName?: pulumi.Input; /** * Defines whether M3DB will create snapshot files for this namespace. */ snapshotEnabled?: pulumi.Input; /** * Defines whether M3DB will include writes to this namespace in the commit log. */ writesToCommitLogEnabled?: pulumi.Input; }