GetInstanceEngines
This data source provides the KVStore instance engines resource available info of Alibaba Cloud.
NOTE: Available in v1.51.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 resourcesInstanceEngines = resourcesZones.Apply(resourcesZones => Output.Create(AliCloud.KVStore.GetInstanceEngines.InvokeAsync(new AliCloud.KVStore.GetInstanceEnginesArgs
{
Engine = "Redis",
EngineVersion = "5.0",
InstanceChargeType = "PrePaid",
OutputFile = "./engines.txt",
ZoneId = resourcesZones.Zones[0].Id,
})));
this.FirstKvstoreInstanceClass = resourcesInstanceEngines.Apply(resourcesInstanceEngines => resourcesInstanceEngines.InstanceEngines[0].Engine);
}
[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_engines = alicloud.kvstore.get_instance_engines(engine="Redis",
engine_version="5.0",
instance_charge_type="PrePaid",
output_file="./engines.txt",
zone_id=resources_zones.zones[0]["id"])
pulumi.export("firstKvstoreInstanceClass", resources_instance_engines.instance_engines[0]["engine"])import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const resourcesZones = pulumi.output(alicloud.getZones({
availableResourceCreation: "KVStore",
}, { async: true }));
const resourcesInstanceEngines = resourcesZones.apply(resourcesZones => alicloud.kvstore.getInstanceEngines({
engine: "Redis",
engineVersion: "5.0",
instanceChargeType: "PrePaid",
outputFile: "./engines.txt",
zoneId: resourcesZones.zones[0].id,
}, { async: true }));
export const firstKvstoreInstanceClass = resourcesInstanceEngines.instanceEngines[0].engine;Using GetInstanceEngines
function getInstanceEngines(args: GetInstanceEnginesArgs, opts?: InvokeOptions): Promise<GetInstanceEnginesResult>function get_instance_engines(engine=None, engine_version=None, instance_charge_type=None, output_file=None, zone_id=None, opts=None)func GetInstanceEngines(ctx *Context, args *GetInstanceEnginesArgs, opts ...InvokeOption) (*GetInstanceEnginesResult, error)public static class GetInstanceEngines {
public static Task<GetInstanceEnginesResult> InvokeAsync(GetInstanceEnginesArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Zone
Id string The Zone to launch the KVStore instance.
- 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.- Output
File string
- Zone
Id string The Zone to launch the KVStore instance.
- 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.- Output
File string
- zone
Id string The Zone to launch the KVStore instance.
- 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.- output
File string
- zone_
id str The Zone to launch the KVStore instance.
- 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.- output_
file str
GetInstanceEngines Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Instance
Engines List<Pulumi.Ali Cloud. KVStore. Outputs. Get Instance Engines Instance Engine> A list of KVStore available instance engines. Each element contains the following attributes:
- Zone
Id string The Zone to launch the KVStore instance.
- Engine string
Database type.
- Engine
Version string KVStore Instance version.
- Instance
Charge stringType - Output
File string
- Id string
The provider-assigned unique ID for this managed resource.
- Instance
Engines []GetInstance Engines Instance Engine A list of KVStore available instance engines. Each element contains the following attributes:
- Zone
Id string The Zone to launch the KVStore instance.
- Engine string
Database type.
- Engine
Version string KVStore Instance version.
- Instance
Charge stringType - Output
File string
- id string
The provider-assigned unique ID for this managed resource.
- instance
Engines GetInstance Engines Instance Engine[] A list of KVStore available instance engines. Each element contains the following attributes:
- zone
Id string The Zone to launch the KVStore instance.
- engine string
Database type.
- engine
Version string KVStore Instance version.
- instance
Charge stringType - output
File string
- id str
The provider-assigned unique ID for this managed resource.
- instance_
engines List[GetInstance Engines Instance Engine] A list of KVStore available instance engines. Each element contains the following attributes:
- zone_
id str The Zone to launch the KVStore instance.
- engine str
Database type.
- engine_
version str KVStore Instance version.
- instance_
charge_ strtype - output_
file str
Supporting Types
GetInstanceEnginesInstanceEngine
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- 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.- Zone
Id string The Zone to launch the KVStore instance.
- 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.- Zone
Id string The Zone to launch the KVStore instance.
- 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.- zone
Id string The Zone to launch the KVStore instance.
- 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.- zone_
id str The Zone to launch the KVStore instance.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.