1. Registry
  2. Packages
  3. Ionoscloud
  4. API Docs
  5. dbaas
  6. InMemoryDBClusterV2
Viewing docs for IonosCloud v0.3.2
published on Wednesday, Jul 15, 2026 by ionos-cloud
ionoscloud logo
Viewing docs for IonosCloud v0.3.2
published on Wednesday, Jul 15, 2026 by ionos-cloud

    Manages a DBaaS InMemoryDB V2 Cluster.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
    
    const example = new ionoscloud.compute.Datacenter("example", {
        name: "example",
        location: "de/txl",
    });
    const exampleLan = new ionoscloud.compute.Lan("example", {
        datacenterId: example.id,
        "public": false,
        name: "example",
    });
    const exampleInMemoryDBClusterV2 = new ionoscloud.dbaas.InMemoryDBClusterV2("example", {
        location: "de/txl",
        name: "my-inmemorydb-cluster",
        description: "InMemoryDB cluster",
        version: "9.0",
        persistenceMode: "RDB",
        evictionPolicy: "allkeys-lru",
        logsEnabled: true,
        metricsEnabled: true,
        instances: {
            count: 1,
            cores: 1,
            ram: 4,
        },
        connections: {
            datacenter_id: example.id,
            lan_id: exampleLan.id,
            primary_instance_address: "192.168.2.101/24",
        },
        snapshot: {
            location: "eu-central-3",
            retention_days: 7,
            snapshot_hours: [
                0,
                6,
                12,
                18,
            ],
        },
        maintenanceWindow: {
            time: "09:00:00",
            day_of_the_week: "Sunday",
        },
        credentials: {
            username: "cacheuser",
            password: {
                algorithm: "SHA-256",
                hash: "5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8",
            },
        },
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    example = ionoscloud.compute.Datacenter("example",
        name="example",
        location="de/txl")
    example_lan = ionoscloud.compute.Lan("example",
        datacenter_id=example.id,
        public=False,
        name="example")
    example_in_memory_db_cluster_v2 = ionoscloud.dbaas.InMemoryDBClusterV2("example",
        location="de/txl",
        name="my-inmemorydb-cluster",
        description="InMemoryDB cluster",
        version="9.0",
        persistence_mode="RDB",
        eviction_policy="allkeys-lru",
        logs_enabled=True,
        metrics_enabled=True,
        instances={
            "count": 1,
            "cores": 1,
            "ram": 4,
        },
        connections={
            "datacenter_id": example.id,
            "lan_id": example_lan.id,
            "primary_instance_address": "192.168.2.101/24",
        },
        snapshot={
            "location": "eu-central-3",
            "retention_days": 7,
            "snapshot_hours": [
                0,
                6,
                12,
                18,
            ],
        },
        maintenance_window={
            "time": "09:00:00",
            "day_of_the_week": "Sunday",
        },
        credentials={
            "username": "cacheuser",
            "password": {
                "algorithm": "SHA-256",
                "hash": "5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8",
            },
        })
    
    package main
    
    import (
    	"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/compute"
    	"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/dbaas"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := compute.NewDatacenter(ctx, "example", &compute.DatacenterArgs{
    			Name:     pulumi.String("example"),
    			Location: pulumi.String("de/txl"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleLan, err := compute.NewLan(ctx, "example", &compute.LanArgs{
    			DatacenterId: example.ID(),
    			Public:       pulumi.Bool(false),
    			Name:         pulumi.String("example"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = dbaas.NewInMemoryDBClusterV2(ctx, "example", &dbaas.InMemoryDBClusterV2Args{
    			Location:        pulumi.String("de/txl"),
    			Name:            pulumi.String("my-inmemorydb-cluster"),
    			Description:     pulumi.String("InMemoryDB cluster"),
    			Version:         pulumi.String("9.0"),
    			PersistenceMode: pulumi.String("RDB"),
    			EvictionPolicy:  pulumi.String("allkeys-lru"),
    			LogsEnabled:     pulumi.Bool(true),
    			MetricsEnabled:  pulumi.Bool(true),
    			Instances: &dbaas.InMemoryDBClusterV2InstancesArgs{
    				Count: pulumi.Int(1),
    				Cores: pulumi.Int(1),
    				Ram:   pulumi.Int(4),
    			},
    			Connections: &dbaas.InMemoryDBClusterV2ConnectionsArgs{
    				Datacenter_id:            example.ID(),
    				Lan_id:                   exampleLan.ID(),
    				Primary_instance_address: "192.168.2.101/24",
    			},
    			Snapshot: &dbaas.InMemoryDBClusterV2SnapshotArgs{
    				Location:       pulumi.String("eu-central-3"),
    				Retention_days: 7,
    				Snapshot_hours: []int{
    					0,
    					6,
    					12,
    					18,
    				},
    			},
    			MaintenanceWindow: &dbaas.InMemoryDBClusterV2MaintenanceWindowArgs{
    				Time:            pulumi.String("09:00:00"),
    				Day_of_the_week: "Sunday",
    			},
    			Credentials: &dbaas.InMemoryDBClusterV2CredentialsArgs{
    				Username: pulumi.String("cacheuser"),
    				Password: &dbaas.InMemoryDBClusterV2CredentialsPasswordArgs{
    					Algorithm: pulumi.String("SHA-256"),
    					Hash:      pulumi.String("5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ionoscloud = Ionoscloud.Pulumi.Ionoscloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Ionoscloud.Compute.Datacenter("example", new()
        {
            Name = "example",
            Location = "de/txl",
        });
    
        var exampleLan = new Ionoscloud.Compute.Lan("example", new()
        {
            DatacenterId = example.Id,
            Public = false,
            Name = "example",
        });
    
        var exampleInMemoryDBClusterV2 = new Ionoscloud.Dbaas.InMemoryDBClusterV2("example", new()
        {
            Location = "de/txl",
            Name = "my-inmemorydb-cluster",
            Description = "InMemoryDB cluster",
            Version = "9.0",
            PersistenceMode = "RDB",
            EvictionPolicy = "allkeys-lru",
            LogsEnabled = true,
            MetricsEnabled = true,
            Instances = new Ionoscloud.Dbaas.Inputs.InMemoryDBClusterV2InstancesArgs
            {
                Count = 1,
                Cores = 1,
                Ram = 4,
            },
            Connections = new Ionoscloud.Dbaas.Inputs.InMemoryDBClusterV2ConnectionsArgs
            {
                Datacenter_id = example.Id,
                Lan_id = exampleLan.Id,
                Primary_instance_address = "192.168.2.101/24",
            },
            Snapshot = new Ionoscloud.Dbaas.Inputs.InMemoryDBClusterV2SnapshotArgs
            {
                Location = "eu-central-3",
                Retention_days = 7,
                Snapshot_hours = new[]
                {
                    0,
                    6,
                    12,
                    18,
                },
            },
            MaintenanceWindow = new Ionoscloud.Dbaas.Inputs.InMemoryDBClusterV2MaintenanceWindowArgs
            {
                Time = "09:00:00",
                Day_of_the_week = "Sunday",
            },
            Credentials = new Ionoscloud.Dbaas.Inputs.InMemoryDBClusterV2CredentialsArgs
            {
                Username = "cacheuser",
                Password = new Ionoscloud.Dbaas.Inputs.InMemoryDBClusterV2CredentialsPasswordArgs
                {
                    Algorithm = "SHA-256",
                    Hash = "5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.ionoscloud.pulumi.ionoscloud.compute.Datacenter;
    import com.ionoscloud.pulumi.ionoscloud.compute.DatacenterArgs;
    import com.ionoscloud.pulumi.ionoscloud.compute.Lan;
    import com.ionoscloud.pulumi.ionoscloud.compute.LanArgs;
    import com.ionoscloud.pulumi.ionoscloud.dbaas.InMemoryDBClusterV2;
    import com.ionoscloud.pulumi.ionoscloud.dbaas.InMemoryDBClusterV2Args;
    import com.pulumi.ionoscloud.dbaas.inputs.InMemoryDBClusterV2InstancesArgs;
    import com.pulumi.ionoscloud.dbaas.inputs.InMemoryDBClusterV2ConnectionsArgs;
    import com.pulumi.ionoscloud.dbaas.inputs.InMemoryDBClusterV2SnapshotArgs;
    import com.pulumi.ionoscloud.dbaas.inputs.InMemoryDBClusterV2MaintenanceWindowArgs;
    import com.pulumi.ionoscloud.dbaas.inputs.InMemoryDBClusterV2CredentialsArgs;
    import com.pulumi.ionoscloud.dbaas.inputs.InMemoryDBClusterV2CredentialsPasswordArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            var example = new Datacenter("example", DatacenterArgs.builder()
                .name("example")
                .location("de/txl")
                .build());
    
            var exampleLan = new Lan("exampleLan", LanArgs.builder()
                .datacenterId(example.id())
                .public_(false)
                .name("example")
                .build());
    
            var exampleInMemoryDBClusterV2 = new InMemoryDBClusterV2("exampleInMemoryDBClusterV2", InMemoryDBClusterV2Args.builder()
                .location("de/txl")
                .name("my-inmemorydb-cluster")
                .description("InMemoryDB cluster")
                .version("9.0")
                .persistenceMode("RDB")
                .evictionPolicy("allkeys-lru")
                .logsEnabled(true)
                .metricsEnabled(true)
                .instances(InMemoryDBClusterV2InstancesArgs.builder()
                    .count(1)
                    .cores(1)
                    .ram(4)
                    .build())
                .connections(InMemoryDBClusterV2ConnectionsArgs.builder()
                    .datacenter_id(example.id())
                    .lan_id(exampleLan.id())
                    .primary_instance_address("192.168.2.101/24")
                    .build())
                .snapshot(InMemoryDBClusterV2SnapshotArgs.builder()
                    .location("eu-central-3")
                    .retention_days(7)
                    .snapshot_hours(Arrays.asList(                
                        0,
                        6,
                        12,
                        18))
                    .build())
                .maintenanceWindow(InMemoryDBClusterV2MaintenanceWindowArgs.builder()
                    .time("09:00:00")
                    .day_of_the_week("Sunday")
                    .build())
                .credentials(InMemoryDBClusterV2CredentialsArgs.builder()
                    .username("cacheuser")
                    .password(InMemoryDBClusterV2CredentialsPasswordArgs.builder()
                        .algorithm("SHA-256")
                        .hash("5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: ionoscloud:compute:Datacenter
        properties:
          name: example
          location: de/txl
      exampleLan:
        type: ionoscloud:compute:Lan
        name: example
        properties:
          datacenterId: ${example.id}
          public: false
          name: example
      exampleInMemoryDBClusterV2:
        type: ionoscloud:dbaas:InMemoryDBClusterV2
        name: example
        properties:
          location: de/txl
          name: my-inmemorydb-cluster
          description: InMemoryDB cluster
          version: '9.0'
          persistenceMode: RDB
          evictionPolicy: allkeys-lru
          logsEnabled: true
          metricsEnabled: true
          instances:
            count: 1
            cores: 1
            ram: 4
          connections:
            datacenter_id: ${example.id}
            lan_id: ${exampleLan.id}
            primary_instance_address: 192.168.2.101/24
          snapshot:
            location: eu-central-3
            retention_days: 7
            snapshot_hours:
              - 0
              - 6
              - 12
              - 18
          maintenanceWindow:
            time: 09:00:00
            day_of_the_week: Sunday
          credentials:
            username: cacheuser
            password:
              algorithm: SHA-256
              hash: 5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8
    
    pulumi {
      required_providers {
        ionoscloud = {
          source = "pulumi/ionoscloud"
        }
      }
    }
    
    resource "ionoscloud_compute_datacenter" "example" {
      name     = "example"
      location = "de/txl"
    }
    resource "ionoscloud_compute_lan" "example" {
      datacenter_id = ionoscloud_compute_datacenter.example.id
      public        = false
      name          = "example"
    }
    resource "ionoscloud_dbaas_inmemorydbclusterv2" "example" {
      location         = "de/txl"
      name             = "my-inmemorydb-cluster"
      description      = "InMemoryDB cluster"
      version          = "9.0"
      persistence_mode = "RDB"
      eviction_policy  = "allkeys-lru"
      logs_enabled     = true
      metrics_enabled  = true
      instances = {
        count = 1
        cores = 1
        ram   = 4
      }
      connections = {
        datacenter_id            = ionoscloud_compute_datacenter.example.id
        lan_id                   = ionoscloud_compute_lan.example.id
        primary_instance_address = "192.168.2.101/24"
      }
      snapshot = {
        location       = "eu-central-3"
        retention_days = 7
        snapshot_hours = [0, 6, 12, 18]
      }
      maintenance_window = {
        time            = "09:00:00"
        day_of_the_week = "Sunday"
      }
      credentials = {
        username = "cacheuser"
        password = {
          algorithm = "SHA-256"
          hash      = "5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8"
        }
      }
    }
    

    Create InMemoryDBClusterV2 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new InMemoryDBClusterV2(name: string, args: InMemoryDBClusterV2Args, opts?: CustomResourceOptions);
    @overload
    def InMemoryDBClusterV2(resource_name: str,
                            args: InMemoryDBClusterV2Args,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def InMemoryDBClusterV2(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            snapshot: Optional[InMemoryDBClusterV2SnapshotArgs] = None,
                            credentials: Optional[InMemoryDBClusterV2CredentialsArgs] = None,
                            version: Optional[str] = None,
                            eviction_policy: Optional[str] = None,
                            instances: Optional[InMemoryDBClusterV2InstancesArgs] = None,
                            location: Optional[str] = None,
                            connections: Optional[InMemoryDBClusterV2ConnectionsArgs] = None,
                            maintenance_window: Optional[InMemoryDBClusterV2MaintenanceWindowArgs] = None,
                            logs_enabled: Optional[bool] = None,
                            name: Optional[str] = None,
                            persistence_mode: Optional[str] = None,
                            restore_from_snapshot: Optional[InMemoryDBClusterV2RestoreFromSnapshotArgs] = None,
                            metrics_enabled: Optional[bool] = None,
                            timeouts: Optional[InMemoryDBClusterV2TimeoutsArgs] = None,
                            description: Optional[str] = None)
    func NewInMemoryDBClusterV2(ctx *Context, name string, args InMemoryDBClusterV2Args, opts ...ResourceOption) (*InMemoryDBClusterV2, error)
    public InMemoryDBClusterV2(string name, InMemoryDBClusterV2Args args, CustomResourceOptions? opts = null)
    public InMemoryDBClusterV2(String name, InMemoryDBClusterV2Args args)
    public InMemoryDBClusterV2(String name, InMemoryDBClusterV2Args args, CustomResourceOptions options)
    
    type: ionoscloud:dbaas:InMemoryDBClusterV2
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "ionoscloud_dbaas_in_memory_d_b_cluster_v2" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args InMemoryDBClusterV2Args
    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 InMemoryDBClusterV2Args
    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 InMemoryDBClusterV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InMemoryDBClusterV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InMemoryDBClusterV2Args
    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 inMemoryDBClusterV2Resource = new Ionoscloud.Dbaas.InMemoryDBClusterV2("inMemoryDBClusterV2Resource", new()
    {
        Snapshot = new Ionoscloud.Dbaas.Inputs.InMemoryDBClusterV2SnapshotArgs
        {
            Location = "string",
            RetentionDays = 0,
            SnapshotHours = new[]
            {
                0,
            },
        },
        Credentials = new Ionoscloud.Dbaas.Inputs.InMemoryDBClusterV2CredentialsArgs
        {
            Password = new Ionoscloud.Dbaas.Inputs.InMemoryDBClusterV2CredentialsPasswordArgs
            {
                Algorithm = "string",
                Hash = "string",
            },
            Username = "string",
        },
        Version = "string",
        EvictionPolicy = "string",
        Instances = new Ionoscloud.Dbaas.Inputs.InMemoryDBClusterV2InstancesArgs
        {
            Cores = 0,
            Count = 0,
            Ram = 0,
        },
        Location = "string",
        Connections = new Ionoscloud.Dbaas.Inputs.InMemoryDBClusterV2ConnectionsArgs
        {
            DatacenterId = "string",
            LanId = "string",
            PrimaryInstanceAddress = "string",
        },
        MaintenanceWindow = new Ionoscloud.Dbaas.Inputs.InMemoryDBClusterV2MaintenanceWindowArgs
        {
            DayOfTheWeek = "string",
            Time = "string",
        },
        LogsEnabled = false,
        Name = "string",
        PersistenceMode = "string",
        RestoreFromSnapshot = new Ionoscloud.Dbaas.Inputs.InMemoryDBClusterV2RestoreFromSnapshotArgs
        {
            RecoveryTargetDatetime = "string",
            SourceSnapshotId = "string",
        },
        MetricsEnabled = false,
        Timeouts = new Ionoscloud.Dbaas.Inputs.InMemoryDBClusterV2TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        Description = "string",
    });
    
    example, err := dbaas.NewInMemoryDBClusterV2(ctx, "inMemoryDBClusterV2Resource", &dbaas.InMemoryDBClusterV2Args{
    	Snapshot: &dbaas.InMemoryDBClusterV2SnapshotArgs{
    		Location:      pulumi.String("string"),
    		RetentionDays: pulumi.Int(0),
    		SnapshotHours: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    	},
    	Credentials: &dbaas.InMemoryDBClusterV2CredentialsArgs{
    		Password: &dbaas.InMemoryDBClusterV2CredentialsPasswordArgs{
    			Algorithm: pulumi.String("string"),
    			Hash:      pulumi.String("string"),
    		},
    		Username: pulumi.String("string"),
    	},
    	Version:        pulumi.String("string"),
    	EvictionPolicy: pulumi.String("string"),
    	Instances: &dbaas.InMemoryDBClusterV2InstancesArgs{
    		Cores: pulumi.Int(0),
    		Count: pulumi.Int(0),
    		Ram:   pulumi.Int(0),
    	},
    	Location: pulumi.String("string"),
    	Connections: &dbaas.InMemoryDBClusterV2ConnectionsArgs{
    		DatacenterId:           pulumi.String("string"),
    		LanId:                  pulumi.String("string"),
    		PrimaryInstanceAddress: pulumi.String("string"),
    	},
    	MaintenanceWindow: &dbaas.InMemoryDBClusterV2MaintenanceWindowArgs{
    		DayOfTheWeek: pulumi.String("string"),
    		Time:         pulumi.String("string"),
    	},
    	LogsEnabled:     pulumi.Bool(false),
    	Name:            pulumi.String("string"),
    	PersistenceMode: pulumi.String("string"),
    	RestoreFromSnapshot: &dbaas.InMemoryDBClusterV2RestoreFromSnapshotArgs{
    		RecoveryTargetDatetime: pulumi.String("string"),
    		SourceSnapshotId:       pulumi.String("string"),
    	},
    	MetricsEnabled: pulumi.Bool(false),
    	Timeouts: &dbaas.InMemoryDBClusterV2TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    })
    
    resource "ionoscloud_dbaas_in_memory_d_b_cluster_v2" "inMemoryDBClusterV2Resource" {
      lifecycle {
        create_before_destroy = true
      }
      snapshot = {
        location       = "string"
        retention_days = 0
        snapshot_hours = [0]
      }
      credentials = {
        password = {
          algorithm = "string"
          hash      = "string"
        }
        username = "string"
      }
      version         = "string"
      eviction_policy = "string"
      instances = {
        cores = 0
        count = 0
        ram   = 0
      }
      location = "string"
      connections = {
        datacenter_id            = "string"
        lan_id                   = "string"
        primary_instance_address = "string"
      }
      maintenance_window = {
        day_of_the_week = "string"
        time            = "string"
      }
      logs_enabled     = false
      name             = "string"
      persistence_mode = "string"
      restore_from_snapshot = {
        recovery_target_datetime = "string"
        source_snapshot_id       = "string"
      }
      metrics_enabled = false
      timeouts = {
        create = "string"
        delete = "string"
        update = "string"
      }
      description = "string"
    }
    
    var inMemoryDBClusterV2Resource = new InMemoryDBClusterV2("inMemoryDBClusterV2Resource", InMemoryDBClusterV2Args.builder()
        .snapshot(InMemoryDBClusterV2SnapshotArgs.builder()
            .location("string")
            .retentionDays(0)
            .snapshotHours(0)
            .build())
        .credentials(InMemoryDBClusterV2CredentialsArgs.builder()
            .password(InMemoryDBClusterV2CredentialsPasswordArgs.builder()
                .algorithm("string")
                .hash("string")
                .build())
            .username("string")
            .build())
        .version("string")
        .evictionPolicy("string")
        .instances(InMemoryDBClusterV2InstancesArgs.builder()
            .cores(0)
            .count(0)
            .ram(0)
            .build())
        .location("string")
        .connections(InMemoryDBClusterV2ConnectionsArgs.builder()
            .datacenterId("string")
            .lanId("string")
            .primaryInstanceAddress("string")
            .build())
        .maintenanceWindow(InMemoryDBClusterV2MaintenanceWindowArgs.builder()
            .dayOfTheWeek("string")
            .time("string")
            .build())
        .logsEnabled(false)
        .name("string")
        .persistenceMode("string")
        .restoreFromSnapshot(InMemoryDBClusterV2RestoreFromSnapshotArgs.builder()
            .recoveryTargetDatetime("string")
            .sourceSnapshotId("string")
            .build())
        .metricsEnabled(false)
        .timeouts(InMemoryDBClusterV2TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .description("string")
        .build());
    
    in_memory_db_cluster_v2_resource = ionoscloud.dbaas.InMemoryDBClusterV2("inMemoryDBClusterV2Resource",
        snapshot={
            "location": "string",
            "retention_days": 0,
            "snapshot_hours": [0],
        },
        credentials={
            "password": {
                "algorithm": "string",
                "hash": "string",
            },
            "username": "string",
        },
        version="string",
        eviction_policy="string",
        instances={
            "cores": 0,
            "count": 0,
            "ram": 0,
        },
        location="string",
        connections={
            "datacenter_id": "string",
            "lan_id": "string",
            "primary_instance_address": "string",
        },
        maintenance_window={
            "day_of_the_week": "string",
            "time": "string",
        },
        logs_enabled=False,
        name="string",
        persistence_mode="string",
        restore_from_snapshot={
            "recovery_target_datetime": "string",
            "source_snapshot_id": "string",
        },
        metrics_enabled=False,
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        description="string")
    
    const inMemoryDBClusterV2Resource = new ionoscloud.dbaas.InMemoryDBClusterV2("inMemoryDBClusterV2Resource", {
        snapshot: {
            location: "string",
            retentionDays: 0,
            snapshotHours: [0],
        },
        credentials: {
            password: {
                algorithm: "string",
                hash: "string",
            },
            username: "string",
        },
        version: "string",
        evictionPolicy: "string",
        instances: {
            cores: 0,
            count: 0,
            ram: 0,
        },
        location: "string",
        connections: {
            datacenterId: "string",
            lanId: "string",
            primaryInstanceAddress: "string",
        },
        maintenanceWindow: {
            dayOfTheWeek: "string",
            time: "string",
        },
        logsEnabled: false,
        name: "string",
        persistenceMode: "string",
        restoreFromSnapshot: {
            recoveryTargetDatetime: "string",
            sourceSnapshotId: "string",
        },
        metricsEnabled: false,
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        description: "string",
    });
    
    type: ionoscloud:dbaas:InMemoryDBClusterV2
    properties:
        connections:
            datacenterId: string
            lanId: string
            primaryInstanceAddress: string
        credentials:
            password:
                algorithm: string
                hash: string
            username: string
        description: string
        evictionPolicy: string
        instances:
            cores: 0
            count: 0
            ram: 0
        location: string
        logsEnabled: false
        maintenanceWindow:
            dayOfTheWeek: string
            time: string
        metricsEnabled: false
        name: string
        persistenceMode: string
        restoreFromSnapshot:
            recoveryTargetDatetime: string
            sourceSnapshotId: string
        snapshot:
            location: string
            retentionDays: 0
            snapshotHours:
                - 0
        timeouts:
            create: string
            delete: string
            update: string
        version: string
    

    InMemoryDBClusterV2 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 InMemoryDBClusterV2 resource accepts the following input properties:

    Connections Ionoscloud.InMemoryDBClusterV2Connections
    [object] The network connection for your cluster. Only one connection is allowed.
    Credentials Ionoscloud.InMemoryDBClusterV2Credentials
    [object] Credentials for the InMemoryDB cluster user.
    EvictionPolicy string
    [string] Key eviction strategy: noeviction, allkeys-lru, allkeys-lfu, allkeys-random, volatile-lru, volatile-lfu, volatile-random, volatile-ttl.
    Instances Ionoscloud.InMemoryDBClusterV2Instances
    [object] The instance sizing configuration.
    Location string
    [string] The location of the cluster. Changing this forces a new resource. Available: de/fra, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    MaintenanceWindow Ionoscloud.InMemoryDBClusterV2MaintenanceWindow
    [object] A weekly 4 hour-long window, during which maintenance might occur.
    Snapshot Ionoscloud.InMemoryDBClusterV2Snapshot
    [object] Snapshot configuration.
    Version string
    [string] The InMemoryDB version. Upgrades only (see /versions endpoint).
    Description string
    [string] Human-readable description.
    LogsEnabled bool
    (Computed)[bool] Enable log collection for observability. If not set, the API default is used.
    MetricsEnabled bool
    (Computed)[bool] Enable metrics collection for observability. If not set, the API default is used.
    Name string
    [string] Cluster name (2–63 alphanumeric chars with dashes, underscores, dots).
    PersistenceMode string
    (Computed)[string] Data persistence mode: None, AOF, RDB, RDB_AOF. If not set, the API default is used.
    RestoreFromSnapshot Ionoscloud.InMemoryDBClusterV2RestoreFromSnapshot
    [object] Restore configuration from a snapshot.
    Timeouts Ionoscloud.InMemoryDBClusterV2Timeouts
    Standard Terraform timeouts: create, update, delete.
    Connections InMemoryDBClusterV2ConnectionsArgs
    [object] The network connection for your cluster. Only one connection is allowed.
    Credentials InMemoryDBClusterV2CredentialsArgs
    [object] Credentials for the InMemoryDB cluster user.
    EvictionPolicy string
    [string] Key eviction strategy: noeviction, allkeys-lru, allkeys-lfu, allkeys-random, volatile-lru, volatile-lfu, volatile-random, volatile-ttl.
    Instances InMemoryDBClusterV2InstancesArgs
    [object] The instance sizing configuration.
    Location string
    [string] The location of the cluster. Changing this forces a new resource. Available: de/fra, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    MaintenanceWindow InMemoryDBClusterV2MaintenanceWindowArgs
    [object] A weekly 4 hour-long window, during which maintenance might occur.
    Snapshot InMemoryDBClusterV2SnapshotArgs
    [object] Snapshot configuration.
    Version string
    [string] The InMemoryDB version. Upgrades only (see /versions endpoint).
    Description string
    [string] Human-readable description.
    LogsEnabled bool
    (Computed)[bool] Enable log collection for observability. If not set, the API default is used.
    MetricsEnabled bool
    (Computed)[bool] Enable metrics collection for observability. If not set, the API default is used.
    Name string
    [string] Cluster name (2–63 alphanumeric chars with dashes, underscores, dots).
    PersistenceMode string
    (Computed)[string] Data persistence mode: None, AOF, RDB, RDB_AOF. If not set, the API default is used.
    RestoreFromSnapshot InMemoryDBClusterV2RestoreFromSnapshotArgs
    [object] Restore configuration from a snapshot.
    Timeouts InMemoryDBClusterV2TimeoutsArgs
    Standard Terraform timeouts: create, update, delete.
    connections object
    [object] The network connection for your cluster. Only one connection is allowed.
    credentials object
    [object] Credentials for the InMemoryDB cluster user.
    eviction_policy string
    [string] Key eviction strategy: noeviction, allkeys-lru, allkeys-lfu, allkeys-random, volatile-lru, volatile-lfu, volatile-random, volatile-ttl.
    instances object
    [object] The instance sizing configuration.
    location string
    [string] The location of the cluster. Changing this forces a new resource. Available: de/fra, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    maintenance_window object
    [object] A weekly 4 hour-long window, during which maintenance might occur.
    snapshot object
    [object] Snapshot configuration.
    version string
    [string] The InMemoryDB version. Upgrades only (see /versions endpoint).
    description string
    [string] Human-readable description.
    logs_enabled bool
    (Computed)[bool] Enable log collection for observability. If not set, the API default is used.
    metrics_enabled bool
    (Computed)[bool] Enable metrics collection for observability. If not set, the API default is used.
    name string
    [string] Cluster name (2–63 alphanumeric chars with dashes, underscores, dots).
    persistence_mode string
    (Computed)[string] Data persistence mode: None, AOF, RDB, RDB_AOF. If not set, the API default is used.
    restore_from_snapshot object
    [object] Restore configuration from a snapshot.
    timeouts object
    Standard Terraform timeouts: create, update, delete.
    connections InMemoryDBClusterV2Connections
    [object] The network connection for your cluster. Only one connection is allowed.
    credentials InMemoryDBClusterV2Credentials
    [object] Credentials for the InMemoryDB cluster user.
    evictionPolicy String
    [string] Key eviction strategy: noeviction, allkeys-lru, allkeys-lfu, allkeys-random, volatile-lru, volatile-lfu, volatile-random, volatile-ttl.
    instances InMemoryDBClusterV2Instances
    [object] The instance sizing configuration.
    location String
    [string] The location of the cluster. Changing this forces a new resource. Available: de/fra, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    maintenanceWindow InMemoryDBClusterV2MaintenanceWindow
    [object] A weekly 4 hour-long window, during which maintenance might occur.
    snapshot InMemoryDBClusterV2Snapshot
    [object] Snapshot configuration.
    version String
    [string] The InMemoryDB version. Upgrades only (see /versions endpoint).
    description String
    [string] Human-readable description.
    logsEnabled Boolean
    (Computed)[bool] Enable log collection for observability. If not set, the API default is used.
    metricsEnabled Boolean
    (Computed)[bool] Enable metrics collection for observability. If not set, the API default is used.
    name String
    [string] Cluster name (2–63 alphanumeric chars with dashes, underscores, dots).
    persistenceMode String
    (Computed)[string] Data persistence mode: None, AOF, RDB, RDB_AOF. If not set, the API default is used.
    restoreFromSnapshot InMemoryDBClusterV2RestoreFromSnapshot
    [object] Restore configuration from a snapshot.
    timeouts InMemoryDBClusterV2Timeouts
    Standard Terraform timeouts: create, update, delete.
    connections InMemoryDBClusterV2Connections
    [object] The network connection for your cluster. Only one connection is allowed.
    credentials InMemoryDBClusterV2Credentials
    [object] Credentials for the InMemoryDB cluster user.
    evictionPolicy string
    [string] Key eviction strategy: noeviction, allkeys-lru, allkeys-lfu, allkeys-random, volatile-lru, volatile-lfu, volatile-random, volatile-ttl.
    instances InMemoryDBClusterV2Instances
    [object] The instance sizing configuration.
    location string
    [string] The location of the cluster. Changing this forces a new resource. Available: de/fra, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    maintenanceWindow InMemoryDBClusterV2MaintenanceWindow
    [object] A weekly 4 hour-long window, during which maintenance might occur.
    snapshot InMemoryDBClusterV2Snapshot
    [object] Snapshot configuration.
    version string
    [string] The InMemoryDB version. Upgrades only (see /versions endpoint).
    description string
    [string] Human-readable description.
    logsEnabled boolean
    (Computed)[bool] Enable log collection for observability. If not set, the API default is used.
    metricsEnabled boolean
    (Computed)[bool] Enable metrics collection for observability. If not set, the API default is used.
    name string
    [string] Cluster name (2–63 alphanumeric chars with dashes, underscores, dots).
    persistenceMode string
    (Computed)[string] Data persistence mode: None, AOF, RDB, RDB_AOF. If not set, the API default is used.
    restoreFromSnapshot InMemoryDBClusterV2RestoreFromSnapshot
    [object] Restore configuration from a snapshot.
    timeouts InMemoryDBClusterV2Timeouts
    Standard Terraform timeouts: create, update, delete.
    connections InMemoryDBClusterV2ConnectionsArgs
    [object] The network connection for your cluster. Only one connection is allowed.
    credentials InMemoryDBClusterV2CredentialsArgs
    [object] Credentials for the InMemoryDB cluster user.
    eviction_policy str
    [string] Key eviction strategy: noeviction, allkeys-lru, allkeys-lfu, allkeys-random, volatile-lru, volatile-lfu, volatile-random, volatile-ttl.
    instances InMemoryDBClusterV2InstancesArgs
    [object] The instance sizing configuration.
    location str
    [string] The location of the cluster. Changing this forces a new resource. Available: de/fra, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    maintenance_window InMemoryDBClusterV2MaintenanceWindowArgs
    [object] A weekly 4 hour-long window, during which maintenance might occur.
    snapshot InMemoryDBClusterV2SnapshotArgs
    [object] Snapshot configuration.
    version str
    [string] The InMemoryDB version. Upgrades only (see /versions endpoint).
    description str
    [string] Human-readable description.
    logs_enabled bool
    (Computed)[bool] Enable log collection for observability. If not set, the API default is used.
    metrics_enabled bool
    (Computed)[bool] Enable metrics collection for observability. If not set, the API default is used.
    name str
    [string] Cluster name (2–63 alphanumeric chars with dashes, underscores, dots).
    persistence_mode str
    (Computed)[string] Data persistence mode: None, AOF, RDB, RDB_AOF. If not set, the API default is used.
    restore_from_snapshot InMemoryDBClusterV2RestoreFromSnapshotArgs
    [object] Restore configuration from a snapshot.
    timeouts InMemoryDBClusterV2TimeoutsArgs
    Standard Terraform timeouts: create, update, delete.
    connections Property Map
    [object] The network connection for your cluster. Only one connection is allowed.
    credentials Property Map
    [object] Credentials for the InMemoryDB cluster user.
    evictionPolicy String
    [string] Key eviction strategy: noeviction, allkeys-lru, allkeys-lfu, allkeys-random, volatile-lru, volatile-lfu, volatile-random, volatile-ttl.
    instances Property Map
    [object] The instance sizing configuration.
    location String
    [string] The location of the cluster. Changing this forces a new resource. Available: de/fra, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    maintenanceWindow Property Map
    [object] A weekly 4 hour-long window, during which maintenance might occur.
    snapshot Property Map
    [object] Snapshot configuration.
    version String
    [string] The InMemoryDB version. Upgrades only (see /versions endpoint).
    description String
    [string] Human-readable description.
    logsEnabled Boolean
    (Computed)[bool] Enable log collection for observability. If not set, the API default is used.
    metricsEnabled Boolean
    (Computed)[bool] Enable metrics collection for observability. If not set, the API default is used.
    name String
    [string] Cluster name (2–63 alphanumeric chars with dashes, underscores, dots).
    persistenceMode String
    (Computed)[string] Data persistence mode: None, AOF, RDB, RDB_AOF. If not set, the API default is used.
    restoreFromSnapshot Property Map
    [object] Restore configuration from a snapshot.
    timeouts Property Map
    Standard Terraform timeouts: create, update, delete.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the InMemoryDBClusterV2 resource produces the following output properties:

    DnsName string
    The DNS name for connecting to the cluster's primary instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    DnsName string
    The DNS name for connecting to the cluster's primary instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    dns_name string
    The DNS name for connecting to the cluster's primary instance.
    id string
    The provider-assigned unique ID for this managed resource.
    dnsName String
    The DNS name for connecting to the cluster's primary instance.
    id String
    The provider-assigned unique ID for this managed resource.
    dnsName string
    The DNS name for connecting to the cluster's primary instance.
    id string
    The provider-assigned unique ID for this managed resource.
    dns_name str
    The DNS name for connecting to the cluster's primary instance.
    id str
    The provider-assigned unique ID for this managed resource.
    dnsName String
    The DNS name for connecting to the cluster's primary instance.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing InMemoryDBClusterV2 Resource

    Get an existing InMemoryDBClusterV2 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?: InMemoryDBClusterV2State, opts?: CustomResourceOptions): InMemoryDBClusterV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            connections: Optional[InMemoryDBClusterV2ConnectionsArgs] = None,
            credentials: Optional[InMemoryDBClusterV2CredentialsArgs] = None,
            description: Optional[str] = None,
            dns_name: Optional[str] = None,
            eviction_policy: Optional[str] = None,
            instances: Optional[InMemoryDBClusterV2InstancesArgs] = None,
            location: Optional[str] = None,
            logs_enabled: Optional[bool] = None,
            maintenance_window: Optional[InMemoryDBClusterV2MaintenanceWindowArgs] = None,
            metrics_enabled: Optional[bool] = None,
            name: Optional[str] = None,
            persistence_mode: Optional[str] = None,
            restore_from_snapshot: Optional[InMemoryDBClusterV2RestoreFromSnapshotArgs] = None,
            snapshot: Optional[InMemoryDBClusterV2SnapshotArgs] = None,
            timeouts: Optional[InMemoryDBClusterV2TimeoutsArgs] = None,
            version: Optional[str] = None) -> InMemoryDBClusterV2
    func GetInMemoryDBClusterV2(ctx *Context, name string, id IDInput, state *InMemoryDBClusterV2State, opts ...ResourceOption) (*InMemoryDBClusterV2, error)
    public static InMemoryDBClusterV2 Get(string name, Input<string> id, InMemoryDBClusterV2State? state, CustomResourceOptions? opts = null)
    public static InMemoryDBClusterV2 get(String name, Output<String> id, InMemoryDBClusterV2State state, CustomResourceOptions options)
    resources:  _:    type: ionoscloud:dbaas:InMemoryDBClusterV2    get:      id: ${id}
    import {
      to = ionoscloud_dbaas_in_memory_d_b_cluster_v2.example
      id = "${id}"
    }
    
    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.
    The following state arguments are supported:
    Connections Ionoscloud.InMemoryDBClusterV2Connections
    [object] The network connection for your cluster. Only one connection is allowed.
    Credentials Ionoscloud.InMemoryDBClusterV2Credentials
    [object] Credentials for the InMemoryDB cluster user.
    Description string
    [string] Human-readable description.
    DnsName string
    The DNS name for connecting to the cluster's primary instance.
    EvictionPolicy string
    [string] Key eviction strategy: noeviction, allkeys-lru, allkeys-lfu, allkeys-random, volatile-lru, volatile-lfu, volatile-random, volatile-ttl.
    Instances Ionoscloud.InMemoryDBClusterV2Instances
    [object] The instance sizing configuration.
    Location string
    [string] The location of the cluster. Changing this forces a new resource. Available: de/fra, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    LogsEnabled bool
    (Computed)[bool] Enable log collection for observability. If not set, the API default is used.
    MaintenanceWindow Ionoscloud.InMemoryDBClusterV2MaintenanceWindow
    [object] A weekly 4 hour-long window, during which maintenance might occur.
    MetricsEnabled bool
    (Computed)[bool] Enable metrics collection for observability. If not set, the API default is used.
    Name string
    [string] Cluster name (2–63 alphanumeric chars with dashes, underscores, dots).
    PersistenceMode string
    (Computed)[string] Data persistence mode: None, AOF, RDB, RDB_AOF. If not set, the API default is used.
    RestoreFromSnapshot Ionoscloud.InMemoryDBClusterV2RestoreFromSnapshot
    [object] Restore configuration from a snapshot.
    Snapshot Ionoscloud.InMemoryDBClusterV2Snapshot
    [object] Snapshot configuration.
    Timeouts Ionoscloud.InMemoryDBClusterV2Timeouts
    Standard Terraform timeouts: create, update, delete.
    Version string
    [string] The InMemoryDB version. Upgrades only (see /versions endpoint).
    Connections InMemoryDBClusterV2ConnectionsArgs
    [object] The network connection for your cluster. Only one connection is allowed.
    Credentials InMemoryDBClusterV2CredentialsArgs
    [object] Credentials for the InMemoryDB cluster user.
    Description string
    [string] Human-readable description.
    DnsName string
    The DNS name for connecting to the cluster's primary instance.
    EvictionPolicy string
    [string] Key eviction strategy: noeviction, allkeys-lru, allkeys-lfu, allkeys-random, volatile-lru, volatile-lfu, volatile-random, volatile-ttl.
    Instances InMemoryDBClusterV2InstancesArgs
    [object] The instance sizing configuration.
    Location string
    [string] The location of the cluster. Changing this forces a new resource. Available: de/fra, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    LogsEnabled bool
    (Computed)[bool] Enable log collection for observability. If not set, the API default is used.
    MaintenanceWindow InMemoryDBClusterV2MaintenanceWindowArgs
    [object] A weekly 4 hour-long window, during which maintenance might occur.
    MetricsEnabled bool
    (Computed)[bool] Enable metrics collection for observability. If not set, the API default is used.
    Name string
    [string] Cluster name (2–63 alphanumeric chars with dashes, underscores, dots).
    PersistenceMode string
    (Computed)[string] Data persistence mode: None, AOF, RDB, RDB_AOF. If not set, the API default is used.
    RestoreFromSnapshot InMemoryDBClusterV2RestoreFromSnapshotArgs
    [object] Restore configuration from a snapshot.
    Snapshot InMemoryDBClusterV2SnapshotArgs
    [object] Snapshot configuration.
    Timeouts InMemoryDBClusterV2TimeoutsArgs
    Standard Terraform timeouts: create, update, delete.
    Version string
    [string] The InMemoryDB version. Upgrades only (see /versions endpoint).
    connections object
    [object] The network connection for your cluster. Only one connection is allowed.
    credentials object
    [object] Credentials for the InMemoryDB cluster user.
    description string
    [string] Human-readable description.
    dns_name string
    The DNS name for connecting to the cluster's primary instance.
    eviction_policy string
    [string] Key eviction strategy: noeviction, allkeys-lru, allkeys-lfu, allkeys-random, volatile-lru, volatile-lfu, volatile-random, volatile-ttl.
    instances object
    [object] The instance sizing configuration.
    location string
    [string] The location of the cluster. Changing this forces a new resource. Available: de/fra, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    logs_enabled bool
    (Computed)[bool] Enable log collection for observability. If not set, the API default is used.
    maintenance_window object
    [object] A weekly 4 hour-long window, during which maintenance might occur.
    metrics_enabled bool
    (Computed)[bool] Enable metrics collection for observability. If not set, the API default is used.
    name string
    [string] Cluster name (2–63 alphanumeric chars with dashes, underscores, dots).
    persistence_mode string
    (Computed)[string] Data persistence mode: None, AOF, RDB, RDB_AOF. If not set, the API default is used.
    restore_from_snapshot object
    [object] Restore configuration from a snapshot.
    snapshot object
    [object] Snapshot configuration.
    timeouts object
    Standard Terraform timeouts: create, update, delete.
    version string
    [string] The InMemoryDB version. Upgrades only (see /versions endpoint).
    connections InMemoryDBClusterV2Connections
    [object] The network connection for your cluster. Only one connection is allowed.
    credentials InMemoryDBClusterV2Credentials
    [object] Credentials for the InMemoryDB cluster user.
    description String
    [string] Human-readable description.
    dnsName String
    The DNS name for connecting to the cluster's primary instance.
    evictionPolicy String
    [string] Key eviction strategy: noeviction, allkeys-lru, allkeys-lfu, allkeys-random, volatile-lru, volatile-lfu, volatile-random, volatile-ttl.
    instances InMemoryDBClusterV2Instances
    [object] The instance sizing configuration.
    location String
    [string] The location of the cluster. Changing this forces a new resource. Available: de/fra, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    logsEnabled Boolean
    (Computed)[bool] Enable log collection for observability. If not set, the API default is used.
    maintenanceWindow InMemoryDBClusterV2MaintenanceWindow
    [object] A weekly 4 hour-long window, during which maintenance might occur.
    metricsEnabled Boolean
    (Computed)[bool] Enable metrics collection for observability. If not set, the API default is used.
    name String
    [string] Cluster name (2–63 alphanumeric chars with dashes, underscores, dots).
    persistenceMode String
    (Computed)[string] Data persistence mode: None, AOF, RDB, RDB_AOF. If not set, the API default is used.
    restoreFromSnapshot InMemoryDBClusterV2RestoreFromSnapshot
    [object] Restore configuration from a snapshot.
    snapshot InMemoryDBClusterV2Snapshot
    [object] Snapshot configuration.
    timeouts InMemoryDBClusterV2Timeouts
    Standard Terraform timeouts: create, update, delete.
    version String
    [string] The InMemoryDB version. Upgrades only (see /versions endpoint).
    connections InMemoryDBClusterV2Connections
    [object] The network connection for your cluster. Only one connection is allowed.
    credentials InMemoryDBClusterV2Credentials
    [object] Credentials for the InMemoryDB cluster user.
    description string
    [string] Human-readable description.
    dnsName string
    The DNS name for connecting to the cluster's primary instance.
    evictionPolicy string
    [string] Key eviction strategy: noeviction, allkeys-lru, allkeys-lfu, allkeys-random, volatile-lru, volatile-lfu, volatile-random, volatile-ttl.
    instances InMemoryDBClusterV2Instances
    [object] The instance sizing configuration.
    location string
    [string] The location of the cluster. Changing this forces a new resource. Available: de/fra, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    logsEnabled boolean
    (Computed)[bool] Enable log collection for observability. If not set, the API default is used.
    maintenanceWindow InMemoryDBClusterV2MaintenanceWindow
    [object] A weekly 4 hour-long window, during which maintenance might occur.
    metricsEnabled boolean
    (Computed)[bool] Enable metrics collection for observability. If not set, the API default is used.
    name string
    [string] Cluster name (2–63 alphanumeric chars with dashes, underscores, dots).
    persistenceMode string
    (Computed)[string] Data persistence mode: None, AOF, RDB, RDB_AOF. If not set, the API default is used.
    restoreFromSnapshot InMemoryDBClusterV2RestoreFromSnapshot
    [object] Restore configuration from a snapshot.
    snapshot InMemoryDBClusterV2Snapshot
    [object] Snapshot configuration.
    timeouts InMemoryDBClusterV2Timeouts
    Standard Terraform timeouts: create, update, delete.
    version string
    [string] The InMemoryDB version. Upgrades only (see /versions endpoint).
    connections InMemoryDBClusterV2ConnectionsArgs
    [object] The network connection for your cluster. Only one connection is allowed.
    credentials InMemoryDBClusterV2CredentialsArgs
    [object] Credentials for the InMemoryDB cluster user.
    description str
    [string] Human-readable description.
    dns_name str
    The DNS name for connecting to the cluster's primary instance.
    eviction_policy str
    [string] Key eviction strategy: noeviction, allkeys-lru, allkeys-lfu, allkeys-random, volatile-lru, volatile-lfu, volatile-random, volatile-ttl.
    instances InMemoryDBClusterV2InstancesArgs
    [object] The instance sizing configuration.
    location str
    [string] The location of the cluster. Changing this forces a new resource. Available: de/fra, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    logs_enabled bool
    (Computed)[bool] Enable log collection for observability. If not set, the API default is used.
    maintenance_window InMemoryDBClusterV2MaintenanceWindowArgs
    [object] A weekly 4 hour-long window, during which maintenance might occur.
    metrics_enabled bool
    (Computed)[bool] Enable metrics collection for observability. If not set, the API default is used.
    name str
    [string] Cluster name (2–63 alphanumeric chars with dashes, underscores, dots).
    persistence_mode str
    (Computed)[string] Data persistence mode: None, AOF, RDB, RDB_AOF. If not set, the API default is used.
    restore_from_snapshot InMemoryDBClusterV2RestoreFromSnapshotArgs
    [object] Restore configuration from a snapshot.
    snapshot InMemoryDBClusterV2SnapshotArgs
    [object] Snapshot configuration.
    timeouts InMemoryDBClusterV2TimeoutsArgs
    Standard Terraform timeouts: create, update, delete.
    version str
    [string] The InMemoryDB version. Upgrades only (see /versions endpoint).
    connections Property Map
    [object] The network connection for your cluster. Only one connection is allowed.
    credentials Property Map
    [object] Credentials for the InMemoryDB cluster user.
    description String
    [string] Human-readable description.
    dnsName String
    The DNS name for connecting to the cluster's primary instance.
    evictionPolicy String
    [string] Key eviction strategy: noeviction, allkeys-lru, allkeys-lfu, allkeys-random, volatile-lru, volatile-lfu, volatile-random, volatile-ttl.
    instances Property Map
    [object] The instance sizing configuration.
    location String
    [string] The location of the cluster. Changing this forces a new resource. Available: de/fra, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    logsEnabled Boolean
    (Computed)[bool] Enable log collection for observability. If not set, the API default is used.
    maintenanceWindow Property Map
    [object] A weekly 4 hour-long window, during which maintenance might occur.
    metricsEnabled Boolean
    (Computed)[bool] Enable metrics collection for observability. If not set, the API default is used.
    name String
    [string] Cluster name (2–63 alphanumeric chars with dashes, underscores, dots).
    persistenceMode String
    (Computed)[string] Data persistence mode: None, AOF, RDB, RDB_AOF. If not set, the API default is used.
    restoreFromSnapshot Property Map
    [object] Restore configuration from a snapshot.
    snapshot Property Map
    [object] Snapshot configuration.
    timeouts Property Map
    Standard Terraform timeouts: create, update, delete.
    version String
    [string] The InMemoryDB version. Upgrades only (see /versions endpoint).

    Supporting Types

    InMemoryDBClusterV2Connections, InMemoryDBClusterV2ConnectionsArgs

    DatacenterId string
    [string] The Virtual Data Center ID to connect to.
    LanId string
    [string] The numeric LAN ID within the data center.
    PrimaryInstanceAddress string
    [string] Primary instance IP in CIDR notation.
    DatacenterId string
    [string] The Virtual Data Center ID to connect to.
    LanId string
    [string] The numeric LAN ID within the data center.
    PrimaryInstanceAddress string
    [string] Primary instance IP in CIDR notation.
    datacenter_id string
    [string] The Virtual Data Center ID to connect to.
    lan_id string
    [string] The numeric LAN ID within the data center.
    primary_instance_address string
    [string] Primary instance IP in CIDR notation.
    datacenterId String
    [string] The Virtual Data Center ID to connect to.
    lanId String
    [string] The numeric LAN ID within the data center.
    primaryInstanceAddress String
    [string] Primary instance IP in CIDR notation.
    datacenterId string
    [string] The Virtual Data Center ID to connect to.
    lanId string
    [string] The numeric LAN ID within the data center.
    primaryInstanceAddress string
    [string] Primary instance IP in CIDR notation.
    datacenter_id str
    [string] The Virtual Data Center ID to connect to.
    lan_id str
    [string] The numeric LAN ID within the data center.
    primary_instance_address str
    [string] Primary instance IP in CIDR notation.
    datacenterId String
    [string] The Virtual Data Center ID to connect to.
    lanId String
    [string] The numeric LAN ID within the data center.
    primaryInstanceAddress String
    [string] Primary instance IP in CIDR notation.

    InMemoryDBClusterV2Credentials, InMemoryDBClusterV2CredentialsArgs

    Password Ionoscloud.InMemoryDBClusterV2CredentialsPassword
    [object] Pre-hashed password. Not returned by the API — will be null in state after pulumi import.
    Username string
    [string] Username (2–16 alphanumeric + underscore).
    Password InMemoryDBClusterV2CredentialsPassword
    [object] Pre-hashed password. Not returned by the API — will be null in state after pulumi import.
    Username string
    [string] Username (2–16 alphanumeric + underscore).
    password object
    [object] Pre-hashed password. Not returned by the API — will be null in state after pulumi import.
    username string
    [string] Username (2–16 alphanumeric + underscore).
    password InMemoryDBClusterV2CredentialsPassword
    [object] Pre-hashed password. Not returned by the API — will be null in state after pulumi import.
    username String
    [string] Username (2–16 alphanumeric + underscore).
    password InMemoryDBClusterV2CredentialsPassword
    [object] Pre-hashed password. Not returned by the API — will be null in state after pulumi import.
    username string
    [string] Username (2–16 alphanumeric + underscore).
    password InMemoryDBClusterV2CredentialsPassword
    [object] Pre-hashed password. Not returned by the API — will be null in state after pulumi import.
    username str
    [string] Username (2–16 alphanumeric + underscore).
    password Property Map
    [object] Pre-hashed password. Not returned by the API — will be null in state after pulumi import.
    username String
    [string] Username (2–16 alphanumeric + underscore).

    InMemoryDBClusterV2CredentialsPassword, InMemoryDBClusterV2CredentialsPasswordArgs

    Algorithm string
    [string] Hash algorithm (SHA-256).
    Hash string
    [string] Sensitive. Hex-encoded SHA-256 hash (64 lowercase hex chars).
    Algorithm string
    [string] Hash algorithm (SHA-256).
    Hash string
    [string] Sensitive. Hex-encoded SHA-256 hash (64 lowercase hex chars).
    algorithm string
    [string] Hash algorithm (SHA-256).
    hash string
    [string] Sensitive. Hex-encoded SHA-256 hash (64 lowercase hex chars).
    algorithm String
    [string] Hash algorithm (SHA-256).
    hash String
    [string] Sensitive. Hex-encoded SHA-256 hash (64 lowercase hex chars).
    algorithm string
    [string] Hash algorithm (SHA-256).
    hash string
    [string] Sensitive. Hex-encoded SHA-256 hash (64 lowercase hex chars).
    algorithm str
    [string] Hash algorithm (SHA-256).
    hash str
    [string] Sensitive. Hex-encoded SHA-256 hash (64 lowercase hex chars).
    algorithm String
    [string] Hash algorithm (SHA-256).
    hash String
    [string] Sensitive. Hex-encoded SHA-256 hash (64 lowercase hex chars).

    InMemoryDBClusterV2Instances, InMemoryDBClusterV2InstancesArgs

    Cores int
    [int] CPU cores per instance (1–62).
    Count int
    [int] Number of instances (1–5).
    Ram int
    [int] RAM per instance in GB (4–240). The API does not support RAM downgrade. Storage is automatically derived from RAM and persistence mode.
    Cores int
    [int] CPU cores per instance (1–62).
    Count int
    [int] Number of instances (1–5).
    Ram int
    [int] RAM per instance in GB (4–240). The API does not support RAM downgrade. Storage is automatically derived from RAM and persistence mode.
    cores number
    [int] CPU cores per instance (1–62).
    count number
    [int] Number of instances (1–5).
    ram number
    [int] RAM per instance in GB (4–240). The API does not support RAM downgrade. Storage is automatically derived from RAM and persistence mode.
    cores Integer
    [int] CPU cores per instance (1–62).
    count Integer
    [int] Number of instances (1–5).
    ram Integer
    [int] RAM per instance in GB (4–240). The API does not support RAM downgrade. Storage is automatically derived from RAM and persistence mode.
    cores number
    [int] CPU cores per instance (1–62).
    count number
    [int] Number of instances (1–5).
    ram number
    [int] RAM per instance in GB (4–240). The API does not support RAM downgrade. Storage is automatically derived from RAM and persistence mode.
    cores int
    [int] CPU cores per instance (1–62).
    count int
    [int] Number of instances (1–5).
    ram int
    [int] RAM per instance in GB (4–240). The API does not support RAM downgrade. Storage is automatically derived from RAM and persistence mode.
    cores Number
    [int] CPU cores per instance (1–62).
    count Number
    [int] Number of instances (1–5).
    ram Number
    [int] RAM per instance in GB (4–240). The API does not support RAM downgrade. Storage is automatically derived from RAM and persistence mode.

    InMemoryDBClusterV2MaintenanceWindow, InMemoryDBClusterV2MaintenanceWindowArgs

    DayOfTheWeek string
    [string] Day of the week: SundaySaturday.
    Time string
    [string] Start time in UTC (HH:MM:SS).
    DayOfTheWeek string
    [string] Day of the week: SundaySaturday.
    Time string
    [string] Start time in UTC (HH:MM:SS).
    day_of_the_week string
    [string] Day of the week: SundaySaturday.
    time string
    [string] Start time in UTC (HH:MM:SS).
    dayOfTheWeek String
    [string] Day of the week: SundaySaturday.
    time String
    [string] Start time in UTC (HH:MM:SS).
    dayOfTheWeek string
    [string] Day of the week: SundaySaturday.
    time string
    [string] Start time in UTC (HH:MM:SS).
    day_of_the_week str
    [string] Day of the week: SundaySaturday.
    time str
    [string] Start time in UTC (HH:MM:SS).
    dayOfTheWeek String
    [string] Day of the week: SundaySaturday.
    time String
    [string] Start time in UTC (HH:MM:SS).

    InMemoryDBClusterV2RestoreFromSnapshot, InMemoryDBClusterV2RestoreFromSnapshotArgs

    RecoveryTargetDatetime string

    [string] ISO 8601 timestamp to restore from the most recent snapshot at or before that time. Optional for create-time restore; must be provided for in-place restore via update.

    Note: restoreFromSnapshot is not returned by the API. The values are stored in state as configured but will be null after pulumi import.

    SourceSnapshotId string
    [string] UUID of the snapshot to restore from. Must be provided when the block is used during cluster creation. Not applicable for in-place restore via update.
    RecoveryTargetDatetime string

    [string] ISO 8601 timestamp to restore from the most recent snapshot at or before that time. Optional for create-time restore; must be provided for in-place restore via update.

    Note: restoreFromSnapshot is not returned by the API. The values are stored in state as configured but will be null after pulumi import.

    SourceSnapshotId string
    [string] UUID of the snapshot to restore from. Must be provided when the block is used during cluster creation. Not applicable for in-place restore via update.
    recovery_target_datetime string

    [string] ISO 8601 timestamp to restore from the most recent snapshot at or before that time. Optional for create-time restore; must be provided for in-place restore via update.

    Note: restoreFromSnapshot is not returned by the API. The values are stored in state as configured but will be null after pulumi import.

    source_snapshot_id string
    [string] UUID of the snapshot to restore from. Must be provided when the block is used during cluster creation. Not applicable for in-place restore via update.
    recoveryTargetDatetime String

    [string] ISO 8601 timestamp to restore from the most recent snapshot at or before that time. Optional for create-time restore; must be provided for in-place restore via update.

    Note: restoreFromSnapshot is not returned by the API. The values are stored in state as configured but will be null after pulumi import.

    sourceSnapshotId String
    [string] UUID of the snapshot to restore from. Must be provided when the block is used during cluster creation. Not applicable for in-place restore via update.
    recoveryTargetDatetime string

    [string] ISO 8601 timestamp to restore from the most recent snapshot at or before that time. Optional for create-time restore; must be provided for in-place restore via update.

    Note: restoreFromSnapshot is not returned by the API. The values are stored in state as configured but will be null after pulumi import.

    sourceSnapshotId string
    [string] UUID of the snapshot to restore from. Must be provided when the block is used during cluster creation. Not applicable for in-place restore via update.
    recovery_target_datetime str

    [string] ISO 8601 timestamp to restore from the most recent snapshot at or before that time. Optional for create-time restore; must be provided for in-place restore via update.

    Note: restoreFromSnapshot is not returned by the API. The values are stored in state as configured but will be null after pulumi import.

    source_snapshot_id str
    [string] UUID of the snapshot to restore from. Must be provided when the block is used during cluster creation. Not applicable for in-place restore via update.
    recoveryTargetDatetime String

    [string] ISO 8601 timestamp to restore from the most recent snapshot at or before that time. Optional for create-time restore; must be provided for in-place restore via update.

    Note: restoreFromSnapshot is not returned by the API. The values are stored in state as configured but will be null after pulumi import.

    sourceSnapshotId String
    [string] UUID of the snapshot to restore from. Must be provided when the block is used during cluster creation. Not applicable for in-place restore via update.

    InMemoryDBClusterV2Snapshot, InMemoryDBClusterV2SnapshotArgs

    Location string
    [string] Object Storage location for snapshots. Changing this forces the re-creation of the cluster.
    RetentionDays int
    [int] Days to retain snapshots (1–365).
    SnapshotHours List<int>
    [list of int] UTC hours for scheduled snapshots (0–23). At least one hour must be specified.
    Location string
    [string] Object Storage location for snapshots. Changing this forces the re-creation of the cluster.
    RetentionDays int
    [int] Days to retain snapshots (1–365).
    SnapshotHours []int
    [list of int] UTC hours for scheduled snapshots (0–23). At least one hour must be specified.
    location string
    [string] Object Storage location for snapshots. Changing this forces the re-creation of the cluster.
    retention_days number
    [int] Days to retain snapshots (1–365).
    snapshot_hours list(number)
    [list of int] UTC hours for scheduled snapshots (0–23). At least one hour must be specified.
    location String
    [string] Object Storage location for snapshots. Changing this forces the re-creation of the cluster.
    retentionDays Integer
    [int] Days to retain snapshots (1–365).
    snapshotHours List<Integer>
    [list of int] UTC hours for scheduled snapshots (0–23). At least one hour must be specified.
    location string
    [string] Object Storage location for snapshots. Changing this forces the re-creation of the cluster.
    retentionDays number
    [int] Days to retain snapshots (1–365).
    snapshotHours number[]
    [list of int] UTC hours for scheduled snapshots (0–23). At least one hour must be specified.
    location str
    [string] Object Storage location for snapshots. Changing this forces the re-creation of the cluster.
    retention_days int
    [int] Days to retain snapshots (1–365).
    snapshot_hours Sequence[int]
    [list of int] UTC hours for scheduled snapshots (0–23). At least one hour must be specified.
    location String
    [string] Object Storage location for snapshots. Changing this forces the re-creation of the cluster.
    retentionDays Number
    [int] Days to retain snapshots (1–365).
    snapshotHours List<Number>
    [list of int] UTC hours for scheduled snapshots (0–23). At least one hour must be specified.

    InMemoryDBClusterV2Timeouts, InMemoryDBClusterV2TimeoutsArgs

    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

    Import

    InMemoryDB V2 clusters can be imported using <location>:<cluster_id>:

    $ pulumi import ionoscloud:dbaas/inMemoryDBClusterV2:InMemoryDBClusterV2 example de/txl:example-id
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    ionoscloud ionos-cloud/pulumi-ionoscloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ionoscloud Terraform Provider.
    ionoscloud logo
    Viewing docs for IonosCloud v0.3.2
    published on Wednesday, Jul 15, 2026 by ionos-cloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial