flexibleengine.getDdsFlavorV3
Explore with Pulumi AI
Use this data source to get the ID of an available FlexibleEngine DDS flavor.
If you want to get multiple flavors, please use flexibleengine.getDdsFlavorsV3.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const flavor = flexibleengine.getDdsFlavorV3({
engineName: "DDS-Community",
region: "eu-west-0",
});
import pulumi
import pulumi_flexibleengine as flexibleengine
flavor = flexibleengine.get_dds_flavor_v3(engine_name="DDS-Community",
region="eu-west-0")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := flexibleengine.GetDdsFlavorV3(ctx, &flexibleengine.GetDdsFlavorV3Args{
EngineName: pulumi.StringRef("DDS-Community"),
Region: pulumi.StringRef("eu-west-0"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var flavor = Flexibleengine.GetDdsFlavorV3.Invoke(new()
{
EngineName = "DDS-Community",
Region = "eu-west-0",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetDdsFlavorV3Args;
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 flavor = FlexibleengineFunctions.getDdsFlavorV3(GetDdsFlavorV3Args.builder()
.engineName("DDS-Community")
.region("eu-west-0")
.build());
}
}
variables:
flavor:
fn::invoke:
function: flexibleengine:getDdsFlavorV3
arguments:
engineName: DDS-Community
region: eu-west-0
Available value for attributes
engine_name | type | vcpus | ram | speccode —- | — | — DDS-Community | mongos | 1 | 4 | dds.mongodb.s3.medium.4.mongos DDS-Community | mongos | 2 | 8 | dds.mongodb.s3.large.4.mongos DDS-Community | mongos | 4 | 16 | dds.mongodb.s3.xlarge.4.mongos DDS-Community | mongos | 8 | 32 | dds.mongodb.s3.2xlarge.4.mongos DDS-Community | mongos | 16 | 64 | dds.mongodb.s3.4xlarge.4.mongos DDS-Community | shard | 1 | 4 | dds.mongodb.s3.medium.4.shard DDS-Community | shard | 2 | 8 | dds.mongodb.s3.large.4.shard DDS-Community | shard | 4 | 16 | dds.mongodb.s3.xlarge.4.shard DDS-Community | shard | 8 | 32 | dds.mongodb.s3.2xlarge.4.shard DDS-Community | shard | 16 | 64 | dds.mongodb.s3.4xlarge.4.shard DDS-Community | config | 2 | 4 | dds.mongodb.s3.large.2.config DDS-Community | replica | 1 | 4 | dds.mongodb.s3.medium.4.repset DDS-Community | replica | 2 | 8 | dds.mongodb.s3.large.4.repset DDS-Community | replica | 4 | 16 | dds.mongodb.s3.xlarge.4.repset DDS-Community | replica | 8 | 32 | dds.mongodb.s3.2xlarge.4.repset DDS-Community | replica | 16 | 64 | dds.mongodb.s3.4xlarge.4.repset
Using getDdsFlavorV3
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 getDdsFlavorV3(args: GetDdsFlavorV3Args, opts?: InvokeOptions): Promise<GetDdsFlavorV3Result>
function getDdsFlavorV3Output(args: GetDdsFlavorV3OutputArgs, opts?: InvokeOptions): Output<GetDdsFlavorV3Result>def get_dds_flavor_v3(engine_name: Optional[str] = None,
id: Optional[str] = None,
region: Optional[str] = None,
spec_code: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDdsFlavorV3Result
def get_dds_flavor_v3_output(engine_name: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
spec_code: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDdsFlavorV3Result]func GetDdsFlavorV3(ctx *Context, args *GetDdsFlavorV3Args, opts ...InvokeOption) (*GetDdsFlavorV3Result, error)
func GetDdsFlavorV3Output(ctx *Context, args *GetDdsFlavorV3OutputArgs, opts ...InvokeOption) GetDdsFlavorV3ResultOutput> Note: This function is named GetDdsFlavorV3 in the Go SDK.
public static class GetDdsFlavorV3
{
public static Task<GetDdsFlavorV3Result> InvokeAsync(GetDdsFlavorV3Args args, InvokeOptions? opts = null)
public static Output<GetDdsFlavorV3Result> Invoke(GetDdsFlavorV3InvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDdsFlavorV3Result> getDdsFlavorV3(GetDdsFlavorV3Args args, InvokeOptions options)
public static Output<GetDdsFlavorV3Result> getDdsFlavorV3(GetDdsFlavorV3Args args, InvokeOptions options)
fn::invoke:
function: flexibleengine:index/getDdsFlavorV3:getDdsFlavorV3
arguments:
# arguments dictionaryThe following arguments are supported:
- Engine
Name string - The engine name of the dds, now only DDS-Community is supported.
- Id string
- Region string
- The region in which to obtain the V3 dds client. If omitted, the provider-level region will be used.
- Spec
Code string - The spec code of a dds flavor.
- Engine
Name string - The engine name of the dds, now only DDS-Community is supported.
- Id string
- Region string
- The region in which to obtain the V3 dds client. If omitted, the provider-level region will be used.
- Spec
Code string - The spec code of a dds flavor.
- engine
Name String - The engine name of the dds, now only DDS-Community is supported.
- id String
- region String
- The region in which to obtain the V3 dds client. If omitted, the provider-level region will be used.
- spec
Code String - The spec code of a dds flavor.
- engine
Name string - The engine name of the dds, now only DDS-Community is supported.
- id string
- region string
- The region in which to obtain the V3 dds client. If omitted, the provider-level region will be used.
- spec
Code string - The spec code of a dds flavor.
- engine_
name str - The engine name of the dds, now only DDS-Community is supported.
- id str
- region str
- The region in which to obtain the V3 dds client. If omitted, the provider-level region will be used.
- spec_
code str - The spec code of a dds flavor.
- engine
Name String - The engine name of the dds, now only DDS-Community is supported.
- id String
- region String
- The region in which to obtain the V3 dds client. If omitted, the provider-level region will be used.
- spec
Code String - The spec code of a dds flavor.
getDdsFlavorV3 Result
The following output properties are available:
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengineTerraform Provider.