Instance

Provides an ApsaraDB Redis / Memcache instance resource. A DB instance is an isolated database environment in the cloud. It can be associated with IP whitelists and backup configuration which are separate resource providers.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var config = new Config();
        var creation = config.Get("creation") ?? "KVStore";
        var name = config.Get("name") ?? "kvstoreinstancevpc";
        var defaultZones = Output.Create(AliCloud.GetZones.InvokeAsync(new AliCloud.GetZonesArgs
        {
            AvailableResourceCreation = creation,
        }));
        var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new AliCloud.Vpc.NetworkArgs
        {
            CidrBlock = "172.16.0.0/16",
        });
        var defaultSwitch = new AliCloud.Vpc.Switch("defaultSwitch", new AliCloud.Vpc.SwitchArgs
        {
            AvailabilityZone = defaultZones.Apply(defaultZones => defaultZones.Zones[0].Id),
            CidrBlock = "172.16.0.0/24",
            VpcId = defaultNetwork.Id,
        });
        var defaultInstance = new AliCloud.KVStore.Instance("defaultInstance", new AliCloud.KVStore.InstanceArgs
        {
            EngineVersion = "4.0",
            InstanceClass = "redis.master.small.default",
            InstanceName = name,
            InstanceType = "Redis",
            PrivateIp = "172.16.0.10",
            SecurityIps = 
            {
                "10.0.0.1",
            },
            VswitchId = defaultSwitch.Id,
        });
    }

}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

config = pulumi.Config()
creation = config.get("creation")
if creation is None:
    creation = "KVStore"
name = config.get("name")
if name is None:
    name = "kvstoreinstancevpc"
default_zones = alicloud.get_zones(available_resource_creation=creation)
default_network = alicloud.vpc.Network("defaultNetwork", cidr_block="172.16.0.0/16")
default_switch = alicloud.vpc.Switch("defaultSwitch",
    availability_zone=default_zones.zones[0]["id"],
    cidr_block="172.16.0.0/24",
    vpc_id=default_network.id)
default_instance = alicloud.kvstore.Instance("defaultInstance",
    engine_version="4.0",
    instance_class="redis.master.small.default",
    instance_name=name,
    instance_type="Redis",
    private_ip="172.16.0.10",
    security_ips=["10.0.0.1"],
    vswitch_id=default_switch.id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const config = new pulumi.Config();
const creation = config.get("creation") || "KVStore";
const name = config.get("name") || "kvstoreinstancevpc";

const defaultZones = pulumi.output(alicloud.getZones({
    availableResourceCreation: creation,
}, { async: true }));
const defaultNetwork = new alicloud.vpc.Network("default", {
    cidrBlock: "172.16.0.0/16",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
    availabilityZone: defaultZones.zones[0].id,
    cidrBlock: "172.16.0.0/24",
    vpcId: defaultNetwork.id,
});
const defaultInstance = new alicloud.kvstore.Instance("default", {
    engineVersion: "4.0",
    instanceClass: "redis.master.small.default",
    instanceName: name,
    instanceType: "Redis",
    privateIp: "172.16.0.10",
    securityIps: ["10.0.0.1"],
    vswitchId: defaultSwitch.id,
});

Create a Instance Resource

def Instance(resource_name, opts=None, auto_renew=None, auto_renew_period=None, availability_zone=None, backup_id=None, engine_version=None, instance_charge_type=None, instance_class=None, instance_name=None, instance_type=None, kms_encrypted_password=None, kms_encryption_context=None, maintain_end_time=None, maintain_start_time=None, parameters=None, password=None, period=None, private_ip=None, resource_group_id=None, security_group_id=None, security_ips=None, tags=None, vpc_auth_mode=None, vswitch_id=None, __props__=None);
func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)
public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args InstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args InstanceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args InstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Instance Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Instance resource accepts the following input properties:

InstanceClass string
AutoRenew bool

Whether to renewal a DB instance automatically or not. It is valid when instance_charge_type is PrePaid. Default to false.

AutoRenewPeriod int

Auto-renewal period of an instance, in the unit of the month. It is valid when instance_charge_type is PrePaid. Valid value:[1~12], Default to 1.

AvailabilityZone string

The Zone to launch the DB instance.

BackupId string

If an instance created based on a backup set generated by another instance is valid, this parameter indicates the ID of the generated backup set.

EngineVersion string

Engine version. Supported values: 2.8, 4.0 and 5.0. Default value: 2.8. Only 2.8 can be supported for Memcache Instance.

InstanceChargeType string

Valid values are PrePaid, PostPaid, Default to PostPaid.

InstanceName string

The name of DB instance. It a string of 2 to 256 characters.

InstanceType string

The engine to use: Redis or Memcache. Defaults to Redis.

KmsEncryptedPassword string

An KMS encrypts password used to a instance. If the password is filled in, this field will be ignored.

KmsEncryptionContext Dictionary<string, object>

An KMS encryption context used to decrypt kms_encrypted_password before creating or updating instance with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.

MaintainEndTime string

The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).

MaintainStartTime string

The start time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).

Parameters List<Pulumi.AliCloud.KVStore.Inputs.InstanceParameterArgs>

Set of parameters needs to be set after instance was launched. Available parameters can refer to the latest docs Instance configurations table .

Password string

The password of the DB instance. The password is a string of 8 to 30 characters and must contain uppercase letters, lowercase letters, and numbers.

Period int

The duration that you will buy DB instance (in month). It is valid when instance_charge_type is PrePaid. Valid values: [1~9], 12, 24, 36. Default to 1.

PrivateIp string

Set the instance’s private IP.

ResourceGroupId string

The ID of resource group which the resource belongs.

SecurityGroupId string

The Security Group ID of ECS.

SecurityIps List<string>

Set the instance’s IP whitelist of the default security group.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

VpcAuthMode string

Only meaningful if instance_type is Redis and network type is VPC. Valid values are Close, Open. Defaults to Open. Close means the redis instance can be accessed without authentication. Open means authentication is required.

VswitchId string

The ID of VSwitch.

InstanceClass string
AutoRenew bool

Whether to renewal a DB instance automatically or not. It is valid when instance_charge_type is PrePaid. Default to false.

AutoRenewPeriod int

Auto-renewal period of an instance, in the unit of the month. It is valid when instance_charge_type is PrePaid. Valid value:[1~12], Default to 1.

AvailabilityZone string

The Zone to launch the DB instance.

BackupId string

If an instance created based on a backup set generated by another instance is valid, this parameter indicates the ID of the generated backup set.

EngineVersion string

Engine version. Supported values: 2.8, 4.0 and 5.0. Default value: 2.8. Only 2.8 can be supported for Memcache Instance.

InstanceChargeType string

Valid values are PrePaid, PostPaid, Default to PostPaid.

InstanceName string

The name of DB instance. It a string of 2 to 256 characters.

InstanceType string

The engine to use: Redis or Memcache. Defaults to Redis.

KmsEncryptedPassword string

An KMS encrypts password used to a instance. If the password is filled in, this field will be ignored.

KmsEncryptionContext map[string]interface{}

An KMS encryption context used to decrypt kms_encrypted_password before creating or updating instance with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.

MaintainEndTime string

The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).

MaintainStartTime string

The start time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).

Parameters []InstanceParameter

Set of parameters needs to be set after instance was launched. Available parameters can refer to the latest docs Instance configurations table .

Password string

The password of the DB instance. The password is a string of 8 to 30 characters and must contain uppercase letters, lowercase letters, and numbers.

Period int

The duration that you will buy DB instance (in month). It is valid when instance_charge_type is PrePaid. Valid values: [1~9], 12, 24, 36. Default to 1.

PrivateIp string

Set the instance’s private IP.

ResourceGroupId string

The ID of resource group which the resource belongs.

SecurityGroupId string

The Security Group ID of ECS.

SecurityIps []string

Set the instance’s IP whitelist of the default security group.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

VpcAuthMode string

Only meaningful if instance_type is Redis and network type is VPC. Valid values are Close, Open. Defaults to Open. Close means the redis instance can be accessed without authentication. Open means authentication is required.

VswitchId string

The ID of VSwitch.

instanceClass string
autoRenew boolean

Whether to renewal a DB instance automatically or not. It is valid when instance_charge_type is PrePaid. Default to false.

autoRenewPeriod number

Auto-renewal period of an instance, in the unit of the month. It is valid when instance_charge_type is PrePaid. Valid value:[1~12], Default to 1.

availabilityZone string

The Zone to launch the DB instance.

backupId string

If an instance created based on a backup set generated by another instance is valid, this parameter indicates the ID of the generated backup set.

engineVersion string

Engine version. Supported values: 2.8, 4.0 and 5.0. Default value: 2.8. Only 2.8 can be supported for Memcache Instance.

instanceChargeType string

Valid values are PrePaid, PostPaid, Default to PostPaid.

instanceName string

The name of DB instance. It a string of 2 to 256 characters.

instanceType string

The engine to use: Redis or Memcache. Defaults to Redis.

kmsEncryptedPassword string

An KMS encrypts password used to a instance. If the password is filled in, this field will be ignored.

kmsEncryptionContext {[key: string]: any}

An KMS encryption context used to decrypt kms_encrypted_password before creating or updating instance with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.

maintainEndTime string

The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).

maintainStartTime string

The start time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).

parameters InstanceParameter[]

Set of parameters needs to be set after instance was launched. Available parameters can refer to the latest docs Instance configurations table .

password string

The password of the DB instance. The password is a string of 8 to 30 characters and must contain uppercase letters, lowercase letters, and numbers.

period number

The duration that you will buy DB instance (in month). It is valid when instance_charge_type is PrePaid. Valid values: [1~9], 12, 24, 36. Default to 1.

privateIp string

Set the instance’s private IP.

resourceGroupId string

The ID of resource group which the resource belongs.

securityGroupId string

The Security Group ID of ECS.

securityIps string[]

Set the instance’s IP whitelist of the default security group.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

vpcAuthMode string

Only meaningful if instance_type is Redis and network type is VPC. Valid values are Close, Open. Defaults to Open. Close means the redis instance can be accessed without authentication. Open means authentication is required.

vswitchId string

The ID of VSwitch.

instance_class str
auto_renew bool

Whether to renewal a DB instance automatically or not. It is valid when instance_charge_type is PrePaid. Default to false.

auto_renew_period float

Auto-renewal period of an instance, in the unit of the month. It is valid when instance_charge_type is PrePaid. Valid value:[1~12], Default to 1.

availability_zone str

The Zone to launch the DB instance.

backup_id str

If an instance created based on a backup set generated by another instance is valid, this parameter indicates the ID of the generated backup set.

engine_version str

Engine version. Supported values: 2.8, 4.0 and 5.0. Default value: 2.8. Only 2.8 can be supported for Memcache Instance.

instance_charge_type str

Valid values are PrePaid, PostPaid, Default to PostPaid.

instance_name str

The name of DB instance. It a string of 2 to 256 characters.

instance_type str

The engine to use: Redis or Memcache. Defaults to Redis.

kms_encrypted_password str

An KMS encrypts password used to a instance. If the password is filled in, this field will be ignored.

kms_encryption_context Dict[str, Any]

An KMS encryption context used to decrypt kms_encrypted_password before creating or updating instance with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.

maintain_end_time str

The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).

maintain_start_time str

The start time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).

parameters List[InstanceParameter]

Set of parameters needs to be set after instance was launched. Available parameters can refer to the latest docs Instance configurations table .

password str

The password of the DB instance. The password is a string of 8 to 30 characters and must contain uppercase letters, lowercase letters, and numbers.

period float

The duration that you will buy DB instance (in month). It is valid when instance_charge_type is PrePaid. Valid values: [1~9], 12, 24, 36. Default to 1.

private_ip str

Set the instance’s private IP.

resource_group_id str

The ID of resource group which the resource belongs.

security_group_id str

The Security Group ID of ECS.

security_ips List[str]

Set the instance’s IP whitelist of the default security group.

tags Dict[str, Any]

A mapping of tags to assign to the resource.

vpc_auth_mode str

Only meaningful if instance_type is Redis and network type is VPC. Valid values are Close, Open. Defaults to Open. Close means the redis instance can be accessed without authentication. Open means authentication is required.

vswitch_id str

The ID of VSwitch.

Outputs

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

ConnectionDomain string

Instance connection domain (only Intranet access supported).

Id string
The provider-assigned unique ID for this managed resource.
ConnectionDomain string

Instance connection domain (only Intranet access supported).

Id string
The provider-assigned unique ID for this managed resource.
connectionDomain string

Instance connection domain (only Intranet access supported).

id string
The provider-assigned unique ID for this managed resource.
connection_domain str

Instance connection domain (only Intranet access supported).

id str
The provider-assigned unique ID for this managed resource.

Look up an Existing Instance Resource

Get an existing Instance 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?: InstanceState, opts?: CustomResourceOptions): Instance
static get(resource_name, id, opts=None, auto_renew=None, auto_renew_period=None, availability_zone=None, backup_id=None, connection_domain=None, engine_version=None, instance_charge_type=None, instance_class=None, instance_name=None, instance_type=None, kms_encrypted_password=None, kms_encryption_context=None, maintain_end_time=None, maintain_start_time=None, parameters=None, password=None, period=None, private_ip=None, resource_group_id=None, security_group_id=None, security_ips=None, tags=None, vpc_auth_mode=None, vswitch_id=None, __props__=None);
func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)
public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

AutoRenew bool

Whether to renewal a DB instance automatically or not. It is valid when instance_charge_type is PrePaid. Default to false.

AutoRenewPeriod int

Auto-renewal period of an instance, in the unit of the month. It is valid when instance_charge_type is PrePaid. Valid value:[1~12], Default to 1.

AvailabilityZone string

The Zone to launch the DB instance.

BackupId string

If an instance created based on a backup set generated by another instance is valid, this parameter indicates the ID of the generated backup set.

ConnectionDomain string

Instance connection domain (only Intranet access supported).

EngineVersion string

Engine version. Supported values: 2.8, 4.0 and 5.0. Default value: 2.8. Only 2.8 can be supported for Memcache Instance.

InstanceChargeType string

Valid values are PrePaid, PostPaid, Default to PostPaid.

InstanceClass string
InstanceName string

The name of DB instance. It a string of 2 to 256 characters.

InstanceType string

The engine to use: Redis or Memcache. Defaults to Redis.

KmsEncryptedPassword string

An KMS encrypts password used to a instance. If the password is filled in, this field will be ignored.

KmsEncryptionContext Dictionary<string, object>

An KMS encryption context used to decrypt kms_encrypted_password before creating or updating instance with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.

MaintainEndTime string

The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).

MaintainStartTime string

The start time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).

Parameters List<Pulumi.AliCloud.KVStore.Inputs.InstanceParameterArgs>

Set of parameters needs to be set after instance was launched. Available parameters can refer to the latest docs Instance configurations table .

Password string

The password of the DB instance. The password is a string of 8 to 30 characters and must contain uppercase letters, lowercase letters, and numbers.

Period int

The duration that you will buy DB instance (in month). It is valid when instance_charge_type is PrePaid. Valid values: [1~9], 12, 24, 36. Default to 1.

PrivateIp string

Set the instance’s private IP.

ResourceGroupId string

The ID of resource group which the resource belongs.

SecurityGroupId string

The Security Group ID of ECS.

SecurityIps List<string>

Set the instance’s IP whitelist of the default security group.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

VpcAuthMode string

Only meaningful if instance_type is Redis and network type is VPC. Valid values are Close, Open. Defaults to Open. Close means the redis instance can be accessed without authentication. Open means authentication is required.

VswitchId string

The ID of VSwitch.

AutoRenew bool

Whether to renewal a DB instance automatically or not. It is valid when instance_charge_type is PrePaid. Default to false.

AutoRenewPeriod int

Auto-renewal period of an instance, in the unit of the month. It is valid when instance_charge_type is PrePaid. Valid value:[1~12], Default to 1.

AvailabilityZone string

The Zone to launch the DB instance.

BackupId string

If an instance created based on a backup set generated by another instance is valid, this parameter indicates the ID of the generated backup set.

ConnectionDomain string

Instance connection domain (only Intranet access supported).

EngineVersion string

Engine version. Supported values: 2.8, 4.0 and 5.0. Default value: 2.8. Only 2.8 can be supported for Memcache Instance.

InstanceChargeType string

Valid values are PrePaid, PostPaid, Default to PostPaid.

InstanceClass string
InstanceName string

The name of DB instance. It a string of 2 to 256 characters.

InstanceType string

The engine to use: Redis or Memcache. Defaults to Redis.

KmsEncryptedPassword string

An KMS encrypts password used to a instance. If the password is filled in, this field will be ignored.

KmsEncryptionContext map[string]interface{}

An KMS encryption context used to decrypt kms_encrypted_password before creating or updating instance with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.

MaintainEndTime string

The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).

MaintainStartTime string

The start time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).

Parameters []InstanceParameter

Set of parameters needs to be set after instance was launched. Available parameters can refer to the latest docs Instance configurations table .

Password string

The password of the DB instance. The password is a string of 8 to 30 characters and must contain uppercase letters, lowercase letters, and numbers.

Period int

The duration that you will buy DB instance (in month). It is valid when instance_charge_type is PrePaid. Valid values: [1~9], 12, 24, 36. Default to 1.

PrivateIp string

Set the instance’s private IP.

ResourceGroupId string

The ID of resource group which the resource belongs.

SecurityGroupId string

The Security Group ID of ECS.

SecurityIps []string

Set the instance’s IP whitelist of the default security group.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

VpcAuthMode string

Only meaningful if instance_type is Redis and network type is VPC. Valid values are Close, Open. Defaults to Open. Close means the redis instance can be accessed without authentication. Open means authentication is required.

VswitchId string

The ID of VSwitch.

autoRenew boolean

Whether to renewal a DB instance automatically or not. It is valid when instance_charge_type is PrePaid. Default to false.

autoRenewPeriod number

Auto-renewal period of an instance, in the unit of the month. It is valid when instance_charge_type is PrePaid. Valid value:[1~12], Default to 1.

availabilityZone string

The Zone to launch the DB instance.

backupId string

If an instance created based on a backup set generated by another instance is valid, this parameter indicates the ID of the generated backup set.

connectionDomain string

Instance connection domain (only Intranet access supported).

engineVersion string

Engine version. Supported values: 2.8, 4.0 and 5.0. Default value: 2.8. Only 2.8 can be supported for Memcache Instance.

instanceChargeType string

Valid values are PrePaid, PostPaid, Default to PostPaid.

instanceClass string
instanceName string

The name of DB instance. It a string of 2 to 256 characters.

instanceType string

The engine to use: Redis or Memcache. Defaults to Redis.

kmsEncryptedPassword string

An KMS encrypts password used to a instance. If the password is filled in, this field will be ignored.

kmsEncryptionContext {[key: string]: any}

An KMS encryption context used to decrypt kms_encrypted_password before creating or updating instance with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.

maintainEndTime string

The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).

maintainStartTime string

The start time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).

parameters InstanceParameter[]

Set of parameters needs to be set after instance was launched. Available parameters can refer to the latest docs Instance configurations table .

password string

The password of the DB instance. The password is a string of 8 to 30 characters and must contain uppercase letters, lowercase letters, and numbers.

period number

The duration that you will buy DB instance (in month). It is valid when instance_charge_type is PrePaid. Valid values: [1~9], 12, 24, 36. Default to 1.

privateIp string

Set the instance’s private IP.

resourceGroupId string

The ID of resource group which the resource belongs.

securityGroupId string

The Security Group ID of ECS.

securityIps string[]

Set the instance’s IP whitelist of the default security group.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

vpcAuthMode string

Only meaningful if instance_type is Redis and network type is VPC. Valid values are Close, Open. Defaults to Open. Close means the redis instance can be accessed without authentication. Open means authentication is required.

vswitchId string

The ID of VSwitch.

auto_renew bool

Whether to renewal a DB instance automatically or not. It is valid when instance_charge_type is PrePaid. Default to false.

auto_renew_period float

Auto-renewal period of an instance, in the unit of the month. It is valid when instance_charge_type is PrePaid. Valid value:[1~12], Default to 1.

availability_zone str

The Zone to launch the DB instance.

backup_id str

If an instance created based on a backup set generated by another instance is valid, this parameter indicates the ID of the generated backup set.

connection_domain str

Instance connection domain (only Intranet access supported).

engine_version str

Engine version. Supported values: 2.8, 4.0 and 5.0. Default value: 2.8. Only 2.8 can be supported for Memcache Instance.

instance_charge_type str

Valid values are PrePaid, PostPaid, Default to PostPaid.

instance_class str
instance_name str

The name of DB instance. It a string of 2 to 256 characters.

instance_type str

The engine to use: Redis or Memcache. Defaults to Redis.

kms_encrypted_password str

An KMS encrypts password used to a instance. If the password is filled in, this field will be ignored.

kms_encryption_context Dict[str, Any]

An KMS encryption context used to decrypt kms_encrypted_password before creating or updating instance with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.

maintain_end_time str

The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).

maintain_start_time str

The start time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).

parameters List[InstanceParameter]

Set of parameters needs to be set after instance was launched. Available parameters can refer to the latest docs Instance configurations table .

password str

The password of the DB instance. The password is a string of 8 to 30 characters and must contain uppercase letters, lowercase letters, and numbers.

period float

The duration that you will buy DB instance (in month). It is valid when instance_charge_type is PrePaid. Valid values: [1~9], 12, 24, 36. Default to 1.

private_ip str

Set the instance’s private IP.

resource_group_id str

The ID of resource group which the resource belongs.

security_group_id str

The Security Group ID of ECS.

security_ips List[str]

Set the instance’s IP whitelist of the default security group.

tags Dict[str, Any]

A mapping of tags to assign to the resource.

vpc_auth_mode str

Only meaningful if instance_type is Redis and network type is VPC. Valid values are Close, Open. Defaults to Open. Close means the redis instance can be accessed without authentication. Open means authentication is required.

vswitch_id str

The ID of VSwitch.

Supporting Types

InstanceParameter

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Name string
Value string
Name string
Value string
name string
value string
name str
value str

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.