1. Registry
  2. Packages
  3. Alibaba Cloud Provider
  4. API Docs
  5. kvcachestorekvcache
  6. Store
Viewing docs for Alibaba Cloud v3.109.1
published on Tuesday, Oct 13, 2026 by Pulumi
alicloud logo alicloud logo
Viewing docs for Alibaba Cloud v3.109.1
published on Tuesday, Oct 13, 2026 by Pulumi

    Provides a Kvcachestore Kv Cache Store resource.

    For information about Kvcachestore Kv Cache Store and how to use it, see What is Kv Cache Store.

    NOTE: Available since v1.294.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") || "terraform-example";
    const _default = new alicloud.kvcachestorekvcache.Store("default", {
        name: name,
        description: "example kvcachestore instance",
        zoneId: "cn-shanghai-cloudspe-b",
        hpnZone: "b1",
        capacity: 307200,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.kvcachestorekvcache.Store("default",
        name=name,
        description="example kvcachestore instance",
        zone_id="cn-shanghai-cloudspe-b",
        hpn_zone="b1",
        capacity=307200)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/kvcachestorekvcache"
    	"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 := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_, err := kvcachestorekvcache.NewStore(ctx, "default", &kvcachestorekvcache.StoreArgs{
    			Name:        pulumi.String(name),
    			Description: pulumi.String("example kvcachestore instance"),
    			ZoneId:      pulumi.String("cn-shanghai-cloudspe-b"),
    			HpnZone:     pulumi.String("b1"),
    			Capacity:    pulumi.Int(307200),
    		})
    		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") ?? "terraform-example";
        var @default = new AliCloud.KvcachestoreKvCache.Store("default", new()
        {
            Name = name,
            Description = "example kvcachestore instance",
            ZoneId = "cn-shanghai-cloudspe-b",
            HpnZone = "b1",
            Capacity = 307200,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.kvcachestorekvcache.Store;
    import com.pulumi.alicloud.kvcachestorekvcache.StoreArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            var default_ = new Store("default", StoreArgs.builder()
                .name(name)
                .description("example kvcachestore instance")
                .zoneId("cn-shanghai-cloudspe-b")
                .hpnZone("b1")
                .capacity(307200)
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      default:
        type: alicloud:kvcachestorekvcache:Store
        properties:
          name: ${name}
          description: example kvcachestore instance
          zoneId: cn-shanghai-cloudspe-b
          hpnZone: b1
          capacity: 307200
    
    terraform {
      required_providers {
        alicloud = {
          source = "pulumi/alicloud"
        }
      }
    }
    
    resource "alicloud_kvcachestorekvcache_store" "default" {
      lifecycle {
        create_before_destroy = true
      }
      name        = var.name
      description = "example kvcachestore instance"
      zone_id     = "cn-shanghai-cloudspe-b"
      hpn_zone    = "b1"
      capacity    = 307200
    }
    variable "name" {
      type    = string
      default = "terraform-example"
    }
    

    📚 Need more examples? VIEW MORE EXAMPLES

    Create Store Resource

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

    Constructor syntax

    new Store(name: string, args: StoreArgs, opts?: CustomResourceOptions);
    @overload
    def Store(resource_name: str,
              args: StoreArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Store(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              capacity: Optional[int] = None,
              hpn_zone: Optional[str] = None,
              zone_id: Optional[str] = None,
              description: Optional[str] = None,
              name: Optional[str] = None,
              payment_type: Optional[str] = None)
    func NewStore(ctx *Context, name string, args StoreArgs, opts ...ResourceOption) (*Store, error)
    public Store(string name, StoreArgs args, CustomResourceOptions? opts = null)
    public Store(String name, StoreArgs args)
    public Store(String name, StoreArgs args, CustomResourceOptions options)
    
    type: alicloud:kvcachestorekvcache:Store
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "alicloud_kvcachestorekvcache_store" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args StoreArgs
    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 StoreArgs
    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 StoreArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StoreArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StoreArgs
    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 storeResource = new AliCloud.KvcachestoreKvCache.Store("storeResource", new()
    {
        Capacity = 0,
        HpnZone = "string",
        ZoneId = "string",
        Description = "string",
        Name = "string",
        PaymentType = "string",
    });
    
    example, err := kvcachestorekvcache.NewStore(ctx, "storeResource", &kvcachestorekvcache.StoreArgs{
    	Capacity:    pulumi.Int(0),
    	HpnZone:     pulumi.String("string"),
    	ZoneId:      pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	PaymentType: pulumi.String("string"),
    })
    
    resource "alicloud_kvcachestorekvcache_store" "storeResource" {
      lifecycle {
        create_before_destroy = true
      }
      capacity     = 0
      hpn_zone     = "string"
      zone_id      = "string"
      description  = "string"
      name         = "string"
      payment_type = "string"
    }
    
    var storeResource = new com.pulumi.alicloud.kvcachestorekvcache.Store("storeResource", com.pulumi.alicloud.kvcachestorekvcache.StoreArgs.builder()
        .capacity(0)
        .hpnZone("string")
        .zoneId("string")
        .description("string")
        .name("string")
        .paymentType("string")
        .build());
    
    store_resource = alicloud.kvcachestorekvcache.Store("storeResource",
        capacity=0,
        hpn_zone="string",
        zone_id="string",
        description="string",
        name="string",
        payment_type="string")
    
    const storeResource = new alicloud.kvcachestorekvcache.Store("storeResource", {
        capacity: 0,
        hpnZone: "string",
        zoneId: "string",
        description: "string",
        name: "string",
        paymentType: "string",
    });
    
    type: alicloud:kvcachestorekvcache:Store
    properties:
        capacity: 0
        description: string
        hpnZone: string
        name: string
        paymentType: string
        zoneId: string
    

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

    Capacity int
    The storage capacity of the instance. Unit: GiB. The minimum value is 307200 (300 TiB), and the value must be a multiple of 307200.
    HpnZone string
    The cluster ID (HPN zone) of the instance.
    ZoneId string
    The zone ID of the instance.
    Description string
    The description of the instance.
    Name string
    The name of the instance.
    PaymentType string
    The payment type of the instance. Valid values: PREPAY, POSTPAY.
    Capacity int
    The storage capacity of the instance. Unit: GiB. The minimum value is 307200 (300 TiB), and the value must be a multiple of 307200.
    HpnZone string
    The cluster ID (HPN zone) of the instance.
    ZoneId string
    The zone ID of the instance.
    Description string
    The description of the instance.
    Name string
    The name of the instance.
    PaymentType string
    The payment type of the instance. Valid values: PREPAY, POSTPAY.
    capacity number
    The storage capacity of the instance. Unit: GiB. The minimum value is 307200 (300 TiB), and the value must be a multiple of 307200.
    hpn_zone string
    The cluster ID (HPN zone) of the instance.
    zone_id string
    The zone ID of the instance.
    description string
    The description of the instance.
    name string
    The name of the instance.
    payment_type string
    The payment type of the instance. Valid values: PREPAY, POSTPAY.
    capacity Integer
    The storage capacity of the instance. Unit: GiB. The minimum value is 307200 (300 TiB), and the value must be a multiple of 307200.
    hpnZone String
    The cluster ID (HPN zone) of the instance.
    zoneId String
    The zone ID of the instance.
    description String
    The description of the instance.
    name String
    The name of the instance.
    paymentType String
    The payment type of the instance. Valid values: PREPAY, POSTPAY.
    capacity number
    The storage capacity of the instance. Unit: GiB. The minimum value is 307200 (300 TiB), and the value must be a multiple of 307200.
    hpnZone string
    The cluster ID (HPN zone) of the instance.
    zoneId string
    The zone ID of the instance.
    description string
    The description of the instance.
    name string
    The name of the instance.
    paymentType string
    The payment type of the instance. Valid values: PREPAY, POSTPAY.
    capacity int
    The storage capacity of the instance. Unit: GiB. The minimum value is 307200 (300 TiB), and the value must be a multiple of 307200.
    hpn_zone str
    The cluster ID (HPN zone) of the instance.
    zone_id str
    The zone ID of the instance.
    description str
    The description of the instance.
    name str
    The name of the instance.
    payment_type str
    The payment type of the instance. Valid values: PREPAY, POSTPAY.
    capacity Number
    The storage capacity of the instance. Unit: GiB. The minimum value is 307200 (300 TiB), and the value must be a multiple of 307200.
    hpnZone String
    The cluster ID (HPN zone) of the instance.
    zoneId String
    The zone ID of the instance.
    description String
    The description of the instance.
    name String
    The name of the instance.
    paymentType String
    The payment type of the instance. Valid values: PREPAY, POSTPAY.

    Outputs

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

    CreateTime string
    The creation time of the instance (ISO 8601).
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the instance. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.
    CreateTime string
    The creation time of the instance (ISO 8601).
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the instance. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.
    create_time string
    The creation time of the instance (ISO 8601).
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the instance. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.
    createTime String
    The creation time of the instance (ISO 8601).
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the instance. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.
    createTime string
    The creation time of the instance (ISO 8601).
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the instance. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.
    create_time str
    The creation time of the instance (ISO 8601).
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the instance. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.
    createTime String
    The creation time of the instance (ISO 8601).
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the instance. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.

    Look up Existing Store Resource

    Get an existing Store 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?: StoreState, opts?: CustomResourceOptions): Store
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            capacity: Optional[int] = None,
            create_time: Optional[str] = None,
            description: Optional[str] = None,
            hpn_zone: Optional[str] = None,
            name: Optional[str] = None,
            payment_type: Optional[str] = None,
            status: Optional[str] = None,
            zone_id: Optional[str] = None) -> Store
    func GetStore(ctx *Context, name string, id IDInput, state *StoreState, opts ...ResourceOption) (*Store, error)
    public static Store Get(string name, Input<string> id, StoreState? state, CustomResourceOptions? opts = null)
    public static Store get(String name, Output<String> id, StoreState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:kvcachestorekvcache:Store    get:      id: ${id}
    import {
      to = alicloud_kvcachestorekvcache_store.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Capacity int
    The storage capacity of the instance. Unit: GiB. The minimum value is 307200 (300 TiB), and the value must be a multiple of 307200.
    CreateTime string
    The creation time of the instance (ISO 8601).
    Description string
    The description of the instance.
    HpnZone string
    The cluster ID (HPN zone) of the instance.
    Name string
    The name of the instance.
    PaymentType string
    The payment type of the instance. Valid values: PREPAY, POSTPAY.
    Status string
    The status of the instance. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.
    ZoneId string
    The zone ID of the instance.
    Capacity int
    The storage capacity of the instance. Unit: GiB. The minimum value is 307200 (300 TiB), and the value must be a multiple of 307200.
    CreateTime string
    The creation time of the instance (ISO 8601).
    Description string
    The description of the instance.
    HpnZone string
    The cluster ID (HPN zone) of the instance.
    Name string
    The name of the instance.
    PaymentType string
    The payment type of the instance. Valid values: PREPAY, POSTPAY.
    Status string
    The status of the instance. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.
    ZoneId string
    The zone ID of the instance.
    capacity number
    The storage capacity of the instance. Unit: GiB. The minimum value is 307200 (300 TiB), and the value must be a multiple of 307200.
    create_time string
    The creation time of the instance (ISO 8601).
    description string
    The description of the instance.
    hpn_zone string
    The cluster ID (HPN zone) of the instance.
    name string
    The name of the instance.
    payment_type string
    The payment type of the instance. Valid values: PREPAY, POSTPAY.
    status string
    The status of the instance. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.
    zone_id string
    The zone ID of the instance.
    capacity Integer
    The storage capacity of the instance. Unit: GiB. The minimum value is 307200 (300 TiB), and the value must be a multiple of 307200.
    createTime String
    The creation time of the instance (ISO 8601).
    description String
    The description of the instance.
    hpnZone String
    The cluster ID (HPN zone) of the instance.
    name String
    The name of the instance.
    paymentType String
    The payment type of the instance. Valid values: PREPAY, POSTPAY.
    status String
    The status of the instance. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.
    zoneId String
    The zone ID of the instance.
    capacity number
    The storage capacity of the instance. Unit: GiB. The minimum value is 307200 (300 TiB), and the value must be a multiple of 307200.
    createTime string
    The creation time of the instance (ISO 8601).
    description string
    The description of the instance.
    hpnZone string
    The cluster ID (HPN zone) of the instance.
    name string
    The name of the instance.
    paymentType string
    The payment type of the instance. Valid values: PREPAY, POSTPAY.
    status string
    The status of the instance. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.
    zoneId string
    The zone ID of the instance.
    capacity int
    The storage capacity of the instance. Unit: GiB. The minimum value is 307200 (300 TiB), and the value must be a multiple of 307200.
    create_time str
    The creation time of the instance (ISO 8601).
    description str
    The description of the instance.
    hpn_zone str
    The cluster ID (HPN zone) of the instance.
    name str
    The name of the instance.
    payment_type str
    The payment type of the instance. Valid values: PREPAY, POSTPAY.
    status str
    The status of the instance. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.
    zone_id str
    The zone ID of the instance.
    capacity Number
    The storage capacity of the instance. Unit: GiB. The minimum value is 307200 (300 TiB), and the value must be a multiple of 307200.
    createTime String
    The creation time of the instance (ISO 8601).
    description String
    The description of the instance.
    hpnZone String
    The cluster ID (HPN zone) of the instance.
    name String
    The name of the instance.
    paymentType String
    The payment type of the instance. Valid values: PREPAY, POSTPAY.
    status String
    The status of the instance. Valid values: Creating, Available, InUse, Stopping, Stopped, Deleting.
    zoneId String
    The zone ID of the instance.

    Import

    Kvcachestore Kv Cache Store can be imported using the id, e.g.

    $ pulumi import alicloud:kvcachestorekvcache/store:Store example <kvcs_id>
    

    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 alicloud Terraform Provider.
    alicloud logo alicloud logo
    Viewing docs for Alibaba Cloud v3.109.1
    published on Tuesday, Oct 13, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial