azure-native.cache.Database
Explore with Pulumi AI
Describes a database on the RedisEnterprise cluster Azure REST API version: 2023-03-01-preview. Prior API version in Azure Native 1.x: 2021-03-01.
Other available API versions: 2023-07-01, 2023-08-01-preview, 2023-10-01-preview, 2023-11-01, 2024-02-01, 2024-03-01-preview, 2024-06-01-preview, 2024-09-01-preview.
Example Usage
RedisEnterpriseDatabasesCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var database = new AzureNative.Cache.Database("database", new()
{
ClientProtocol = AzureNative.Cache.Protocol.Encrypted,
ClusterName = "cache1",
ClusteringPolicy = AzureNative.Cache.ClusteringPolicy.EnterpriseCluster,
DatabaseName = "default",
EvictionPolicy = AzureNative.Cache.EvictionPolicy.AllKeysLRU,
Modules = new[]
{
new AzureNative.Cache.Inputs.ModuleArgs
{
Args = "ERROR_RATE 0.00 INITIAL_SIZE 400",
Name = "RedisBloom",
},
new AzureNative.Cache.Inputs.ModuleArgs
{
Args = "RETENTION_POLICY 20",
Name = "RedisTimeSeries",
},
new AzureNative.Cache.Inputs.ModuleArgs
{
Name = "RediSearch",
},
},
Persistence = new AzureNative.Cache.Inputs.PersistenceArgs
{
AofEnabled = true,
AofFrequency = AzureNative.Cache.AofFrequency.AofFrequency_1s,
},
Port = 10000,
ResourceGroupName = "rg1",
});
});
package main
import (
cache "github.com/pulumi/pulumi-azure-native-sdk/cache/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cache.NewDatabase(ctx, "database", &cache.DatabaseArgs{
ClientProtocol: pulumi.String(cache.ProtocolEncrypted),
ClusterName: pulumi.String("cache1"),
ClusteringPolicy: pulumi.String(cache.ClusteringPolicyEnterpriseCluster),
DatabaseName: pulumi.String("default"),
EvictionPolicy: pulumi.String(cache.EvictionPolicyAllKeysLRU),
Modules: cache.ModuleArray{
&cache.ModuleArgs{
Args: pulumi.String("ERROR_RATE 0.00 INITIAL_SIZE 400"),
Name: pulumi.String("RedisBloom"),
},
&cache.ModuleArgs{
Args: pulumi.String("RETENTION_POLICY 20"),
Name: pulumi.String("RedisTimeSeries"),
},
&cache.ModuleArgs{
Name: pulumi.String("RediSearch"),
},
},
Persistence: &cache.PersistenceArgs{
AofEnabled: pulumi.Bool(true),
AofFrequency: pulumi.String(cache.AofFrequency_1s),
},
Port: pulumi.Int(10000),
ResourceGroupName: pulumi.String("rg1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.cache.Database;
import com.pulumi.azurenative.cache.DatabaseArgs;
import com.pulumi.azurenative.cache.inputs.ModuleArgs;
import com.pulumi.azurenative.cache.inputs.PersistenceArgs;
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) {
var database = new Database("database", DatabaseArgs.builder()
.clientProtocol("Encrypted")
.clusterName("cache1")
.clusteringPolicy("EnterpriseCluster")
.databaseName("default")
.evictionPolicy("AllKeysLRU")
.modules(
ModuleArgs.builder()
.args("ERROR_RATE 0.00 INITIAL_SIZE 400")
.name("RedisBloom")
.build(),
ModuleArgs.builder()
.args("RETENTION_POLICY 20")
.name("RedisTimeSeries")
.build(),
ModuleArgs.builder()
.name("RediSearch")
.build())
.persistence(PersistenceArgs.builder()
.aofEnabled(true)
.aofFrequency("1s")
.build())
.port(10000)
.resourceGroupName("rg1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
database = azure_native.cache.Database("database",
client_protocol=azure_native.cache.Protocol.ENCRYPTED,
cluster_name="cache1",
clustering_policy=azure_native.cache.ClusteringPolicy.ENTERPRISE_CLUSTER,
database_name="default",
eviction_policy=azure_native.cache.EvictionPolicy.ALL_KEYS_LRU,
modules=[
{
"args": "ERROR_RATE 0.00 INITIAL_SIZE 400",
"name": "RedisBloom",
},
{
"args": "RETENTION_POLICY 20",
"name": "RedisTimeSeries",
},
{
"name": "RediSearch",
},
],
persistence={
"aof_enabled": True,
"aof_frequency": azure_native.cache.AofFrequency.AOF_FREQUENCY_1S,
},
port=10000,
resource_group_name="rg1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const database = new azure_native.cache.Database("database", {
clientProtocol: azure_native.cache.Protocol.Encrypted,
clusterName: "cache1",
clusteringPolicy: azure_native.cache.ClusteringPolicy.EnterpriseCluster,
databaseName: "default",
evictionPolicy: azure_native.cache.EvictionPolicy.AllKeysLRU,
modules: [
{
args: "ERROR_RATE 0.00 INITIAL_SIZE 400",
name: "RedisBloom",
},
{
args: "RETENTION_POLICY 20",
name: "RedisTimeSeries",
},
{
name: "RediSearch",
},
],
persistence: {
aofEnabled: true,
aofFrequency: azure_native.cache.AofFrequency.AofFrequency_1s,
},
port: 10000,
resourceGroupName: "rg1",
});
resources:
database:
type: azure-native:cache:Database
properties:
clientProtocol: Encrypted
clusterName: cache1
clusteringPolicy: EnterpriseCluster
databaseName: default
evictionPolicy: AllKeysLRU
modules:
- args: ERROR_RATE 0.00 INITIAL_SIZE 400
name: RedisBloom
- args: RETENTION_POLICY 20
name: RedisTimeSeries
- name: RediSearch
persistence:
aofEnabled: true
aofFrequency: 1s
port: 10000
resourceGroupName: rg1
RedisEnterpriseDatabasesCreate With Active Geo Replication
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var database = new AzureNative.Cache.Database("database", new()
{
ClientProtocol = AzureNative.Cache.Protocol.Encrypted,
ClusterName = "cache1",
ClusteringPolicy = AzureNative.Cache.ClusteringPolicy.EnterpriseCluster,
DatabaseName = "default",
EvictionPolicy = AzureNative.Cache.EvictionPolicy.NoEviction,
GeoReplication = new AzureNative.Cache.Inputs.DatabasePropertiesGeoReplicationArgs
{
GroupNickname = "groupName",
LinkedDatabases = new[]
{
new AzureNative.Cache.Inputs.LinkedDatabaseArgs
{
Id = "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default",
},
new AzureNative.Cache.Inputs.LinkedDatabaseArgs
{
Id = "/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default",
},
},
},
Port = 10000,
ResourceGroupName = "rg1",
});
});
package main
import (
cache "github.com/pulumi/pulumi-azure-native-sdk/cache/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cache.NewDatabase(ctx, "database", &cache.DatabaseArgs{
ClientProtocol: pulumi.String(cache.ProtocolEncrypted),
ClusterName: pulumi.String("cache1"),
ClusteringPolicy: pulumi.String(cache.ClusteringPolicyEnterpriseCluster),
DatabaseName: pulumi.String("default"),
EvictionPolicy: pulumi.String(cache.EvictionPolicyNoEviction),
GeoReplication: &cache.DatabasePropertiesGeoReplicationArgs{
GroupNickname: pulumi.String("groupName"),
LinkedDatabases: cache.LinkedDatabaseArray{
&cache.LinkedDatabaseArgs{
Id: pulumi.String("/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default"),
},
&cache.LinkedDatabaseArgs{
Id: pulumi.String("/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default"),
},
},
},
Port: pulumi.Int(10000),
ResourceGroupName: pulumi.String("rg1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.cache.Database;
import com.pulumi.azurenative.cache.DatabaseArgs;
import com.pulumi.azurenative.cache.inputs.DatabasePropertiesGeoReplicationArgs;
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) {
var database = new Database("database", DatabaseArgs.builder()
.clientProtocol("Encrypted")
.clusterName("cache1")
.clusteringPolicy("EnterpriseCluster")
.databaseName("default")
.evictionPolicy("NoEviction")
.geoReplication(DatabasePropertiesGeoReplicationArgs.builder()
.groupNickname("groupName")
.linkedDatabases(
LinkedDatabaseArgs.builder()
.id("/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default")
.build(),
LinkedDatabaseArgs.builder()
.id("/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default")
.build())
.build())
.port(10000)
.resourceGroupName("rg1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
database = azure_native.cache.Database("database",
client_protocol=azure_native.cache.Protocol.ENCRYPTED,
cluster_name="cache1",
clustering_policy=azure_native.cache.ClusteringPolicy.ENTERPRISE_CLUSTER,
database_name="default",
eviction_policy=azure_native.cache.EvictionPolicy.NO_EVICTION,
geo_replication={
"group_nickname": "groupName",
"linked_databases": [
{
"id": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default",
},
{
"id": "/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default",
},
],
},
port=10000,
resource_group_name="rg1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const database = new azure_native.cache.Database("database", {
clientProtocol: azure_native.cache.Protocol.Encrypted,
clusterName: "cache1",
clusteringPolicy: azure_native.cache.ClusteringPolicy.EnterpriseCluster,
databaseName: "default",
evictionPolicy: azure_native.cache.EvictionPolicy.NoEviction,
geoReplication: {
groupNickname: "groupName",
linkedDatabases: [
{
id: "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default",
},
{
id: "/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default",
},
],
},
port: 10000,
resourceGroupName: "rg1",
});
resources:
database:
type: azure-native:cache:Database
properties:
clientProtocol: Encrypted
clusterName: cache1
clusteringPolicy: EnterpriseCluster
databaseName: default
evictionPolicy: NoEviction
geoReplication:
groupNickname: groupName
linkedDatabases:
- id: /subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default
- id: /subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default
port: 10000
resourceGroupName: rg1
Create Database Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Database(name: string, args: DatabaseArgs, opts?: CustomResourceOptions);
@overload
def Database(resource_name: str,
args: DatabaseArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Database(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
client_protocol: Optional[Union[str, Protocol]] = None,
clustering_policy: Optional[Union[str, ClusteringPolicy]] = None,
database_name: Optional[str] = None,
eviction_policy: Optional[Union[str, EvictionPolicy]] = None,
geo_replication: Optional[DatabasePropertiesGeoReplicationArgs] = None,
modules: Optional[Sequence[ModuleArgs]] = None,
persistence: Optional[PersistenceArgs] = None,
port: Optional[int] = None)
func NewDatabase(ctx *Context, name string, args DatabaseArgs, opts ...ResourceOption) (*Database, error)
public Database(string name, DatabaseArgs args, CustomResourceOptions? opts = null)
public Database(String name, DatabaseArgs args)
public Database(String name, DatabaseArgs args, CustomResourceOptions options)
type: azure-native:cache:Database
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 DatabaseArgs
- 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 DatabaseArgs
- 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 DatabaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DatabaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DatabaseArgs
- 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 databaseResource = new AzureNative.Cache.Database("databaseResource", new()
{
ClusterName = "string",
ResourceGroupName = "string",
ClientProtocol = "string",
ClusteringPolicy = "string",
DatabaseName = "string",
EvictionPolicy = "string",
GeoReplication = new AzureNative.Cache.Inputs.DatabasePropertiesGeoReplicationArgs
{
GroupNickname = "string",
LinkedDatabases = new[]
{
new AzureNative.Cache.Inputs.LinkedDatabaseArgs
{
Id = "string",
},
},
},
Modules = new[]
{
new AzureNative.Cache.Inputs.ModuleArgs
{
Name = "string",
Args = "string",
},
},
Persistence = new AzureNative.Cache.Inputs.PersistenceArgs
{
AofEnabled = false,
AofFrequency = "string",
RdbEnabled = false,
RdbFrequency = "string",
},
Port = 0,
});
example, err := cache.NewDatabase(ctx, "databaseResource", &cache.DatabaseArgs{
ClusterName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
ClientProtocol: pulumi.String("string"),
ClusteringPolicy: pulumi.String("string"),
DatabaseName: pulumi.String("string"),
EvictionPolicy: pulumi.String("string"),
GeoReplication: &cache.DatabasePropertiesGeoReplicationArgs{
GroupNickname: pulumi.String("string"),
LinkedDatabases: cache.LinkedDatabaseArray{
&cache.LinkedDatabaseArgs{
Id: pulumi.String("string"),
},
},
},
Modules: cache.ModuleArray{
&cache.ModuleArgs{
Name: pulumi.String("string"),
Args: pulumi.String("string"),
},
},
Persistence: &cache.PersistenceArgs{
AofEnabled: pulumi.Bool(false),
AofFrequency: pulumi.String("string"),
RdbEnabled: pulumi.Bool(false),
RdbFrequency: pulumi.String("string"),
},
Port: pulumi.Int(0),
})
var databaseResource = new Database("databaseResource", DatabaseArgs.builder()
.clusterName("string")
.resourceGroupName("string")
.clientProtocol("string")
.clusteringPolicy("string")
.databaseName("string")
.evictionPolicy("string")
.geoReplication(DatabasePropertiesGeoReplicationArgs.builder()
.groupNickname("string")
.linkedDatabases(LinkedDatabaseArgs.builder()
.id("string")
.build())
.build())
.modules(ModuleArgs.builder()
.name("string")
.args("string")
.build())
.persistence(PersistenceArgs.builder()
.aofEnabled(false)
.aofFrequency("string")
.rdbEnabled(false)
.rdbFrequency("string")
.build())
.port(0)
.build());
database_resource = azure_native.cache.Database("databaseResource",
cluster_name="string",
resource_group_name="string",
client_protocol="string",
clustering_policy="string",
database_name="string",
eviction_policy="string",
geo_replication={
"groupNickname": "string",
"linkedDatabases": [{
"id": "string",
}],
},
modules=[{
"name": "string",
"args": "string",
}],
persistence={
"aofEnabled": False,
"aofFrequency": "string",
"rdbEnabled": False,
"rdbFrequency": "string",
},
port=0)
const databaseResource = new azure_native.cache.Database("databaseResource", {
clusterName: "string",
resourceGroupName: "string",
clientProtocol: "string",
clusteringPolicy: "string",
databaseName: "string",
evictionPolicy: "string",
geoReplication: {
groupNickname: "string",
linkedDatabases: [{
id: "string",
}],
},
modules: [{
name: "string",
args: "string",
}],
persistence: {
aofEnabled: false,
aofFrequency: "string",
rdbEnabled: false,
rdbFrequency: "string",
},
port: 0,
});
type: azure-native:cache:Database
properties:
clientProtocol: string
clusterName: string
clusteringPolicy: string
databaseName: string
evictionPolicy: string
geoReplication:
groupNickname: string
linkedDatabases:
- id: string
modules:
- args: string
name: string
persistence:
aofEnabled: false
aofFrequency: string
rdbEnabled: false
rdbFrequency: string
port: 0
resourceGroupName: string
Database Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Database resource accepts the following input properties:
- Cluster
Name string - The name of the RedisEnterprise cluster.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Client
Protocol string | Pulumi.Azure Native. Cache. Protocol - Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted.
- Clustering
Policy string | Pulumi.Azure Native. Cache. Clustering Policy - Clustering policy - default is OSSCluster. Specified at create time.
- Database
Name string - The name of the database.
- Eviction
Policy string | Pulumi.Azure Native. Cache. Eviction Policy - Redis eviction policy - default is VolatileLRU
- Geo
Replication Pulumi.Azure Native. Cache. Inputs. Database Properties Geo Replication - Optional set of properties to configure geo replication for this database.
- Modules
List<Pulumi.
Azure Native. Cache. Inputs. Module> - Optional set of redis modules to enable in this database - modules can only be added at creation time.
- Persistence
Pulumi.
Azure Native. Cache. Inputs. Persistence - Persistence settings
- Port int
- TCP port of the database endpoint. Specified at create time. Defaults to an available port.
- Cluster
Name string - The name of the RedisEnterprise cluster.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Client
Protocol string | Protocol - Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted.
- Clustering
Policy string | ClusteringPolicy - Clustering policy - default is OSSCluster. Specified at create time.
- Database
Name string - The name of the database.
- Eviction
Policy string | EvictionPolicy - Redis eviction policy - default is VolatileLRU
- Geo
Replication DatabaseProperties Geo Replication Args - Optional set of properties to configure geo replication for this database.
- Modules
[]Module
Args - Optional set of redis modules to enable in this database - modules can only be added at creation time.
- Persistence
Persistence
Args - Persistence settings
- Port int
- TCP port of the database endpoint. Specified at create time. Defaults to an available port.
- cluster
Name String - The name of the RedisEnterprise cluster.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- client
Protocol String | Protocol - Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted.
- clustering
Policy String | ClusteringPolicy - Clustering policy - default is OSSCluster. Specified at create time.
- database
Name String - The name of the database.
- eviction
Policy String | EvictionPolicy - Redis eviction policy - default is VolatileLRU
- geo
Replication DatabaseProperties Geo Replication - Optional set of properties to configure geo replication for this database.
- modules List<Module>
- Optional set of redis modules to enable in this database - modules can only be added at creation time.
- persistence Persistence
- Persistence settings
- port Integer
- TCP port of the database endpoint. Specified at create time. Defaults to an available port.
- cluster
Name string - The name of the RedisEnterprise cluster.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- client
Protocol string | Protocol - Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted.
- clustering
Policy string | ClusteringPolicy - Clustering policy - default is OSSCluster. Specified at create time.
- database
Name string - The name of the database.
- eviction
Policy string | EvictionPolicy - Redis eviction policy - default is VolatileLRU
- geo
Replication DatabaseProperties Geo Replication - Optional set of properties to configure geo replication for this database.
- modules Module[]
- Optional set of redis modules to enable in this database - modules can only be added at creation time.
- persistence Persistence
- Persistence settings
- port number
- TCP port of the database endpoint. Specified at create time. Defaults to an available port.
- cluster_
name str - The name of the RedisEnterprise cluster.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- client_
protocol str | Protocol - Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted.
- clustering_
policy str | ClusteringPolicy - Clustering policy - default is OSSCluster. Specified at create time.
- database_
name str - The name of the database.
- eviction_
policy str | EvictionPolicy - Redis eviction policy - default is VolatileLRU
- geo_
replication DatabaseProperties Geo Replication Args - Optional set of properties to configure geo replication for this database.
- modules
Sequence[Module
Args] - Optional set of redis modules to enable in this database - modules can only be added at creation time.
- persistence
Persistence
Args - Persistence settings
- port int
- TCP port of the database endpoint. Specified at create time. Defaults to an available port.
- cluster
Name String - The name of the RedisEnterprise cluster.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- client
Protocol String | "Encrypted" | "Plaintext" - Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted.
- clustering
Policy String | "EnterpriseCluster" | "OSSCluster" - Clustering policy - default is OSSCluster. Specified at create time.
- database
Name String - The name of the database.
- eviction
Policy String | "AllKeys LFU" | "All Keys LRU" | "All Keys Random" | "Volatile LRU" | "Volatile LFU" | "Volatile TTL" | "Volatile Random" | "No Eviction" - Redis eviction policy - default is VolatileLRU
- geo
Replication Property Map - Optional set of properties to configure geo replication for this database.
- modules List<Property Map>
- Optional set of redis modules to enable in this database - modules can only be added at creation time.
- persistence Property Map
- Persistence settings
- port Number
- TCP port of the database endpoint. Specified at create time. Defaults to an available port.
Outputs
All input properties are implicitly available as output properties. Additionally, the Database resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - Current provisioning status of the database
- Resource
State string - Current resource status of the database
- System
Data Pulumi.Azure Native. Cache. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - Current provisioning status of the database
- Resource
State string - Current resource status of the database
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - Current provisioning status of the database
- resource
State String - Current resource status of the database
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioning
State string - Current provisioning status of the database
- resource
State string - Current resource status of the database
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- provisioning_
state str - Current provisioning status of the database
- resource_
state str - Current resource status of the database
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - Current provisioning status of the database
- resource
State String - Current resource status of the database
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
AofFrequency, AofFrequencyArgs
- Aof
Frequency_1s - 1s
- Always
- always
- Aof
Frequency_1s - 1s
- Aof
Frequency Always - always
- _1s
- 1s
- Always
- always
- Aof
Frequency_1s - 1s
- Always
- always
- AOF_FREQUENCY_1S
- 1s
- ALWAYS
- always
- "1s"
- 1s
- "always"
- always
ClusteringPolicy, ClusteringPolicyArgs
- Enterprise
Cluster - EnterpriseCluster
- OSSCluster
- OSSCluster
- Clustering
Policy Enterprise Cluster - EnterpriseCluster
- Clustering
Policy OSSCluster - OSSCluster
- Enterprise
Cluster - EnterpriseCluster
- OSSCluster
- OSSCluster
- Enterprise
Cluster - EnterpriseCluster
- OSSCluster
- OSSCluster
- ENTERPRISE_CLUSTER
- EnterpriseCluster
- OSS_CLUSTER
- OSSCluster
- "Enterprise
Cluster" - EnterpriseCluster
- "OSSCluster"
- OSSCluster
DatabasePropertiesGeoReplication, DatabasePropertiesGeoReplicationArgs
- Group
Nickname string - Name for the group of linked database resources
- Linked
Databases List<Pulumi.Azure Native. Cache. Inputs. Linked Database> - List of database resources to link with this database
- Group
Nickname string - Name for the group of linked database resources
- Linked
Databases []LinkedDatabase - List of database resources to link with this database
- group
Nickname String - Name for the group of linked database resources
- linked
Databases List<LinkedDatabase> - List of database resources to link with this database
- group
Nickname string - Name for the group of linked database resources
- linked
Databases LinkedDatabase[] - List of database resources to link with this database
- group_
nickname str - Name for the group of linked database resources
- linked_
databases Sequence[LinkedDatabase] - List of database resources to link with this database
- group
Nickname String - Name for the group of linked database resources
- linked
Databases List<Property Map> - List of database resources to link with this database
DatabasePropertiesResponseGeoReplication, DatabasePropertiesResponseGeoReplicationArgs
- Group
Nickname string - Name for the group of linked database resources
- Linked
Databases List<Pulumi.Azure Native. Cache. Inputs. Linked Database Response> - List of database resources to link with this database
- Group
Nickname string - Name for the group of linked database resources
- Linked
Databases []LinkedDatabase Response - List of database resources to link with this database
- group
Nickname String - Name for the group of linked database resources
- linked
Databases List<LinkedDatabase Response> - List of database resources to link with this database
- group
Nickname string - Name for the group of linked database resources
- linked
Databases LinkedDatabase Response[] - List of database resources to link with this database
- group_
nickname str - Name for the group of linked database resources
- linked_
databases Sequence[LinkedDatabase Response] - List of database resources to link with this database
- group
Nickname String - Name for the group of linked database resources
- linked
Databases List<Property Map> - List of database resources to link with this database
EvictionPolicy, EvictionPolicyArgs
- All
Keys LFU - AllKeysLFU
- All
Keys LRU - AllKeysLRU
- All
Keys Random - AllKeysRandom
- Volatile
LRU - VolatileLRU
- Volatile
LFU - VolatileLFU
- Volatile
TTL - VolatileTTL
- Volatile
Random - VolatileRandom
- No
Eviction - NoEviction
- Eviction
Policy All Keys LFU - AllKeysLFU
- Eviction
Policy All Keys LRU - AllKeysLRU
- Eviction
Policy All Keys Random - AllKeysRandom
- Eviction
Policy Volatile LRU - VolatileLRU
- Eviction
Policy Volatile LFU - VolatileLFU
- Eviction
Policy Volatile TTL - VolatileTTL
- Eviction
Policy Volatile Random - VolatileRandom
- Eviction
Policy No Eviction - NoEviction
- All
Keys LFU - AllKeysLFU
- All
Keys LRU - AllKeysLRU
- All
Keys Random - AllKeysRandom
- Volatile
LRU - VolatileLRU
- Volatile
LFU - VolatileLFU
- Volatile
TTL - VolatileTTL
- Volatile
Random - VolatileRandom
- No
Eviction - NoEviction
- All
Keys LFU - AllKeysLFU
- All
Keys LRU - AllKeysLRU
- All
Keys Random - AllKeysRandom
- Volatile
LRU - VolatileLRU
- Volatile
LFU - VolatileLFU
- Volatile
TTL - VolatileTTL
- Volatile
Random - VolatileRandom
- No
Eviction - NoEviction
- ALL_KEYS_LFU
- AllKeysLFU
- ALL_KEYS_LRU
- AllKeysLRU
- ALL_KEYS_RANDOM
- AllKeysRandom
- VOLATILE_LRU
- VolatileLRU
- VOLATILE_LFU
- VolatileLFU
- VOLATILE_TTL
- VolatileTTL
- VOLATILE_RANDOM
- VolatileRandom
- NO_EVICTION
- NoEviction
- "All
Keys LFU" - AllKeysLFU
- "All
Keys LRU" - AllKeysLRU
- "All
Keys Random" - AllKeysRandom
- "Volatile
LRU" - VolatileLRU
- "Volatile
LFU" - VolatileLFU
- "Volatile
TTL" - VolatileTTL
- "Volatile
Random" - VolatileRandom
- "No
Eviction" - NoEviction
LinkedDatabase, LinkedDatabaseArgs
- Id string
- Resource ID of a database resource to link with this database.
- Id string
- Resource ID of a database resource to link with this database.
- id String
- Resource ID of a database resource to link with this database.
- id string
- Resource ID of a database resource to link with this database.
- id str
- Resource ID of a database resource to link with this database.
- id String
- Resource ID of a database resource to link with this database.
LinkedDatabaseResponse, LinkedDatabaseResponseArgs
Module, ModuleArgs
ModuleResponse, ModuleResponseArgs
Persistence, PersistenceArgs
- Aof
Enabled bool - Sets whether AOF is enabled.
- Aof
Frequency string | Pulumi.Azure Native. Cache. Aof Frequency - Sets the frequency at which data is written to disk.
- Rdb
Enabled bool - Sets whether RDB is enabled.
- Rdb
Frequency string | Pulumi.Azure Native. Cache. Rdb Frequency - Sets the frequency at which a snapshot of the database is created.
- Aof
Enabled bool - Sets whether AOF is enabled.
- Aof
Frequency string | AofFrequency - Sets the frequency at which data is written to disk.
- Rdb
Enabled bool - Sets whether RDB is enabled.
- Rdb
Frequency string | RdbFrequency - Sets the frequency at which a snapshot of the database is created.
- aof
Enabled Boolean - Sets whether AOF is enabled.
- aof
Frequency String | AofFrequency - Sets the frequency at which data is written to disk.
- rdb
Enabled Boolean - Sets whether RDB is enabled.
- rdb
Frequency String | RdbFrequency - Sets the frequency at which a snapshot of the database is created.
- aof
Enabled boolean - Sets whether AOF is enabled.
- aof
Frequency string | AofFrequency - Sets the frequency at which data is written to disk.
- rdb
Enabled boolean - Sets whether RDB is enabled.
- rdb
Frequency string | RdbFrequency - Sets the frequency at which a snapshot of the database is created.
- aof_
enabled bool - Sets whether AOF is enabled.
- aof_
frequency str | AofFrequency - Sets the frequency at which data is written to disk.
- rdb_
enabled bool - Sets whether RDB is enabled.
- rdb_
frequency str | RdbFrequency - Sets the frequency at which a snapshot of the database is created.
- aof
Enabled Boolean - Sets whether AOF is enabled.
- aof
Frequency String | "1s" | "always" - Sets the frequency at which data is written to disk.
- rdb
Enabled Boolean - Sets whether RDB is enabled.
- rdb
Frequency String | "1h" | "6h" | "12h" - Sets the frequency at which a snapshot of the database is created.
PersistenceResponse, PersistenceResponseArgs
- Aof
Enabled bool - Sets whether AOF is enabled.
- Aof
Frequency string - Sets the frequency at which data is written to disk.
- Rdb
Enabled bool - Sets whether RDB is enabled.
- Rdb
Frequency string - Sets the frequency at which a snapshot of the database is created.
- Aof
Enabled bool - Sets whether AOF is enabled.
- Aof
Frequency string - Sets the frequency at which data is written to disk.
- Rdb
Enabled bool - Sets whether RDB is enabled.
- Rdb
Frequency string - Sets the frequency at which a snapshot of the database is created.
- aof
Enabled Boolean - Sets whether AOF is enabled.
- aof
Frequency String - Sets the frequency at which data is written to disk.
- rdb
Enabled Boolean - Sets whether RDB is enabled.
- rdb
Frequency String - Sets the frequency at which a snapshot of the database is created.
- aof
Enabled boolean - Sets whether AOF is enabled.
- aof
Frequency string - Sets the frequency at which data is written to disk.
- rdb
Enabled boolean - Sets whether RDB is enabled.
- rdb
Frequency string - Sets the frequency at which a snapshot of the database is created.
- aof_
enabled bool - Sets whether AOF is enabled.
- aof_
frequency str - Sets the frequency at which data is written to disk.
- rdb_
enabled bool - Sets whether RDB is enabled.
- rdb_
frequency str - Sets the frequency at which a snapshot of the database is created.
- aof
Enabled Boolean - Sets whether AOF is enabled.
- aof
Frequency String - Sets the frequency at which data is written to disk.
- rdb
Enabled Boolean - Sets whether RDB is enabled.
- rdb
Frequency String - Sets the frequency at which a snapshot of the database is created.
Protocol, ProtocolArgs
- Encrypted
- Encrypted
- Plaintext
- Plaintext
- Protocol
Encrypted - Encrypted
- Protocol
Plaintext - Plaintext
- Encrypted
- Encrypted
- Plaintext
- Plaintext
- Encrypted
- Encrypted
- Plaintext
- Plaintext
- ENCRYPTED
- Encrypted
- PLAINTEXT
- Plaintext
- "Encrypted"
- Encrypted
- "Plaintext"
- Plaintext
RdbFrequency, RdbFrequencyArgs
- Rdb
Frequency_1h - 1h
- Rdb
Frequency_6h - 6h
- Rdb
Frequency_12h - 12h
- Rdb
Frequency_1h - 1h
- Rdb
Frequency_6h - 6h
- Rdb
Frequency_12h - 12h
- _1h
- 1h
- _6h
- 6h
- _12h
- 12h
- Rdb
Frequency_1h - 1h
- Rdb
Frequency_6h - 6h
- Rdb
Frequency_12h - 12h
- RDB_FREQUENCY_1H
- 1h
- RDB_FREQUENCY_6H
- 6h
- RDB_FREQUENCY_12H
- 12h
- "1h"
- 1h
- "6h"
- 6h
- "12h"
- 12h
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:cache:Database cache1/default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0