GetInstanceClasses

This data source provides the KVStore instance classes resource available info of Alibaba Cloud.

NOTE: Available in v1.49.0+

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var resourcesZones = Output.Create(AliCloud.GetZones.InvokeAsync(new AliCloud.GetZonesArgs
        {
            AvailableResourceCreation = "KVStore",
        }));
        var resourcesInstanceClasses = resourcesZones.Apply(resourcesZones => Output.Create(AliCloud.KVStore.GetInstanceClasses.InvokeAsync(new AliCloud.KVStore.GetInstanceClassesArgs
        {
            Engine = "Redis",
            EngineVersion = "5.0",
            InstanceChargeType = "PrePaid",
            OutputFile = "./classes.txt",
            ZoneId = resourcesZones.Zones[0].Id,
        })));
        this.FirstKvstoreInstanceClass = resourcesInstanceClasses.Apply(resourcesInstanceClasses => resourcesInstanceClasses.InstanceClasses);
    }

    [Output("firstKvstoreInstanceClass")]
    public Output<string> FirstKvstoreInstanceClass { get; set; }
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

resources_zones = alicloud.get_zones(available_resource_creation="KVStore")
resources_instance_classes = alicloud.kvstore.get_instance_classes(engine="Redis",
    engine_version="5.0",
    instance_charge_type="PrePaid",
    output_file="./classes.txt",
    zone_id=resources_zones.zones[0]["id"])
pulumi.export("firstKvstoreInstanceClass", resources_instance_classes.instance_classes)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const resourcesZones = pulumi.output(alicloud.getZones({
    availableResourceCreation: "KVStore",
}, { async: true }));
const resourcesInstanceClasses = resourcesZones.apply(resourcesZones => alicloud.kvstore.getInstanceClasses({
    engine: "Redis",
    engineVersion: "5.0",
    instanceChargeType: "PrePaid",
    outputFile: "./classes.txt",
    zoneId: resourcesZones.zones[0].id,
}, { async: true }));

export const firstKvstoreInstanceClass = resourcesInstanceClasses.instanceClasses;

Using GetInstanceClasses

function getInstanceClasses(args: GetInstanceClassesArgs, opts?: InvokeOptions): Promise<GetInstanceClassesResult>
function  get_instance_classes(architecture=None, edition_type=None, engine=None, engine_version=None, instance_charge_type=None, node_type=None, output_file=None, package_type=None, performance_type=None, series_type=None, shard_number=None, sorted_by=None, storage_type=None, zone_id=None, opts=None)
func GetInstanceClasses(ctx *Context, args *GetInstanceClassesArgs, opts ...InvokeOption) (*GetInstanceClassesResult, error)
public static class GetInstanceClasses {
    public static Task<GetInstanceClassesResult> InvokeAsync(GetInstanceClassesArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ZoneId string

The Zone to launch the KVStore instance.

Architecture string

The KVStore instance system architecture required by the user. Valid values: standard, cluster and rwsplit.

EditionType string

The KVStore instance edition type required by the user. Valid values: Community and Enterprise.

Engine string

Database type. Options are Redis, Memcache. Default to Redis.

EngineVersion string

Database version required by the user. Value options of Redis can refer to the latest docs detail info EngineVersion. Value of Memcache should be empty.

InstanceChargeType string

Filter the results by charge type. Valid values: PrePaid and PostPaid. Default to PrePaid.

NodeType string

The KVStore instance node type required by the user. Valid values: double, single, readone, readthree and readfive.

OutputFile string
PackageType string

It has been deprecated from 1.68.0.

Deprecated: The parameter 'package_type' has been deprecated from 1.68.0.

PerformanceType string

It has been deprecated from 1.68.0.

Deprecated: The parameter 'performance_type' has been deprecated from 1.68.0.

SeriesType string

The KVStore instance series type required by the user. Valid values: enhanced_performance_type and hybrid_storage.

ShardNumber int

The number of shard.Valid values: 1, 2, 4, 8, 16, 32, 64, 128, 256.

SortedBy string
StorageType string

It has been deprecated from 1.68.0.

Deprecated: The parameter 'storage_type' has been deprecated from 1.68.0.

ZoneId string

The Zone to launch the KVStore instance.

Architecture string

The KVStore instance system architecture required by the user. Valid values: standard, cluster and rwsplit.

EditionType string

The KVStore instance edition type required by the user. Valid values: Community and Enterprise.

Engine string

Database type. Options are Redis, Memcache. Default to Redis.

EngineVersion string

Database version required by the user. Value options of Redis can refer to the latest docs detail info EngineVersion. Value of Memcache should be empty.

InstanceChargeType string

Filter the results by charge type. Valid values: PrePaid and PostPaid. Default to PrePaid.

NodeType string

The KVStore instance node type required by the user. Valid values: double, single, readone, readthree and readfive.

OutputFile string
PackageType string

It has been deprecated from 1.68.0.

Deprecated: The parameter 'package_type' has been deprecated from 1.68.0.

PerformanceType string

It has been deprecated from 1.68.0.

Deprecated: The parameter 'performance_type' has been deprecated from 1.68.0.

SeriesType string

The KVStore instance series type required by the user. Valid values: enhanced_performance_type and hybrid_storage.

ShardNumber int

The number of shard.Valid values: 1, 2, 4, 8, 16, 32, 64, 128, 256.

SortedBy string
StorageType string

It has been deprecated from 1.68.0.

Deprecated: The parameter 'storage_type' has been deprecated from 1.68.0.

zoneId string

The Zone to launch the KVStore instance.

architecture string

The KVStore instance system architecture required by the user. Valid values: standard, cluster and rwsplit.

editionType string

The KVStore instance edition type required by the user. Valid values: Community and Enterprise.

engine string

Database type. Options are Redis, Memcache. Default to Redis.

engineVersion string

Database version required by the user. Value options of Redis can refer to the latest docs detail info EngineVersion. Value of Memcache should be empty.

instanceChargeType string

Filter the results by charge type. Valid values: PrePaid and PostPaid. Default to PrePaid.

nodeType string

The KVStore instance node type required by the user. Valid values: double, single, readone, readthree and readfive.

outputFile string
packageType string

It has been deprecated from 1.68.0.

Deprecated: The parameter 'package_type' has been deprecated from 1.68.0.

performanceType string

It has been deprecated from 1.68.0.

Deprecated: The parameter 'performance_type' has been deprecated from 1.68.0.

seriesType string

The KVStore instance series type required by the user. Valid values: enhanced_performance_type and hybrid_storage.

shardNumber number

The number of shard.Valid values: 1, 2, 4, 8, 16, 32, 64, 128, 256.

sortedBy string
storageType string

It has been deprecated from 1.68.0.

Deprecated: The parameter 'storage_type' has been deprecated from 1.68.0.

zone_id str

The Zone to launch the KVStore instance.

architecture str

The KVStore instance system architecture required by the user. Valid values: standard, cluster and rwsplit.

edition_type str

The KVStore instance edition type required by the user. Valid values: Community and Enterprise.

engine str

Database type. Options are Redis, Memcache. Default to Redis.

engine_version str

Database version required by the user. Value options of Redis can refer to the latest docs detail info EngineVersion. Value of Memcache should be empty.

instance_charge_type str

Filter the results by charge type. Valid values: PrePaid and PostPaid. Default to PrePaid.

node_type str

The KVStore instance node type required by the user. Valid values: double, single, readone, readthree and readfive.

output_file str
package_type str

It has been deprecated from 1.68.0.

Deprecated: The parameter 'package_type' has been deprecated from 1.68.0.

performance_type str

It has been deprecated from 1.68.0.

Deprecated: The parameter 'performance_type' has been deprecated from 1.68.0.

series_type str

The KVStore instance series type required by the user. Valid values: enhanced_performance_type and hybrid_storage.

shard_number float

The number of shard.Valid values: 1, 2, 4, 8, 16, 32, 64, 128, 256.

sorted_by str
storage_type str

It has been deprecated from 1.68.0.

Deprecated: The parameter 'storage_type' has been deprecated from 1.68.0.

GetInstanceClasses Result

The following output properties are available:

Classes List<Pulumi.AliCloud.KVStore.Outputs.GetInstanceClassesClass>

A list of KVStore available instance classes when the sorted_by is “Price”. include:

Id string

The provider-assigned unique ID for this managed resource.

InstanceClasses List<string>

A list of KVStore available instance classes.

ZoneId string
Architecture string
EditionType string
Engine string
EngineVersion string
InstanceChargeType string
NodeType string
OutputFile string
PackageType string

Deprecated: The parameter 'package_type' has been deprecated from 1.68.0.

PerformanceType string

Deprecated: The parameter 'performance_type' has been deprecated from 1.68.0.

SeriesType string
ShardNumber int
SortedBy string
StorageType string

Deprecated: The parameter 'storage_type' has been deprecated from 1.68.0.

Classes []GetInstanceClassesClass

A list of KVStore available instance classes when the sorted_by is “Price”. include:

Id string

The provider-assigned unique ID for this managed resource.

InstanceClasses []string

A list of KVStore available instance classes.

ZoneId string
Architecture string
EditionType string
Engine string
EngineVersion string
InstanceChargeType string
NodeType string
OutputFile string
PackageType string

Deprecated: The parameter 'package_type' has been deprecated from 1.68.0.

PerformanceType string

Deprecated: The parameter 'performance_type' has been deprecated from 1.68.0.

SeriesType string
ShardNumber int
SortedBy string
StorageType string

Deprecated: The parameter 'storage_type' has been deprecated from 1.68.0.

classes GetInstanceClassesClass[]

A list of KVStore available instance classes when the sorted_by is “Price”. include:

id string

The provider-assigned unique ID for this managed resource.

instanceClasses string[]

A list of KVStore available instance classes.

zoneId string
architecture string
editionType string
engine string
engineVersion string
instanceChargeType string
nodeType string
outputFile string
packageType string

Deprecated: The parameter 'package_type' has been deprecated from 1.68.0.

performanceType string

Deprecated: The parameter 'performance_type' has been deprecated from 1.68.0.

seriesType string
shardNumber number
sortedBy string
storageType string

Deprecated: The parameter 'storage_type' has been deprecated from 1.68.0.

classes List[GetInstanceClassesClass]

A list of KVStore available instance classes when the sorted_by is “Price”. include:

id str

The provider-assigned unique ID for this managed resource.

instance_classes List[str]

A list of KVStore available instance classes.

zone_id str
architecture str
edition_type str
engine str
engine_version str
instance_charge_type str
node_type str
output_file str
package_type str

Deprecated: The parameter 'package_type' has been deprecated from 1.68.0.

performance_type str

Deprecated: The parameter 'performance_type' has been deprecated from 1.68.0.

series_type str
shard_number float
sorted_by str
storage_type str

Deprecated: The parameter 'storage_type' has been deprecated from 1.68.0.

Supporting Types

GetInstanceClassesClass

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

InstanceClass string

KVStore available instance class.

Price string
InstanceClass string

KVStore available instance class.

Price string
instanceClass string

KVStore available instance class.

price string
instance_class str

KVStore available instance class.

price 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.