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:
- Zone
Id string The Zone to launch the KVStore instance.
- Architecture string
The KVStore instance system architecture required by the user. Valid values:
standard,clusterandrwsplit.- Edition
Type string The KVStore instance edition type required by the user. Valid values:
CommunityandEnterprise.- Engine string
Database type. Options are
Redis,Memcache. Default toRedis.- Engine
Version 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.- Instance
Charge stringType Filter the results by charge type. Valid values:
PrePaidandPostPaid. Default toPrePaid.- Node
Type string The KVStore instance node type required by the user. Valid values:
double,single,readone,readthreeandreadfive.- Output
File string - Package
Type string It has been deprecated from 1.68.0.
- Performance
Type string It has been deprecated from 1.68.0.
- Series
Type string The KVStore instance series type required by the user. Valid values:
enhanced_performance_typeandhybrid_storage.- int
The number of shard.Valid values:
1,2,4,8,16,32,64,128,256.- Sorted
By string - Storage
Type string It has been deprecated from 1.68.0.
- Zone
Id string The Zone to launch the KVStore instance.
- Architecture string
The KVStore instance system architecture required by the user. Valid values:
standard,clusterandrwsplit.- Edition
Type string The KVStore instance edition type required by the user. Valid values:
CommunityandEnterprise.- Engine string
Database type. Options are
Redis,Memcache. Default toRedis.- Engine
Version 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.- Instance
Charge stringType Filter the results by charge type. Valid values:
PrePaidandPostPaid. Default toPrePaid.- Node
Type string The KVStore instance node type required by the user. Valid values:
double,single,readone,readthreeandreadfive.- Output
File string - Package
Type string It has been deprecated from 1.68.0.
- Performance
Type string It has been deprecated from 1.68.0.
- Series
Type string The KVStore instance series type required by the user. Valid values:
enhanced_performance_typeandhybrid_storage.- int
The number of shard.Valid values:
1,2,4,8,16,32,64,128,256.- Sorted
By string - Storage
Type string It has been deprecated from 1.68.0.
- zone
Id string The Zone to launch the KVStore instance.
- architecture string
The KVStore instance system architecture required by the user. Valid values:
standard,clusterandrwsplit.- edition
Type string The KVStore instance edition type required by the user. Valid values:
CommunityandEnterprise.- engine string
Database type. Options are
Redis,Memcache. Default toRedis.- engine
Version 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.- instance
Charge stringType Filter the results by charge type. Valid values:
PrePaidandPostPaid. Default toPrePaid.- node
Type string The KVStore instance node type required by the user. Valid values:
double,single,readone,readthreeandreadfive.- output
File string - package
Type string It has been deprecated from 1.68.0.
- performance
Type string It has been deprecated from 1.68.0.
- series
Type string The KVStore instance series type required by the user. Valid values:
enhanced_performance_typeandhybrid_storage.- number
The number of shard.Valid values:
1,2,4,8,16,32,64,128,256.- sorted
By string - storage
Type string It 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,clusterandrwsplit.- edition_
type str The KVStore instance edition type required by the user. Valid values:
CommunityandEnterprise.- engine str
Database type. Options are
Redis,Memcache. Default toRedis.- 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_ strtype Filter the results by charge type. Valid values:
PrePaidandPostPaid. Default toPrePaid.- node_
type str The KVStore instance node type required by the user. Valid values:
double,single,readone,readthreeandreadfive.- output_
file str - package_
type str It has been deprecated from 1.68.0.
- performance_
type str It has been deprecated from 1.68.0.
- series_
type str The KVStore instance series type required by the user. Valid values:
enhanced_performance_typeandhybrid_storage.- 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.
GetInstanceClasses Result
The following output properties are available:
- Classes
List<Pulumi.
Ali Cloud. KVStore. Outputs. Get Instance Classes Class> A list of KVStore available instance classes when the
sorted_byis “Price”. include:- Id string
The provider-assigned unique ID for this managed resource.
- Instance
Classes List<string> A list of KVStore available instance classes.
- Zone
Id string - Architecture string
- Edition
Type string - Engine string
- Engine
Version string - Instance
Charge stringType - Node
Type string - Output
File string - Package
Type string - Performance
Type string - Series
Type string - int
- Sorted
By string - Storage
Type string
- Classes
[]Get
Instance Classes Class A list of KVStore available instance classes when the
sorted_byis “Price”. include:- Id string
The provider-assigned unique ID for this managed resource.
- Instance
Classes []string A list of KVStore available instance classes.
- Zone
Id string - Architecture string
- Edition
Type string - Engine string
- Engine
Version string - Instance
Charge stringType - Node
Type string - Output
File string - Package
Type string - Performance
Type string - Series
Type string - int
- Sorted
By string - Storage
Type string
- classes
Get
Instance Classes Class[] A list of KVStore available instance classes when the
sorted_byis “Price”. include:- id string
The provider-assigned unique ID for this managed resource.
- instance
Classes string[] A list of KVStore available instance classes.
- zone
Id string - architecture string
- edition
Type string - engine string
- engine
Version string - instance
Charge stringType - node
Type string - output
File string - package
Type string - performance
Type string - series
Type string - number
- sorted
By string - storage
Type string
- classes
List[Get
Instance Classes Class] A list of KVStore available instance classes when the
sorted_byis “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_ strtype - node_
type str - output_
file str - package_
type str - performance_
type str - series_
type str - float
- sorted_
by str - storage_
type str
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.
- Instance
Class string KVStore available instance class.
- Price string
- Instance
Class string KVStore available instance class.
- Price string
- instance
Class 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
alicloudTerraform Provider.