flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
flexibleengine.getElbFlavors
Start a Neo task
Explain and create a flexibleengine.getElbFlavors resource
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
Use this data source to get the available Dedicated ELB Flavors.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const flavors = flexibleengine.getElbFlavors({
type: "L7",
maxConnections: 200000,
cps: 2000,
bandwidth: 50,
});
// Create Dedicated Load Balancer with the first matched flavor
const lb = new flexibleengine.LbLoadbalancerV3("lb", {l7FlavorId: flavors.then(flavors => flavors.ids?.[0])});
// Other properties...
import pulumi
import pulumi_flexibleengine as flexibleengine
flavors = flexibleengine.get_elb_flavors(type="L7",
max_connections=200000,
cps=2000,
bandwidth=50)
# Create Dedicated Load Balancer with the first matched flavor
lb = flexibleengine.LbLoadbalancerV3("lb", l7_flavor_id=flavors.ids[0])
# Other properties...
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 {
flavors, err := flexibleengine.GetElbFlavors(ctx, &flexibleengine.GetElbFlavorsArgs{
Type: pulumi.StringRef("L7"),
MaxConnections: pulumi.Float64Ref(200000),
Cps: pulumi.Float64Ref(2000),
Bandwidth: pulumi.Float64Ref(50),
}, nil)
if err != nil {
return err
}
// Create Dedicated Load Balancer with the first matched flavor
_, err = flexibleengine.NewLbLoadbalancerV3(ctx, "lb", &flexibleengine.LbLoadbalancerV3Args{
L7FlavorId: pulumi.String(flavors.Ids[0]),
})
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 flavors = Flexibleengine.GetElbFlavors.Invoke(new()
{
Type = "L7",
MaxConnections = 200000,
Cps = 2000,
Bandwidth = 50,
});
// Create Dedicated Load Balancer with the first matched flavor
var lb = new Flexibleengine.LbLoadbalancerV3("lb", new()
{
L7FlavorId = flavors.Apply(getElbFlavorsResult => getElbFlavorsResult.Ids[0]),
});
// Other properties...
});
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.GetElbFlavorsArgs;
import com.pulumi.flexibleengine.LbLoadbalancerV3;
import com.pulumi.flexibleengine.LbLoadbalancerV3Args;
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 flavors = FlexibleengineFunctions.getElbFlavors(GetElbFlavorsArgs.builder()
.type("L7")
.maxConnections(200000)
.cps(2000)
.bandwidth(50)
.build());
// Create Dedicated Load Balancer with the first matched flavor
var lb = new LbLoadbalancerV3("lb", LbLoadbalancerV3Args.builder()
.l7FlavorId(flavors.applyValue(getElbFlavorsResult -> getElbFlavorsResult.ids()[0]))
.build());
// Other properties...
}
}
resources:
# Create Dedicated Load Balancer with the first matched flavor
lb:
type: flexibleengine:LbLoadbalancerV3
properties:
l7FlavorId: ${flavors.ids[0]}
variables:
flavors:
fn::invoke:
function: flexibleengine:getElbFlavors
arguments:
type: L7
maxConnections: 200000
cps: 2000
bandwidth: 50
Using getElbFlavors
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 getElbFlavors(args: GetElbFlavorsArgs, opts?: InvokeOptions): Promise<GetElbFlavorsResult>
function getElbFlavorsOutput(args: GetElbFlavorsOutputArgs, opts?: InvokeOptions): Output<GetElbFlavorsResult>def get_elb_flavors(bandwidth: Optional[float] = None,
cps: Optional[float] = None,
id: Optional[str] = None,
max_connections: Optional[float] = None,
qps: Optional[float] = None,
region: Optional[str] = None,
type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetElbFlavorsResult
def get_elb_flavors_output(bandwidth: Optional[pulumi.Input[float]] = None,
cps: Optional[pulumi.Input[float]] = None,
id: Optional[pulumi.Input[str]] = None,
max_connections: Optional[pulumi.Input[float]] = None,
qps: Optional[pulumi.Input[float]] = None,
region: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetElbFlavorsResult]func GetElbFlavors(ctx *Context, args *GetElbFlavorsArgs, opts ...InvokeOption) (*GetElbFlavorsResult, error)
func GetElbFlavorsOutput(ctx *Context, args *GetElbFlavorsOutputArgs, opts ...InvokeOption) GetElbFlavorsResultOutput> Note: This function is named GetElbFlavors in the Go SDK.
public static class GetElbFlavors
{
public static Task<GetElbFlavorsResult> InvokeAsync(GetElbFlavorsArgs args, InvokeOptions? opts = null)
public static Output<GetElbFlavorsResult> Invoke(GetElbFlavorsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetElbFlavorsResult> getElbFlavors(GetElbFlavorsArgs args, InvokeOptions options)
public static Output<GetElbFlavorsResult> getElbFlavors(GetElbFlavorsArgs args, InvokeOptions options)
fn::invoke:
function: flexibleengine:index/getElbFlavors:getElbFlavors
arguments:
# arguments dictionaryThe following arguments are supported:
- Bandwidth double
- Specifies the bandwidth size(Mbit/s) in the flavor.
- Cps double
- Specifies the cps in the flavor.
- Id string
- ID of the flavor.
- Max
Connections double - Specifies the maximum connections in the flavor.
- Qps double
- Specifies the qps in the L7 flavor.
- Region string
- The region in which to obtain the flavors. If omitted, the provider-level region will be used.
- Type string
- Specifies the flavor type. Valid values are L4 and L7.
- Bandwidth float64
- Specifies the bandwidth size(Mbit/s) in the flavor.
- Cps float64
- Specifies the cps in the flavor.
- Id string
- ID of the flavor.
- Max
Connections float64 - Specifies the maximum connections in the flavor.
- Qps float64
- Specifies the qps in the L7 flavor.
- Region string
- The region in which to obtain the flavors. If omitted, the provider-level region will be used.
- Type string
- Specifies the flavor type. Valid values are L4 and L7.
- bandwidth Double
- Specifies the bandwidth size(Mbit/s) in the flavor.
- cps Double
- Specifies the cps in the flavor.
- id String
- ID of the flavor.
- max
Connections Double - Specifies the maximum connections in the flavor.
- qps Double
- Specifies the qps in the L7 flavor.
- region String
- The region in which to obtain the flavors. If omitted, the provider-level region will be used.
- type String
- Specifies the flavor type. Valid values are L4 and L7.
- bandwidth number
- Specifies the bandwidth size(Mbit/s) in the flavor.
- cps number
- Specifies the cps in the flavor.
- id string
- ID of the flavor.
- max
Connections number - Specifies the maximum connections in the flavor.
- qps number
- Specifies the qps in the L7 flavor.
- region string
- The region in which to obtain the flavors. If omitted, the provider-level region will be used.
- type string
- Specifies the flavor type. Valid values are L4 and L7.
- bandwidth float
- Specifies the bandwidth size(Mbit/s) in the flavor.
- cps float
- Specifies the cps in the flavor.
- id str
- ID of the flavor.
- max_
connections float - Specifies the maximum connections in the flavor.
- qps float
- Specifies the qps in the L7 flavor.
- region str
- The region in which to obtain the flavors. If omitted, the provider-level region will be used.
- type str
- Specifies the flavor type. Valid values are L4 and L7.
- bandwidth Number
- Specifies the bandwidth size(Mbit/s) in the flavor.
- cps Number
- Specifies the cps in the flavor.
- id String
- ID of the flavor.
- max
Connections Number - Specifies the maximum connections in the flavor.
- qps Number
- Specifies the qps in the L7 flavor.
- region String
- The region in which to obtain the flavors. If omitted, the provider-level region will be used.
- type String
- Specifies the flavor type. Valid values are L4 and L7.
getElbFlavors Result
The following output properties are available:
- Flavors
List<Get
Elb Flavors Flavor> - A list of flavors. Each element contains the following attributes:
- Id string
- ID of the flavor.
- Ids List<string>
- A list of flavor IDs.
- Region string
- Bandwidth double
- Bandwidth size(Mbit/s) of the flavor.
- Cps double
- Cps of the flavor.
- Max
Connections double - Maximum connections of the flavor.
- Qps double
- Qps of the L7 flavor.
- Type string
- Type of the flavor.
- Flavors
[]Get
Elb Flavors Flavor - A list of flavors. Each element contains the following attributes:
- Id string
- ID of the flavor.
- Ids []string
- A list of flavor IDs.
- Region string
- Bandwidth float64
- Bandwidth size(Mbit/s) of the flavor.
- Cps float64
- Cps of the flavor.
- Max
Connections float64 - Maximum connections of the flavor.
- Qps float64
- Qps of the L7 flavor.
- Type string
- Type of the flavor.
- flavors
List<Get
Elb Flavors Flavor> - A list of flavors. Each element contains the following attributes:
- id String
- ID of the flavor.
- ids List<String>
- A list of flavor IDs.
- region String
- bandwidth Double
- Bandwidth size(Mbit/s) of the flavor.
- cps Double
- Cps of the flavor.
- max
Connections Double - Maximum connections of the flavor.
- qps Double
- Qps of the L7 flavor.
- type String
- Type of the flavor.
- flavors
Get
Elb Flavors Flavor[] - A list of flavors. Each element contains the following attributes:
- id string
- ID of the flavor.
- ids string[]
- A list of flavor IDs.
- region string
- bandwidth number
- Bandwidth size(Mbit/s) of the flavor.
- cps number
- Cps of the flavor.
- max
Connections number - Maximum connections of the flavor.
- qps number
- Qps of the L7 flavor.
- type string
- Type of the flavor.
- flavors
Sequence[Get
Elb Flavors Flavor] - A list of flavors. Each element contains the following attributes:
- id str
- ID of the flavor.
- ids Sequence[str]
- A list of flavor IDs.
- region str
- bandwidth float
- Bandwidth size(Mbit/s) of the flavor.
- cps float
- Cps of the flavor.
- max_
connections float - Maximum connections of the flavor.
- qps float
- Qps of the L7 flavor.
- type str
- Type of the flavor.
- flavors List<Property Map>
- A list of flavors. Each element contains the following attributes:
- id String
- ID of the flavor.
- ids List<String>
- A list of flavor IDs.
- region String
- bandwidth Number
- Bandwidth size(Mbit/s) of the flavor.
- cps Number
- Cps of the flavor.
- max
Connections Number - Maximum connections of the flavor.
- qps Number
- Qps of the L7 flavor.
- type String
- Type of the flavor.
Supporting Types
GetElbFlavorsFlavor
- Bandwidth double
- Specifies the bandwidth size(Mbit/s) in the flavor.
- Cps double
- Specifies the cps in the flavor.
- Id string
- ID of the flavor.
- Max
Connections double - Specifies the maximum connections in the flavor.
- Name string
- Name of the flavor.
- Qps double
- Specifies the qps in the L7 flavor.
- Type string
- Specifies the flavor type. Valid values are L4 and L7.
- Bandwidth float64
- Specifies the bandwidth size(Mbit/s) in the flavor.
- Cps float64
- Specifies the cps in the flavor.
- Id string
- ID of the flavor.
- Max
Connections float64 - Specifies the maximum connections in the flavor.
- Name string
- Name of the flavor.
- Qps float64
- Specifies the qps in the L7 flavor.
- Type string
- Specifies the flavor type. Valid values are L4 and L7.
- bandwidth Double
- Specifies the bandwidth size(Mbit/s) in the flavor.
- cps Double
- Specifies the cps in the flavor.
- id String
- ID of the flavor.
- max
Connections Double - Specifies the maximum connections in the flavor.
- name String
- Name of the flavor.
- qps Double
- Specifies the qps in the L7 flavor.
- type String
- Specifies the flavor type. Valid values are L4 and L7.
- bandwidth number
- Specifies the bandwidth size(Mbit/s) in the flavor.
- cps number
- Specifies the cps in the flavor.
- id string
- ID of the flavor.
- max
Connections number - Specifies the maximum connections in the flavor.
- name string
- Name of the flavor.
- qps number
- Specifies the qps in the L7 flavor.
- type string
- Specifies the flavor type. Valid values are L4 and L7.
- bandwidth float
- Specifies the bandwidth size(Mbit/s) in the flavor.
- cps float
- Specifies the cps in the flavor.
- id str
- ID of the flavor.
- max_
connections float - Specifies the maximum connections in the flavor.
- name str
- Name of the flavor.
- qps float
- Specifies the qps in the L7 flavor.
- type str
- Specifies the flavor type. Valid values are L4 and L7.
- bandwidth Number
- Specifies the bandwidth size(Mbit/s) in the flavor.
- cps Number
- Specifies the cps in the flavor.
- id String
- ID of the flavor.
- max
Connections Number - Specifies the maximum connections in the flavor.
- name String
- Name of the flavor.
- qps Number
- Specifies the qps in the L7 flavor.
- type String
- Specifies the flavor type. Valid values are L4 and L7.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengineTerraform Provider.
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
