alicloud.kvstore.Account
Provides a Tair (Redis OSS-Compatible) And Memcache (KVStore) Account resource.
For information about Tair (Redis OSS-Compatible) And Memcache (KVStore) Account and how to use it, see What is Account.
NOTE: Available since v1.66.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf-example";
const _default = alicloud.kvstore.getZones({});
const defaultGetResourceGroups = alicloud.resourcemanager.getResourceGroups({
    status: "OK",
});
const defaultNetwork = new alicloud.vpc.Network("default", {
    vpcName: name,
    cidrBlock: "10.4.0.0/16",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
    vswitchName: name,
    cidrBlock: "10.4.0.0/24",
    vpcId: defaultNetwork.id,
    zoneId: _default.then(_default => _default.zones?.[0]?.id),
});
const defaultInstance = new alicloud.kvstore.Instance("default", {
    dbInstanceName: name,
    vswitchId: defaultSwitch.id,
    resourceGroupId: defaultGetResourceGroups.then(defaultGetResourceGroups => defaultGetResourceGroups.ids?.[0]),
    zoneId: _default.then(_default => _default.zones?.[0]?.id),
    instanceClass: "redis.master.large.default",
    instanceType: "Redis",
    engineVersion: "5.0",
    securityIps: ["10.23.12.24"],
    config: {
        appendonly: "yes",
        "lazyfree-lazy-eviction": "yes",
    },
    tags: {
        Created: "TF",
        For: "example",
    },
});
const defaultAccount = new alicloud.kvstore.Account("default", {
    accountName: "tfexamplename",
    accountPassword: "YourPassword_123",
    instanceId: defaultInstance.id,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "tf-example"
default = alicloud.kvstore.get_zones()
default_get_resource_groups = alicloud.resourcemanager.get_resource_groups(status="OK")
default_network = alicloud.vpc.Network("default",
    vpc_name=name,
    cidr_block="10.4.0.0/16")
default_switch = alicloud.vpc.Switch("default",
    vswitch_name=name,
    cidr_block="10.4.0.0/24",
    vpc_id=default_network.id,
    zone_id=default.zones[0].id)
default_instance = alicloud.kvstore.Instance("default",
    db_instance_name=name,
    vswitch_id=default_switch.id,
    resource_group_id=default_get_resource_groups.ids[0],
    zone_id=default.zones[0].id,
    instance_class="redis.master.large.default",
    instance_type="Redis",
    engine_version="5.0",
    security_ips=["10.23.12.24"],
    config={
        "appendonly": "yes",
        "lazyfree-lazy-eviction": "yes",
    },
    tags={
        "Created": "TF",
        "For": "example",
    })
default_account = alicloud.kvstore.Account("default",
    account_name="tfexamplename",
    account_password="YourPassword_123",
    instance_id=default_instance.id)
package main
import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/kvstore"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "tf-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_default, err := kvstore.GetZones(ctx, &kvstore.GetZonesArgs{}, nil)
		if err != nil {
			return err
		}
		defaultGetResourceGroups, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{
			Status: pulumi.StringRef("OK"),
		}, nil)
		if err != nil {
			return err
		}
		defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
			VpcName:   pulumi.String(name),
			CidrBlock: pulumi.String("10.4.0.0/16"),
		})
		if err != nil {
			return err
		}
		defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
			VswitchName: pulumi.String(name),
			CidrBlock:   pulumi.String("10.4.0.0/24"),
			VpcId:       defaultNetwork.ID(),
			ZoneId:      pulumi.String(_default.Zones[0].Id),
		})
		if err != nil {
			return err
		}
		defaultInstance, err := kvstore.NewInstance(ctx, "default", &kvstore.InstanceArgs{
			DbInstanceName:  pulumi.String(name),
			VswitchId:       defaultSwitch.ID(),
			ResourceGroupId: pulumi.String(defaultGetResourceGroups.Ids[0]),
			ZoneId:          pulumi.String(_default.Zones[0].Id),
			InstanceClass:   pulumi.String("redis.master.large.default"),
			InstanceType:    pulumi.String("Redis"),
			EngineVersion:   pulumi.String("5.0"),
			SecurityIps: pulumi.StringArray{
				pulumi.String("10.23.12.24"),
			},
			Config: pulumi.StringMap{
				"appendonly":             pulumi.String("yes"),
				"lazyfree-lazy-eviction": pulumi.String("yes"),
			},
			Tags: pulumi.StringMap{
				"Created": pulumi.String("TF"),
				"For":     pulumi.String("example"),
			},
		})
		if err != nil {
			return err
		}
		_, err = kvstore.NewAccount(ctx, "default", &kvstore.AccountArgs{
			AccountName:     pulumi.String("tfexamplename"),
			AccountPassword: pulumi.String("YourPassword_123"),
			InstanceId:      defaultInstance.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var name = config.Get("name") ?? "tf-example";
    var @default = AliCloud.KVStore.GetZones.Invoke();
    var defaultGetResourceGroups = AliCloud.ResourceManager.GetResourceGroups.Invoke(new()
    {
        Status = "OK",
    });
    var defaultNetwork = new AliCloud.Vpc.Network("default", new()
    {
        VpcName = name,
        CidrBlock = "10.4.0.0/16",
    });
    var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
    {
        VswitchName = name,
        CidrBlock = "10.4.0.0/24",
        VpcId = defaultNetwork.Id,
        ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
    });
    var defaultInstance = new AliCloud.KVStore.Instance("default", new()
    {
        DbInstanceName = name,
        VswitchId = defaultSwitch.Id,
        ResourceGroupId = defaultGetResourceGroups.Apply(getResourceGroupsResult => getResourceGroupsResult.Ids[0]),
        ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
        InstanceClass = "redis.master.large.default",
        InstanceType = "Redis",
        EngineVersion = "5.0",
        SecurityIps = new[]
        {
            "10.23.12.24",
        },
        Config = 
        {
            { "appendonly", "yes" },
            { "lazyfree-lazy-eviction", "yes" },
        },
        Tags = 
        {
            { "Created", "TF" },
            { "For", "example" },
        },
    });
    var defaultAccount = new AliCloud.KVStore.Account("default", new()
    {
        AccountName = "tfexamplename",
        AccountPassword = "YourPassword_123",
        InstanceId = defaultInstance.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.kvstore.KvstoreFunctions;
import com.pulumi.alicloud.kvstore.inputs.GetZonesArgs;
import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.kvstore.Instance;
import com.pulumi.alicloud.kvstore.InstanceArgs;
import com.pulumi.alicloud.kvstore.Account;
import com.pulumi.alicloud.kvstore.AccountArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var config = ctx.config();
        final var name = config.get("name").orElse("tf-example");
        final var default = KvstoreFunctions.getZones(GetZonesArgs.builder()
            .build());
        final var defaultGetResourceGroups = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
            .status("OK")
            .build());
        var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
            .vpcName(name)
            .cidrBlock("10.4.0.0/16")
            .build());
        var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
            .vswitchName(name)
            .cidrBlock("10.4.0.0/24")
            .vpcId(defaultNetwork.id())
            .zoneId(default_.zones()[0].id())
            .build());
        var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
            .dbInstanceName(name)
            .vswitchId(defaultSwitch.id())
            .resourceGroupId(defaultGetResourceGroups.ids()[0])
            .zoneId(default_.zones()[0].id())
            .instanceClass("redis.master.large.default")
            .instanceType("Redis")
            .engineVersion("5.0")
            .securityIps("10.23.12.24")
            .config(Map.ofEntries(
                Map.entry("appendonly", "yes"),
                Map.entry("lazyfree-lazy-eviction", "yes")
            ))
            .tags(Map.ofEntries(
                Map.entry("Created", "TF"),
                Map.entry("For", "example")
            ))
            .build());
        var defaultAccount = new Account("defaultAccount", AccountArgs.builder()
            .accountName("tfexamplename")
            .accountPassword("YourPassword_123")
            .instanceId(defaultInstance.id())
            .build());
    }
}
configuration:
  name:
    type: string
    default: tf-example
resources:
  defaultNetwork:
    type: alicloud:vpc:Network
    name: default
    properties:
      vpcName: ${name}
      cidrBlock: 10.4.0.0/16
  defaultSwitch:
    type: alicloud:vpc:Switch
    name: default
    properties:
      vswitchName: ${name}
      cidrBlock: 10.4.0.0/24
      vpcId: ${defaultNetwork.id}
      zoneId: ${default.zones[0].id}
  defaultInstance:
    type: alicloud:kvstore:Instance
    name: default
    properties:
      dbInstanceName: ${name}
      vswitchId: ${defaultSwitch.id}
      resourceGroupId: ${defaultGetResourceGroups.ids[0]}
      zoneId: ${default.zones[0].id}
      instanceClass: redis.master.large.default
      instanceType: Redis
      engineVersion: '5.0'
      securityIps:
        - 10.23.12.24
      config:
        appendonly: yes
        lazyfree-lazy-eviction: yes
      tags:
        Created: TF
        For: example
  defaultAccount:
    type: alicloud:kvstore:Account
    name: default
    properties:
      accountName: tfexamplename
      accountPassword: YourPassword_123
      instanceId: ${defaultInstance.id}
variables:
  default:
    fn::invoke:
      function: alicloud:kvstore:getZones
      arguments: {}
  defaultGetResourceGroups:
    fn::invoke:
      function: alicloud:resourcemanager:getResourceGroups
      arguments:
        status: OK
Create Account Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Account(name: string, args: AccountArgs, opts?: CustomResourceOptions);@overload
def Account(resource_name: str,
            args: AccountArgs,
            opts: Optional[ResourceOptions] = None)
@overload
def Account(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            account_name: Optional[str] = None,
            instance_id: Optional[str] = None,
            account_password: Optional[str] = None,
            account_privilege: Optional[str] = None,
            account_type: Optional[str] = None,
            description: Optional[str] = None,
            kms_encrypted_password: Optional[str] = None,
            kms_encryption_context: Optional[Mapping[str, str]] = None)func NewAccount(ctx *Context, name string, args AccountArgs, opts ...ResourceOption) (*Account, error)public Account(string name, AccountArgs args, CustomResourceOptions? opts = null)
public Account(String name, AccountArgs args)
public Account(String name, AccountArgs args, CustomResourceOptions options)
type: alicloud:kvstore:Account
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 AccountArgs
- 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 AccountArgs
- 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 AccountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AccountArgs
- 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 exampleaccountResourceResourceFromKvstoreaccount = new AliCloud.KVStore.Account("exampleaccountResourceResourceFromKvstoreaccount", new()
{
    AccountName = "string",
    InstanceId = "string",
    AccountPassword = "string",
    AccountPrivilege = "string",
    AccountType = "string",
    Description = "string",
    KmsEncryptedPassword = "string",
    KmsEncryptionContext = 
    {
        { "string", "string" },
    },
});
example, err := kvstore.NewAccount(ctx, "exampleaccountResourceResourceFromKvstoreaccount", &kvstore.AccountArgs{
	AccountName:          pulumi.String("string"),
	InstanceId:           pulumi.String("string"),
	AccountPassword:      pulumi.String("string"),
	AccountPrivilege:     pulumi.String("string"),
	AccountType:          pulumi.String("string"),
	Description:          pulumi.String("string"),
	KmsEncryptedPassword: pulumi.String("string"),
	KmsEncryptionContext: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var exampleaccountResourceResourceFromKvstoreaccount = new com.pulumi.alicloud.kvstore.Account("exampleaccountResourceResourceFromKvstoreaccount", com.pulumi.alicloud.kvstore.AccountArgs.builder()
    .accountName("string")
    .instanceId("string")
    .accountPassword("string")
    .accountPrivilege("string")
    .accountType("string")
    .description("string")
    .kmsEncryptedPassword("string")
    .kmsEncryptionContext(Map.of("string", "string"))
    .build());
exampleaccount_resource_resource_from_kvstoreaccount = alicloud.kvstore.Account("exampleaccountResourceResourceFromKvstoreaccount",
    account_name="string",
    instance_id="string",
    account_password="string",
    account_privilege="string",
    account_type="string",
    description="string",
    kms_encrypted_password="string",
    kms_encryption_context={
        "string": "string",
    })
const exampleaccountResourceResourceFromKvstoreaccount = new alicloud.kvstore.Account("exampleaccountResourceResourceFromKvstoreaccount", {
    accountName: "string",
    instanceId: "string",
    accountPassword: "string",
    accountPrivilege: "string",
    accountType: "string",
    description: "string",
    kmsEncryptedPassword: "string",
    kmsEncryptionContext: {
        string: "string",
    },
});
type: alicloud:kvstore:Account
properties:
    accountName: string
    accountPassword: string
    accountPrivilege: string
    accountType: string
    description: string
    instanceId: string
    kmsEncryptedPassword: string
    kmsEncryptionContext:
        string: string
Account 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 Account resource accepts the following input properties:
- AccountName string
- The name of the account. The name must meet the following requirements:- The name must start with a lowercase letter and can contain lowercase letters, digits, and underscores (_).
- The name can be up to 100 characters in length.
- The name cannot be one of the reserved words listed in the Reserved words for Redis account names section.
 
- InstanceId string
- The Id of instance in which account belongs (The engine version of instance must be 4.0 or 4.0+).
- AccountPassword string
- The password of the account. The password must be 8 to 32 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include !@ # $ % ^ & * ( ) _ + - =. You have to specify one ofaccount_passwordandkms_encrypted_passwordfields.
- AccountPrivilege string
- The privilege of account access database. Default value: RoleReadWrite- RoleReadOnly: This value is only for Redis and Memcache
- RoleReadWrite: This value is only for Redis and Memcache
 
- AccountType string
- Privilege type of account.- Normal: Common privilege. Default to Normal.
 
- Description string
- Database description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- KmsEncrypted stringPassword 
- An KMS encrypts password used to a Tair (Redis OSS-Compatible) And Memcache (KVStore) account. If the account_passwordis filled in, this field will be ignored.
- KmsEncryption Dictionary<string, string>Context 
- An KMS encryption context used to decrypt kms_encrypted_passwordbefore creating or updating a Tair (Redis OSS-Compatible) And Memcache (KVStore) account withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.
- AccountName string
- The name of the account. The name must meet the following requirements:- The name must start with a lowercase letter and can contain lowercase letters, digits, and underscores (_).
- The name can be up to 100 characters in length.
- The name cannot be one of the reserved words listed in the Reserved words for Redis account names section.
 
- InstanceId string
- The Id of instance in which account belongs (The engine version of instance must be 4.0 or 4.0+).
- AccountPassword string
- The password of the account. The password must be 8 to 32 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include !@ # $ % ^ & * ( ) _ + - =. You have to specify one ofaccount_passwordandkms_encrypted_passwordfields.
- AccountPrivilege string
- The privilege of account access database. Default value: RoleReadWrite- RoleReadOnly: This value is only for Redis and Memcache
- RoleReadWrite: This value is only for Redis and Memcache
 
- AccountType string
- Privilege type of account.- Normal: Common privilege. Default to Normal.
 
- Description string
- Database description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- KmsEncrypted stringPassword 
- An KMS encrypts password used to a Tair (Redis OSS-Compatible) And Memcache (KVStore) account. If the account_passwordis filled in, this field will be ignored.
- KmsEncryption map[string]stringContext 
- An KMS encryption context used to decrypt kms_encrypted_passwordbefore creating or updating a Tair (Redis OSS-Compatible) And Memcache (KVStore) account withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.
- accountName String
- The name of the account. The name must meet the following requirements:- The name must start with a lowercase letter and can contain lowercase letters, digits, and underscores (_).
- The name can be up to 100 characters in length.
- The name cannot be one of the reserved words listed in the Reserved words for Redis account names section.
 
- instanceId String
- The Id of instance in which account belongs (The engine version of instance must be 4.0 or 4.0+).
- accountPassword String
- The password of the account. The password must be 8 to 32 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include !@ # $ % ^ & * ( ) _ + - =. You have to specify one ofaccount_passwordandkms_encrypted_passwordfields.
- accountPrivilege String
- The privilege of account access database. Default value: RoleReadWrite- RoleReadOnly: This value is only for Redis and Memcache
- RoleReadWrite: This value is only for Redis and Memcache
 
- accountType String
- Privilege type of account.- Normal: Common privilege. Default to Normal.
 
- description String
- Database description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- kmsEncrypted StringPassword 
- An KMS encrypts password used to a Tair (Redis OSS-Compatible) And Memcache (KVStore) account. If the account_passwordis filled in, this field will be ignored.
- kmsEncryption Map<String,String>Context 
- An KMS encryption context used to decrypt kms_encrypted_passwordbefore creating or updating a Tair (Redis OSS-Compatible) And Memcache (KVStore) account withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.
- accountName string
- The name of the account. The name must meet the following requirements:- The name must start with a lowercase letter and can contain lowercase letters, digits, and underscores (_).
- The name can be up to 100 characters in length.
- The name cannot be one of the reserved words listed in the Reserved words for Redis account names section.
 
- instanceId string
- The Id of instance in which account belongs (The engine version of instance must be 4.0 or 4.0+).
- accountPassword string
- The password of the account. The password must be 8 to 32 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include !@ # $ % ^ & * ( ) _ + - =. You have to specify one ofaccount_passwordandkms_encrypted_passwordfields.
- accountPrivilege string
- The privilege of account access database. Default value: RoleReadWrite- RoleReadOnly: This value is only for Redis and Memcache
- RoleReadWrite: This value is only for Redis and Memcache
 
- accountType string
- Privilege type of account.- Normal: Common privilege. Default to Normal.
 
- description string
- Database description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- kmsEncrypted stringPassword 
- An KMS encrypts password used to a Tair (Redis OSS-Compatible) And Memcache (KVStore) account. If the account_passwordis filled in, this field will be ignored.
- kmsEncryption {[key: string]: string}Context 
- An KMS encryption context used to decrypt kms_encrypted_passwordbefore creating or updating a Tair (Redis OSS-Compatible) And Memcache (KVStore) account withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.
- account_name str
- The name of the account. The name must meet the following requirements:- The name must start with a lowercase letter and can contain lowercase letters, digits, and underscores (_).
- The name can be up to 100 characters in length.
- The name cannot be one of the reserved words listed in the Reserved words for Redis account names section.
 
- instance_id str
- The Id of instance in which account belongs (The engine version of instance must be 4.0 or 4.0+).
- account_password str
- The password of the account. The password must be 8 to 32 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include !@ # $ % ^ & * ( ) _ + - =. You have to specify one ofaccount_passwordandkms_encrypted_passwordfields.
- account_privilege str
- The privilege of account access database. Default value: RoleReadWrite- RoleReadOnly: This value is only for Redis and Memcache
- RoleReadWrite: This value is only for Redis and Memcache
 
- account_type str
- Privilege type of account.- Normal: Common privilege. Default to Normal.
 
- description str
- Database description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- kms_encrypted_ strpassword 
- An KMS encrypts password used to a Tair (Redis OSS-Compatible) And Memcache (KVStore) account. If the account_passwordis filled in, this field will be ignored.
- kms_encryption_ Mapping[str, str]context 
- An KMS encryption context used to decrypt kms_encrypted_passwordbefore creating or updating a Tair (Redis OSS-Compatible) And Memcache (KVStore) account withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.
- accountName String
- The name of the account. The name must meet the following requirements:- The name must start with a lowercase letter and can contain lowercase letters, digits, and underscores (_).
- The name can be up to 100 characters in length.
- The name cannot be one of the reserved words listed in the Reserved words for Redis account names section.
 
- instanceId String
- The Id of instance in which account belongs (The engine version of instance must be 4.0 or 4.0+).
- accountPassword String
- The password of the account. The password must be 8 to 32 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include !@ # $ % ^ & * ( ) _ + - =. You have to specify one ofaccount_passwordandkms_encrypted_passwordfields.
- accountPrivilege String
- The privilege of account access database. Default value: RoleReadWrite- RoleReadOnly: This value is only for Redis and Memcache
- RoleReadWrite: This value is only for Redis and Memcache
 
- accountType String
- Privilege type of account.- Normal: Common privilege. Default to Normal.
 
- description String
- Database description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- kmsEncrypted StringPassword 
- An KMS encrypts password used to a Tair (Redis OSS-Compatible) And Memcache (KVStore) account. If the account_passwordis filled in, this field will be ignored.
- kmsEncryption Map<String>Context 
- An KMS encryption context used to decrypt kms_encrypted_passwordbefore creating or updating a Tair (Redis OSS-Compatible) And Memcache (KVStore) account withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.
Outputs
All input properties are implicitly available as output properties. Additionally, the Account resource produces the following output properties:
Look up Existing Account Resource
Get an existing Account 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?: AccountState, opts?: CustomResourceOptions): Account@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_name: Optional[str] = None,
        account_password: Optional[str] = None,
        account_privilege: Optional[str] = None,
        account_type: Optional[str] = None,
        description: Optional[str] = None,
        instance_id: Optional[str] = None,
        kms_encrypted_password: Optional[str] = None,
        kms_encryption_context: Optional[Mapping[str, str]] = None,
        status: Optional[str] = None) -> Accountfunc GetAccount(ctx *Context, name string, id IDInput, state *AccountState, opts ...ResourceOption) (*Account, error)public static Account Get(string name, Input<string> id, AccountState? state, CustomResourceOptions? opts = null)public static Account get(String name, Output<String> id, AccountState state, CustomResourceOptions options)resources:  _:    type: alicloud:kvstore:Account    get:      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.
- AccountName string
- The name of the account. The name must meet the following requirements:- The name must start with a lowercase letter and can contain lowercase letters, digits, and underscores (_).
- The name can be up to 100 characters in length.
- The name cannot be one of the reserved words listed in the Reserved words for Redis account names section.
 
- AccountPassword string
- The password of the account. The password must be 8 to 32 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include !@ # $ % ^ & * ( ) _ + - =. You have to specify one ofaccount_passwordandkms_encrypted_passwordfields.
- AccountPrivilege string
- The privilege of account access database. Default value: RoleReadWrite- RoleReadOnly: This value is only for Redis and Memcache
- RoleReadWrite: This value is only for Redis and Memcache
 
- AccountType string
- Privilege type of account.- Normal: Common privilege. Default to Normal.
 
- Description string
- Database description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- InstanceId string
- The Id of instance in which account belongs (The engine version of instance must be 4.0 or 4.0+).
- KmsEncrypted stringPassword 
- An KMS encrypts password used to a Tair (Redis OSS-Compatible) And Memcache (KVStore) account. If the account_passwordis filled in, this field will be ignored.
- KmsEncryption Dictionary<string, string>Context 
- An KMS encryption context used to decrypt kms_encrypted_passwordbefore creating or updating a Tair (Redis OSS-Compatible) And Memcache (KVStore) account withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.
- Status string
- The status of Tair (Redis OSS-Compatible) And Memcache (KVStore) Account.
- AccountName string
- The name of the account. The name must meet the following requirements:- The name must start with a lowercase letter and can contain lowercase letters, digits, and underscores (_).
- The name can be up to 100 characters in length.
- The name cannot be one of the reserved words listed in the Reserved words for Redis account names section.
 
- AccountPassword string
- The password of the account. The password must be 8 to 32 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include !@ # $ % ^ & * ( ) _ + - =. You have to specify one ofaccount_passwordandkms_encrypted_passwordfields.
- AccountPrivilege string
- The privilege of account access database. Default value: RoleReadWrite- RoleReadOnly: This value is only for Redis and Memcache
- RoleReadWrite: This value is only for Redis and Memcache
 
- AccountType string
- Privilege type of account.- Normal: Common privilege. Default to Normal.
 
- Description string
- Database description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- InstanceId string
- The Id of instance in which account belongs (The engine version of instance must be 4.0 or 4.0+).
- KmsEncrypted stringPassword 
- An KMS encrypts password used to a Tair (Redis OSS-Compatible) And Memcache (KVStore) account. If the account_passwordis filled in, this field will be ignored.
- KmsEncryption map[string]stringContext 
- An KMS encryption context used to decrypt kms_encrypted_passwordbefore creating or updating a Tair (Redis OSS-Compatible) And Memcache (KVStore) account withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.
- Status string
- The status of Tair (Redis OSS-Compatible) And Memcache (KVStore) Account.
- accountName String
- The name of the account. The name must meet the following requirements:- The name must start with a lowercase letter and can contain lowercase letters, digits, and underscores (_).
- The name can be up to 100 characters in length.
- The name cannot be one of the reserved words listed in the Reserved words for Redis account names section.
 
- accountPassword String
- The password of the account. The password must be 8 to 32 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include !@ # $ % ^ & * ( ) _ + - =. You have to specify one ofaccount_passwordandkms_encrypted_passwordfields.
- accountPrivilege String
- The privilege of account access database. Default value: RoleReadWrite- RoleReadOnly: This value is only for Redis and Memcache
- RoleReadWrite: This value is only for Redis and Memcache
 
- accountType String
- Privilege type of account.- Normal: Common privilege. Default to Normal.
 
- description String
- Database description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- instanceId String
- The Id of instance in which account belongs (The engine version of instance must be 4.0 or 4.0+).
- kmsEncrypted StringPassword 
- An KMS encrypts password used to a Tair (Redis OSS-Compatible) And Memcache (KVStore) account. If the account_passwordis filled in, this field will be ignored.
- kmsEncryption Map<String,String>Context 
- An KMS encryption context used to decrypt kms_encrypted_passwordbefore creating or updating a Tair (Redis OSS-Compatible) And Memcache (KVStore) account withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.
- status String
- The status of Tair (Redis OSS-Compatible) And Memcache (KVStore) Account.
- accountName string
- The name of the account. The name must meet the following requirements:- The name must start with a lowercase letter and can contain lowercase letters, digits, and underscores (_).
- The name can be up to 100 characters in length.
- The name cannot be one of the reserved words listed in the Reserved words for Redis account names section.
 
- accountPassword string
- The password of the account. The password must be 8 to 32 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include !@ # $ % ^ & * ( ) _ + - =. You have to specify one ofaccount_passwordandkms_encrypted_passwordfields.
- accountPrivilege string
- The privilege of account access database. Default value: RoleReadWrite- RoleReadOnly: This value is only for Redis and Memcache
- RoleReadWrite: This value is only for Redis and Memcache
 
- accountType string
- Privilege type of account.- Normal: Common privilege. Default to Normal.
 
- description string
- Database description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- instanceId string
- The Id of instance in which account belongs (The engine version of instance must be 4.0 or 4.0+).
- kmsEncrypted stringPassword 
- An KMS encrypts password used to a Tair (Redis OSS-Compatible) And Memcache (KVStore) account. If the account_passwordis filled in, this field will be ignored.
- kmsEncryption {[key: string]: string}Context 
- An KMS encryption context used to decrypt kms_encrypted_passwordbefore creating or updating a Tair (Redis OSS-Compatible) And Memcache (KVStore) account withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.
- status string
- The status of Tair (Redis OSS-Compatible) And Memcache (KVStore) Account.
- account_name str
- The name of the account. The name must meet the following requirements:- The name must start with a lowercase letter and can contain lowercase letters, digits, and underscores (_).
- The name can be up to 100 characters in length.
- The name cannot be one of the reserved words listed in the Reserved words for Redis account names section.
 
- account_password str
- The password of the account. The password must be 8 to 32 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include !@ # $ % ^ & * ( ) _ + - =. You have to specify one ofaccount_passwordandkms_encrypted_passwordfields.
- account_privilege str
- The privilege of account access database. Default value: RoleReadWrite- RoleReadOnly: This value is only for Redis and Memcache
- RoleReadWrite: This value is only for Redis and Memcache
 
- account_type str
- Privilege type of account.- Normal: Common privilege. Default to Normal.
 
- description str
- Database description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- instance_id str
- The Id of instance in which account belongs (The engine version of instance must be 4.0 or 4.0+).
- kms_encrypted_ strpassword 
- An KMS encrypts password used to a Tair (Redis OSS-Compatible) And Memcache (KVStore) account. If the account_passwordis filled in, this field will be ignored.
- kms_encryption_ Mapping[str, str]context 
- An KMS encryption context used to decrypt kms_encrypted_passwordbefore creating or updating a Tair (Redis OSS-Compatible) And Memcache (KVStore) account withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.
- status str
- The status of Tair (Redis OSS-Compatible) And Memcache (KVStore) Account.
- accountName String
- The name of the account. The name must meet the following requirements:- The name must start with a lowercase letter and can contain lowercase letters, digits, and underscores (_).
- The name can be up to 100 characters in length.
- The name cannot be one of the reserved words listed in the Reserved words for Redis account names section.
 
- accountPassword String
- The password of the account. The password must be 8 to 32 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include !@ # $ % ^ & * ( ) _ + - =. You have to specify one ofaccount_passwordandkms_encrypted_passwordfields.
- accountPrivilege String
- The privilege of account access database. Default value: RoleReadWrite- RoleReadOnly: This value is only for Redis and Memcache
- RoleReadWrite: This value is only for Redis and Memcache
 
- accountType String
- Privilege type of account.- Normal: Common privilege. Default to Normal.
 
- description String
- Database description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- instanceId String
- The Id of instance in which account belongs (The engine version of instance must be 4.0 or 4.0+).
- kmsEncrypted StringPassword 
- An KMS encrypts password used to a Tair (Redis OSS-Compatible) And Memcache (KVStore) account. If the account_passwordis filled in, this field will be ignored.
- kmsEncryption Map<String>Context 
- An KMS encryption context used to decrypt kms_encrypted_passwordbefore creating or updating a Tair (Redis OSS-Compatible) And Memcache (KVStore) account withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.
- status String
- The status of Tair (Redis OSS-Compatible) And Memcache (KVStore) Account.
Import
Tair (Redis OSS-Compatible) And Memcache (KVStore) Account can be imported using the id, e.g.
$ pulumi import alicloud:kvstore/account:Account example <instance_id>:<account_name>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the alicloudTerraform Provider.
