ovh.CloudProjectDatabase.M3DbNamespace
Explore with Pulumi AI
Creates a namespace for a M3DB cluster associated with a public cloud project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
import * as ovh from "@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),
resolution: "P2D",
retentionPeriodDuration: "PT48H",
});
import pulumi
import pulumi_ovh as ovh
m3db = ovh.CloudProjectDatabase.get_database(service_name="XXX",
engine="m3db",
id="ZZZ")
namespace = ovh.cloud_project_database.M3DbNamespace("namespace",
service_name=m3db.service_name,
cluster_id=m3db.id,
resolution="P2D",
retention_period_duration="PT48H")
package main
import (
"github.com/ovh/pulumi-ovh/sdk/go/ovh/CloudProjectDatabase"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
m3db, err := CloudProjectDatabase.GetDatabase(ctx, &cloudprojectdatabase.GetDatabaseArgs{
ServiceName: "XXX",
Engine: "m3db",
Id: "ZZZ",
}, nil)
if err != nil {
return err
}
_, err = CloudProjectDatabase.NewM3DbNamespace(ctx, "namespace", &CloudProjectDatabase.M3DbNamespaceArgs{
ServiceName: pulumi.String(m3db.ServiceName),
ClusterId: pulumi.String(m3db.Id),
Resolution: pulumi.String("P2D"),
RetentionPeriodDuration: pulumi.String("PT48H"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var m3db = Ovh.CloudProjectDatabase.GetDatabase.Invoke(new()
{
ServiceName = "XXX",
Engine = "m3db",
Id = "ZZZ",
});
var @namespace = new Ovh.CloudProjectDatabase.M3DbNamespace("namespace", new()
{
ServiceName = m3db.Apply(getDatabaseResult => getDatabaseResult.ServiceName),
ClusterId = m3db.Apply(getDatabaseResult => getDatabaseResult.Id),
Resolution = "P2D",
RetentionPeriodDuration = "PT48H",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.CloudProjectDatabase.CloudProjectDatabaseFunctions;
import com.pulumi.ovh.CloudProjectDatabase.inputs.GetDatabaseArgs;
import com.pulumi.ovh.CloudProjectDatabase.M3DbNamespace;
import com.pulumi.ovh.CloudProjectDatabase.M3DbNamespaceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var m3db = CloudProjectDatabaseFunctions.getDatabase(GetDatabaseArgs.builder()
.serviceName("XXX")
.engine("m3db")
.id("ZZZ")
.build());
var namespace = new M3DbNamespace("namespace", M3DbNamespaceArgs.builder()
.serviceName(m3db.applyValue(getDatabaseResult -> getDatabaseResult.serviceName()))
.clusterId(m3db.applyValue(getDatabaseResult -> getDatabaseResult.id()))
.resolution("P2D")
.retentionPeriodDuration("PT48H")
.build());
}
}
resources:
namespace:
type: ovh:CloudProjectDatabase:M3DbNamespace
properties:
serviceName: ${m3db.serviceName}
clusterId: ${m3db.id}
resolution: P2D
retentionPeriodDuration: PT48H
variables:
m3db:
fn::invoke:
Function: ovh:CloudProjectDatabase:getDatabase
Arguments:
serviceName: XXX
engine: m3db
id: ZZZ
Create M3DbNamespace Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new M3DbNamespace(name: string, args: M3DbNamespaceArgs, opts?: CustomResourceOptions);
@overload
def M3DbNamespace(resource_name: str,
args: M3DbNamespaceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def M3DbNamespace(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
resolution: Optional[str] = None,
retention_period_duration: Optional[str] = None,
service_name: Optional[str] = None,
name: Optional[str] = None,
retention_block_data_expiration_duration: Optional[str] = None,
retention_block_size_duration: Optional[str] = None,
retention_buffer_future_duration: Optional[str] = None,
retention_buffer_past_duration: Optional[str] = None,
snapshot_enabled: Optional[bool] = None,
writes_to_commit_log_enabled: Optional[bool] = None)
func NewM3DbNamespace(ctx *Context, name string, args M3DbNamespaceArgs, opts ...ResourceOption) (*M3DbNamespace, error)
public M3DbNamespace(string name, M3DbNamespaceArgs args, CustomResourceOptions? opts = null)
public M3DbNamespace(String name, M3DbNamespaceArgs args)
public M3DbNamespace(String name, M3DbNamespaceArgs args, CustomResourceOptions options)
type: ovh:CloudProjectDatabase:M3DbNamespace
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args M3DbNamespaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args M3DbNamespaceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args M3DbNamespaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args M3DbNamespaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args M3DbNamespaceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var m3dbNamespaceResource = new Ovh.CloudProjectDatabase.M3DbNamespace("m3dbNamespaceResource", new()
{
ClusterId = "string",
Resolution = "string",
RetentionPeriodDuration = "string",
ServiceName = "string",
Name = "string",
RetentionBlockDataExpirationDuration = "string",
RetentionBlockSizeDuration = "string",
RetentionBufferFutureDuration = "string",
RetentionBufferPastDuration = "string",
SnapshotEnabled = false,
WritesToCommitLogEnabled = false,
});
example, err := CloudProjectDatabase.NewM3DbNamespace(ctx, "m3dbNamespaceResource", &CloudProjectDatabase.M3DbNamespaceArgs{
ClusterId: pulumi.String("string"),
Resolution: pulumi.String("string"),
RetentionPeriodDuration: pulumi.String("string"),
ServiceName: pulumi.String("string"),
Name: pulumi.String("string"),
RetentionBlockDataExpirationDuration: pulumi.String("string"),
RetentionBlockSizeDuration: pulumi.String("string"),
RetentionBufferFutureDuration: pulumi.String("string"),
RetentionBufferPastDuration: pulumi.String("string"),
SnapshotEnabled: pulumi.Bool(false),
WritesToCommitLogEnabled: pulumi.Bool(false),
})
var m3dbNamespaceResource = new M3DbNamespace("m3dbNamespaceResource", M3DbNamespaceArgs.builder()
.clusterId("string")
.resolution("string")
.retentionPeriodDuration("string")
.serviceName("string")
.name("string")
.retentionBlockDataExpirationDuration("string")
.retentionBlockSizeDuration("string")
.retentionBufferFutureDuration("string")
.retentionBufferPastDuration("string")
.snapshotEnabled(false)
.writesToCommitLogEnabled(false)
.build());
m3db_namespace_resource = ovh.cloud_project_database.M3DbNamespace("m3dbNamespaceResource",
cluster_id="string",
resolution="string",
retention_period_duration="string",
service_name="string",
name="string",
retention_block_data_expiration_duration="string",
retention_block_size_duration="string",
retention_buffer_future_duration="string",
retention_buffer_past_duration="string",
snapshot_enabled=False,
writes_to_commit_log_enabled=False)
const m3dbNamespaceResource = new ovh.cloudprojectdatabase.M3DbNamespace("m3dbNamespaceResource", {
clusterId: "string",
resolution: "string",
retentionPeriodDuration: "string",
serviceName: "string",
name: "string",
retentionBlockDataExpirationDuration: "string",
retentionBlockSizeDuration: "string",
retentionBufferFutureDuration: "string",
retentionBufferPastDuration: "string",
snapshotEnabled: false,
writesToCommitLogEnabled: false,
});
type: ovh:CloudProjectDatabase:M3DbNamespace
properties:
clusterId: string
name: string
resolution: string
retentionBlockDataExpirationDuration: string
retentionBlockSizeDuration: string
retentionBufferFutureDuration: string
retentionBufferPastDuration: string
retentionPeriodDuration: string
serviceName: string
snapshotEnabled: false
writesToCommitLogEnabled: false
M3DbNamespace Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The M3DbNamespace resource accepts the following input properties:
- Cluster
Id string - Cluster ID.
- Resolution string
- Resolution for an aggregated namespace. Should follow Rfc3339 e.g P2D, PT48H.
- Retention
Period stringDuration - Controls the duration of time that M3DB will retain data for the namespace. Should follow Rfc3339 e.g P2D, PT48H.
- Service
Name string - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used. - Name string
- Name of the namespace.
- Retention
Block stringData Expiration Duration - Controls how long we wait before expiring stale data. Should follow Rfc3339 e.g P2D, PT48H.
- Retention
Block stringSize Duration - Controls how long to keep a block in memory before flushing to a fileset on disk. Should follow Rfc3339 e.g P2D, PT48H.
- Retention
Buffer stringFuture Duration - Controls how far into the future writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
- Retention
Buffer stringPast Duration - Controls how far into the past writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
- Snapshot
Enabled bool - Defines whether M3DB will create snapshot files for this namespace.
- Writes
To boolCommit Log Enabled - Defines whether M3DB will include writes to this namespace in the commit log.
- Cluster
Id string - Cluster ID.
- Resolution string
- Resolution for an aggregated namespace. Should follow Rfc3339 e.g P2D, PT48H.
- Retention
Period stringDuration - Controls the duration of time that M3DB will retain data for the namespace. Should follow Rfc3339 e.g P2D, PT48H.
- Service
Name string - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used. - Name string
- Name of the namespace.
- Retention
Block stringData Expiration Duration - Controls how long we wait before expiring stale data. Should follow Rfc3339 e.g P2D, PT48H.
- Retention
Block stringSize Duration - Controls how long to keep a block in memory before flushing to a fileset on disk. Should follow Rfc3339 e.g P2D, PT48H.
- Retention
Buffer stringFuture Duration - Controls how far into the future writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
- Retention
Buffer stringPast Duration - Controls how far into the past writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
- Snapshot
Enabled bool - Defines whether M3DB will create snapshot files for this namespace.
- Writes
To boolCommit Log Enabled - Defines whether M3DB will include writes to this namespace in the commit log.
- cluster
Id String - Cluster ID.
- resolution String
- Resolution for an aggregated namespace. Should follow Rfc3339 e.g P2D, PT48H.
- retention
Period StringDuration - Controls the duration of time that M3DB will retain data for the namespace. Should follow Rfc3339 e.g P2D, PT48H.
- service
Name String - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used. - name String
- Name of the namespace.
- retention
Block StringData Expiration Duration - Controls how long we wait before expiring stale data. Should follow Rfc3339 e.g P2D, PT48H.
- retention
Block StringSize Duration - Controls how long to keep a block in memory before flushing to a fileset on disk. Should follow Rfc3339 e.g P2D, PT48H.
- retention
Buffer StringFuture Duration - Controls how far into the future writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
- retention
Buffer StringPast Duration - Controls how far into the past writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
- snapshot
Enabled Boolean - Defines whether M3DB will create snapshot files for this namespace.
- writes
To BooleanCommit Log Enabled - Defines whether M3DB will include writes to this namespace in the commit log.
- cluster
Id string - Cluster ID.
- resolution string
- Resolution for an aggregated namespace. Should follow Rfc3339 e.g P2D, PT48H.
- retention
Period stringDuration - Controls the duration of time that M3DB will retain data for the namespace. Should follow Rfc3339 e.g P2D, PT48H.
- service
Name string - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used. - name string
- Name of the namespace.
- retention
Block stringData Expiration Duration - Controls how long we wait before expiring stale data. Should follow Rfc3339 e.g P2D, PT48H.
- retention
Block stringSize Duration - Controls how long to keep a block in memory before flushing to a fileset on disk. Should follow Rfc3339 e.g P2D, PT48H.
- retention
Buffer stringFuture Duration - Controls how far into the future writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
- retention
Buffer stringPast Duration - Controls how far into the past writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
- snapshot
Enabled boolean - Defines whether M3DB will create snapshot files for this namespace.
- writes
To booleanCommit Log Enabled - Defines whether M3DB will include writes to this namespace in the commit log.
- cluster_
id str - Cluster ID.
- resolution str
- Resolution for an aggregated namespace. Should follow Rfc3339 e.g P2D, PT48H.
- retention_
period_ strduration - Controls the duration of time that M3DB will retain data for the namespace. Should follow Rfc3339 e.g P2D, PT48H.
- service_
name str - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used. - name str
- Name of the namespace.
- retention_
block_ strdata_ expiration_ duration - Controls how long we wait before expiring stale data. Should follow Rfc3339 e.g P2D, PT48H.
- retention_
block_ strsize_ duration - Controls how long to keep a block in memory before flushing to a fileset on disk. Should follow Rfc3339 e.g P2D, PT48H.
- retention_
buffer_ strfuture_ duration - Controls how far into the future writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
- retention_
buffer_ strpast_ duration - Controls how far into the past writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
- snapshot_
enabled bool - Defines whether M3DB will create snapshot files for this namespace.
- writes_
to_ boolcommit_ log_ enabled - Defines whether M3DB will include writes to this namespace in the commit log.
- cluster
Id String - Cluster ID.
- resolution String
- Resolution for an aggregated namespace. Should follow Rfc3339 e.g P2D, PT48H.
- retention
Period StringDuration - Controls the duration of time that M3DB will retain data for the namespace. Should follow Rfc3339 e.g P2D, PT48H.
- service
Name String - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used. - name String
- Name of the namespace.
- retention
Block StringData Expiration Duration - Controls how long we wait before expiring stale data. Should follow Rfc3339 e.g P2D, PT48H.
- retention
Block StringSize Duration - Controls how long to keep a block in memory before flushing to a fileset on disk. Should follow Rfc3339 e.g P2D, PT48H.
- retention
Buffer StringFuture Duration - Controls how far into the future writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
- retention
Buffer StringPast Duration - Controls how far into the past writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
- snapshot
Enabled Boolean - Defines whether M3DB will create snapshot files for this namespace.
- writes
To BooleanCommit Log Enabled - Defines whether M3DB will include writes to this namespace in the commit log.
Outputs
All input properties are implicitly available as output properties. Additionally, the M3DbNamespace resource produces the following output properties:
Look up Existing M3DbNamespace Resource
Get an existing M3DbNamespace resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: M3DbNamespaceState, opts?: CustomResourceOptions): M3DbNamespace
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
name: Optional[str] = None,
resolution: Optional[str] = None,
retention_block_data_expiration_duration: Optional[str] = None,
retention_block_size_duration: Optional[str] = None,
retention_buffer_future_duration: Optional[str] = None,
retention_buffer_past_duration: Optional[str] = None,
retention_period_duration: Optional[str] = None,
service_name: Optional[str] = None,
snapshot_enabled: Optional[bool] = None,
type: Optional[str] = None,
writes_to_commit_log_enabled: Optional[bool] = None) -> M3DbNamespace
func GetM3DbNamespace(ctx *Context, name string, id IDInput, state *M3DbNamespaceState, opts ...ResourceOption) (*M3DbNamespace, error)
public static M3DbNamespace Get(string name, Input<string> id, M3DbNamespaceState? state, CustomResourceOptions? opts = null)
public static M3DbNamespace get(String name, Output<String> id, M3DbNamespaceState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cluster
Id string - Cluster ID.
- Name string
- Name of the namespace.
- Resolution string
- Resolution for an aggregated namespace. Should follow Rfc3339 e.g P2D, PT48H.
- Retention
Block stringData Expiration Duration - Controls how long we wait before expiring stale data. Should follow Rfc3339 e.g P2D, PT48H.
- Retention
Block stringSize Duration - Controls how long to keep a block in memory before flushing to a fileset on disk. Should follow Rfc3339 e.g P2D, PT48H.
- Retention
Buffer stringFuture Duration - Controls how far into the future writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
- Retention
Buffer stringPast Duration - Controls how far into the past writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
- Retention
Period stringDuration - Controls the duration of time that M3DB will retain data for the namespace. Should follow Rfc3339 e.g P2D, PT48H.
- Service
Name string - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used. - Snapshot
Enabled bool - Defines whether M3DB will create snapshot files for this namespace.
- Type string
- Type of namespace.
- Writes
To boolCommit Log Enabled - Defines whether M3DB will include writes to this namespace in the commit log.
- Cluster
Id string - Cluster ID.
- Name string
- Name of the namespace.
- Resolution string
- Resolution for an aggregated namespace. Should follow Rfc3339 e.g P2D, PT48H.
- Retention
Block stringData Expiration Duration - Controls how long we wait before expiring stale data. Should follow Rfc3339 e.g P2D, PT48H.
- Retention
Block stringSize Duration - Controls how long to keep a block in memory before flushing to a fileset on disk. Should follow Rfc3339 e.g P2D, PT48H.
- Retention
Buffer stringFuture Duration - Controls how far into the future writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
- Retention
Buffer stringPast Duration - Controls how far into the past writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
- Retention
Period stringDuration - Controls the duration of time that M3DB will retain data for the namespace. Should follow Rfc3339 e.g P2D, PT48H.
- Service
Name string - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used. - Snapshot
Enabled bool - Defines whether M3DB will create snapshot files for this namespace.
- Type string
- Type of namespace.
- Writes
To boolCommit Log Enabled - Defines whether M3DB will include writes to this namespace in the commit log.
- cluster
Id String - Cluster ID.
- name String
- Name of the namespace.
- resolution String
- Resolution for an aggregated namespace. Should follow Rfc3339 e.g P2D, PT48H.
- retention
Block StringData Expiration Duration - Controls how long we wait before expiring stale data. Should follow Rfc3339 e.g P2D, PT48H.
- retention
Block StringSize Duration - Controls how long to keep a block in memory before flushing to a fileset on disk. Should follow Rfc3339 e.g P2D, PT48H.
- retention
Buffer StringFuture Duration - Controls how far into the future writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
- retention
Buffer StringPast Duration - Controls how far into the past writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
- retention
Period StringDuration - Controls the duration of time that M3DB will retain data for the namespace. Should follow Rfc3339 e.g P2D, PT48H.
- service
Name String - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used. - snapshot
Enabled Boolean - Defines whether M3DB will create snapshot files for this namespace.
- type String
- Type of namespace.
- writes
To BooleanCommit Log Enabled - Defines whether M3DB will include writes to this namespace in the commit log.
- cluster
Id string - Cluster ID.
- name string
- Name of the namespace.
- resolution string
- Resolution for an aggregated namespace. Should follow Rfc3339 e.g P2D, PT48H.
- retention
Block stringData Expiration Duration - Controls how long we wait before expiring stale data. Should follow Rfc3339 e.g P2D, PT48H.
- retention
Block stringSize Duration - Controls how long to keep a block in memory before flushing to a fileset on disk. Should follow Rfc3339 e.g P2D, PT48H.
- retention
Buffer stringFuture Duration - Controls how far into the future writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
- retention
Buffer stringPast Duration - Controls how far into the past writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
- retention
Period stringDuration - Controls the duration of time that M3DB will retain data for the namespace. Should follow Rfc3339 e.g P2D, PT48H.
- service
Name string - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used. - snapshot
Enabled boolean - Defines whether M3DB will create snapshot files for this namespace.
- type string
- Type of namespace.
- writes
To booleanCommit Log Enabled - Defines whether M3DB will include writes to this namespace in the commit log.
- cluster_
id str - Cluster ID.
- name str
- Name of the namespace.
- resolution str
- Resolution for an aggregated namespace. Should follow Rfc3339 e.g P2D, PT48H.
- retention_
block_ strdata_ expiration_ duration - Controls how long we wait before expiring stale data. Should follow Rfc3339 e.g P2D, PT48H.
- retention_
block_ strsize_ duration - Controls how long to keep a block in memory before flushing to a fileset on disk. Should follow Rfc3339 e.g P2D, PT48H.
- retention_
buffer_ strfuture_ duration - Controls how far into the future writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
- retention_
buffer_ strpast_ duration - Controls how far into the past writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
- retention_
period_ strduration - Controls the duration of time that M3DB will retain data for the namespace. Should follow Rfc3339 e.g P2D, PT48H.
- service_
name str - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used. - snapshot_
enabled bool - Defines whether M3DB will create snapshot files for this namespace.
- type str
- Type of namespace.
- writes_
to_ boolcommit_ log_ enabled - Defines whether M3DB will include writes to this namespace in the commit log.
- cluster
Id String - Cluster ID.
- name String
- Name of the namespace.
- resolution String
- Resolution for an aggregated namespace. Should follow Rfc3339 e.g P2D, PT48H.
- retention
Block StringData Expiration Duration - Controls how long we wait before expiring stale data. Should follow Rfc3339 e.g P2D, PT48H.
- retention
Block StringSize Duration - Controls how long to keep a block in memory before flushing to a fileset on disk. Should follow Rfc3339 e.g P2D, PT48H.
- retention
Buffer StringFuture Duration - Controls how far into the future writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
- retention
Buffer StringPast Duration - Controls how far into the past writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
- retention
Period StringDuration - Controls the duration of time that M3DB will retain data for the namespace. Should follow Rfc3339 e.g P2D, PT48H.
- service
Name String - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used. - snapshot
Enabled Boolean - Defines whether M3DB will create snapshot files for this namespace.
- type String
- Type of namespace.
- writes
To BooleanCommit Log Enabled - Defines whether M3DB will include writes to this namespace in the commit log.
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
$ pulumi import ovh:CloudProjectDatabase/m3DbNamespace:M3DbNamespace my_namespace service_name/cluster_id/id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.