Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi
alicloud.kvstore.getInstanceEngines
Explore with Pulumi AI
This data source provides the Tair (Redis OSS-Compatible) And Memcache (KVStore) Instance engines resource available info of Alibaba Cloud.
NOTE: Available since v1.51.0
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const resources = alicloud.getZones({
availableResourceCreation: "KVStore",
});
const resourcesGetInstanceEngines = resources.then(resources => alicloud.kvstore.getInstanceEngines({
zoneId: resources.zones?.[0]?.id,
instanceChargeType: "PrePaid",
engine: "Redis",
engineVersion: "5.0",
outputFile: "./engines.txt",
}));
export const firstKvstoreInstanceClass = resourcesGetInstanceEngines.then(resourcesGetInstanceEngines => resourcesGetInstanceEngines.instanceEngines?.[0]?.engine);
import pulumi
import pulumi_alicloud as alicloud
resources = alicloud.get_zones(available_resource_creation="KVStore")
resources_get_instance_engines = alicloud.kvstore.get_instance_engines(zone_id=resources.zones[0].id,
instance_charge_type="PrePaid",
engine="Redis",
engine_version="5.0",
output_file="./engines.txt")
pulumi.export("firstKvstoreInstanceClass", resources_get_instance_engines.instance_engines[0].engine)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/kvstore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
resources, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
AvailableResourceCreation: pulumi.StringRef("KVStore"),
}, nil)
if err != nil {
return err
}
resourcesGetInstanceEngines, err := kvstore.GetInstanceEngines(ctx, &kvstore.GetInstanceEnginesArgs{
ZoneId: resources.Zones[0].Id,
InstanceChargeType: pulumi.StringRef("PrePaid"),
Engine: pulumi.StringRef("Redis"),
EngineVersion: pulumi.StringRef("5.0"),
OutputFile: pulumi.StringRef("./engines.txt"),
}, nil)
if err != nil {
return err
}
ctx.Export("firstKvstoreInstanceClass", resourcesGetInstanceEngines.InstanceEngines[0].Engine)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var resources = AliCloud.GetZones.Invoke(new()
{
AvailableResourceCreation = "KVStore",
});
var resourcesGetInstanceEngines = AliCloud.KVStore.GetInstanceEngines.Invoke(new()
{
ZoneId = resources.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
InstanceChargeType = "PrePaid",
Engine = "Redis",
EngineVersion = "5.0",
OutputFile = "./engines.txt",
});
return new Dictionary<string, object?>
{
["firstKvstoreInstanceClass"] = resourcesGetInstanceEngines.Apply(getInstanceEnginesResult => getInstanceEnginesResult.InstanceEngines[0]?.Engine),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.kvstore.KvstoreFunctions;
import com.pulumi.alicloud.kvstore.inputs.GetInstanceEnginesArgs;
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 resources = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableResourceCreation("KVStore")
.build());
final var resourcesGetInstanceEngines = KvstoreFunctions.getInstanceEngines(GetInstanceEnginesArgs.builder()
.zoneId(resources.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.instanceChargeType("PrePaid")
.engine("Redis")
.engineVersion("5.0")
.outputFile("./engines.txt")
.build());
ctx.export("firstKvstoreInstanceClass", resourcesGetInstanceEngines.applyValue(getInstanceEnginesResult -> getInstanceEnginesResult.instanceEngines()[0].engine()));
}
}
variables:
resources:
fn::invoke:
function: alicloud:getZones
arguments:
availableResourceCreation: KVStore
resourcesGetInstanceEngines:
fn::invoke:
function: alicloud:kvstore:getInstanceEngines
arguments:
zoneId: ${resources.zones[0].id}
instanceChargeType: PrePaid
engine: Redis
engineVersion: '5.0'
outputFile: ./engines.txt
outputs:
firstKvstoreInstanceClass: ${resourcesGetInstanceEngines.instanceEngines[0].engine}
Using getInstanceEngines
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getInstanceEngines(args: GetInstanceEnginesArgs, opts?: InvokeOptions): Promise<GetInstanceEnginesResult>
function getInstanceEnginesOutput(args: GetInstanceEnginesOutputArgs, opts?: InvokeOptions): Output<GetInstanceEnginesResult>
def get_instance_engines(engine: Optional[str] = None,
engine_version: Optional[str] = None,
instance_charge_type: Optional[str] = None,
output_file: Optional[str] = None,
zone_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInstanceEnginesResult
def get_instance_engines_output(engine: Optional[pulumi.Input[str]] = None,
engine_version: Optional[pulumi.Input[str]] = None,
instance_charge_type: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
zone_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInstanceEnginesResult]
func GetInstanceEngines(ctx *Context, args *GetInstanceEnginesArgs, opts ...InvokeOption) (*GetInstanceEnginesResult, error)
func GetInstanceEnginesOutput(ctx *Context, args *GetInstanceEnginesOutputArgs, opts ...InvokeOption) GetInstanceEnginesResultOutput
> Note: This function is named GetInstanceEngines
in the Go SDK.
public static class GetInstanceEngines
{
public static Task<GetInstanceEnginesResult> InvokeAsync(GetInstanceEnginesArgs args, InvokeOptions? opts = null)
public static Output<GetInstanceEnginesResult> Invoke(GetInstanceEnginesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInstanceEnginesResult> getInstanceEngines(GetInstanceEnginesArgs args, InvokeOptions options)
public static Output<GetInstanceEnginesResult> getInstanceEngines(GetInstanceEnginesArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:kvstore/getInstanceEngines:getInstanceEngines
arguments:
# arguments dictionary
The following arguments are supported:
- Zone
Id string - The Zone to launch the Tair (Redis OSS-Compatible) And Memcache (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:
PrePaid
andPostPaid
. Default toPrePaid
. - Output
File string - File name where to save data source results (after running
pulumi up
).
- Zone
Id string - The Zone to launch the Tair (Redis OSS-Compatible) And Memcache (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:
PrePaid
andPostPaid
. Default toPrePaid
. - Output
File string - File name where to save data source results (after running
pulumi up
).
- zone
Id String - The Zone to launch the Tair (Redis OSS-Compatible) And Memcache (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:
PrePaid
andPostPaid
. Default toPrePaid
. - output
File String - File name where to save data source results (after running
pulumi up
).
- zone
Id string - The Zone to launch the Tair (Redis OSS-Compatible) And Memcache (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:
PrePaid
andPostPaid
. Default toPrePaid
. - output
File string - File name where to save data source results (after running
pulumi up
).
- zone_
id str - The Zone to launch the Tair (Redis OSS-Compatible) And Memcache (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:
PrePaid
andPostPaid
. Default toPrePaid
. - output_
file str - File name where to save data source results (after running
pulumi up
).
- zone
Id String - The Zone to launch the Tair (Redis OSS-Compatible) And Memcache (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:
PrePaid
andPostPaid
. Default toPrePaid
. - output
File String - File name where to save data source results (after running
pulumi up
).
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 Tair (Redis OSS-Compatible) And Memcache (KVStore) available instance engines. Each element contains the following attributes:
- Zone
Id string - The Zone to launch the Tair (Redis OSS-Compatible) And Memcache (KVStore) Instance.
- Engine string
- Database type.
- Engine
Version string - Tair (Redis OSS-Compatible) And Memcache (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 Tair (Redis OSS-Compatible) And Memcache (KVStore) available instance engines. Each element contains the following attributes:
- Zone
Id string - The Zone to launch the Tair (Redis OSS-Compatible) And Memcache (KVStore) Instance.
- Engine string
- Database type.
- Engine
Version string - Tair (Redis OSS-Compatible) And Memcache (KVStore) Instance version.
- Instance
Charge stringType - Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Engines List<GetInstance Engines Instance Engine> - A list of Tair (Redis OSS-Compatible) And Memcache (KVStore) available instance engines. Each element contains the following attributes:
- zone
Id String - The Zone to launch the Tair (Redis OSS-Compatible) And Memcache (KVStore) Instance.
- engine String
- Database type.
- engine
Version String - Tair (Redis OSS-Compatible) And Memcache (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 Tair (Redis OSS-Compatible) And Memcache (KVStore) available instance engines. Each element contains the following attributes:
- zone
Id string - The Zone to launch the Tair (Redis OSS-Compatible) And Memcache (KVStore) Instance.
- engine string
- Database type.
- engine
Version string - Tair (Redis OSS-Compatible) And Memcache (KVStore) Instance version.
- instance
Charge stringType - output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
engines Sequence[GetInstance Engines Instance Engine] - A list of Tair (Redis OSS-Compatible) And Memcache (KVStore) available instance engines. Each element contains the following attributes:
- zone_
id str - The Zone to launch the Tair (Redis OSS-Compatible) And Memcache (KVStore) Instance.
- engine str
- Database type.
- engine_
version str - Tair (Redis OSS-Compatible) And Memcache (KVStore) Instance version.
- instance_
charge_ strtype - output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Engines List<Property Map> - A list of Tair (Redis OSS-Compatible) And Memcache (KVStore) available instance engines. Each element contains the following attributes:
- zone
Id String - The Zone to launch the Tair (Redis OSS-Compatible) And Memcache (KVStore) Instance.
- engine String
- Database type.
- engine
Version String - Tair (Redis OSS-Compatible) And Memcache (KVStore) Instance version.
- instance
Charge StringType - output
File String
Supporting Types
GetInstanceEnginesInstanceEngine
- 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 Tair (Redis OSS-Compatible) And Memcache (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 Tair (Redis OSS-Compatible) And Memcache (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 Tair (Redis OSS-Compatible) And Memcache (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 Tair (Redis OSS-Compatible) And Memcache (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 Tair (Redis OSS-Compatible) And Memcache (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 Tair (Redis OSS-Compatible) And Memcache (KVStore) Instance.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.