flexibleengine.ElbLoadbalancer
Explore with Pulumi AI
!> Warning: Classic load balancers are no longer provided, using elastic load balancers instead.
Manages a classic load balancer resource within FlexibleEngine.
Example Usage
External Load Balancer
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const exampleVpc = new flexibleengine.VpcV1("exampleVpc", {cidr: "192.168.0.0/16"});
const elb = new flexibleengine.ElbLoadbalancer("elb", {
type: "External",
description: "external elb",
vpcId: exampleVpc.vpcV1Id,
bandwidth: 5,
});
import pulumi
import pulumi_flexibleengine as flexibleengine
example_vpc = flexibleengine.VpcV1("exampleVpc", cidr="192.168.0.0/16")
elb = flexibleengine.ElbLoadbalancer("elb",
type="External",
description="external elb",
vpc_id=example_vpc.vpc_v1_id,
bandwidth=5)
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 {
exampleVpc, err := flexibleengine.NewVpcV1(ctx, "exampleVpc", &flexibleengine.VpcV1Args{
Cidr: pulumi.String("192.168.0.0/16"),
})
if err != nil {
return err
}
_, err = flexibleengine.NewElbLoadbalancer(ctx, "elb", &flexibleengine.ElbLoadbalancerArgs{
Type: pulumi.String("External"),
Description: pulumi.String("external elb"),
VpcId: exampleVpc.VpcV1Id,
Bandwidth: pulumi.Float64(5),
})
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 exampleVpc = new Flexibleengine.VpcV1("exampleVpc", new()
{
Cidr = "192.168.0.0/16",
});
var elb = new Flexibleengine.ElbLoadbalancer("elb", new()
{
Type = "External",
Description = "external elb",
VpcId = exampleVpc.VpcV1Id,
Bandwidth = 5,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.VpcV1;
import com.pulumi.flexibleengine.VpcV1Args;
import com.pulumi.flexibleengine.ElbLoadbalancer;
import com.pulumi.flexibleengine.ElbLoadbalancerArgs;
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) {
var exampleVpc = new VpcV1("exampleVpc", VpcV1Args.builder()
.cidr("192.168.0.0/16")
.build());
var elb = new ElbLoadbalancer("elb", ElbLoadbalancerArgs.builder()
.type("External")
.description("external elb")
.vpcId(exampleVpc.vpcV1Id())
.bandwidth(5)
.build());
}
}
resources:
exampleVpc:
type: flexibleengine:VpcV1
properties:
cidr: 192.168.0.0/16
elb:
type: flexibleengine:ElbLoadbalancer
properties:
type: External
description: external elb
vpcId: ${exampleVpc.vpcV1Id}
bandwidth: 5
Internal Load Balancer
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const exampleVpc = new flexibleengine.VpcV1("exampleVpc", {cidr: "192.168.0.0/16"});
const elb = new flexibleengine.ElbLoadbalancer("elb", {
type: "Internal",
description: "internal elb",
az: "eu-west-0",
vpcId: exampleVpc.vpcV1Id,
vipSubnetId: _var.subnet_id,
securityGroupId: _var.sec_group,
});
import pulumi
import pulumi_flexibleengine as flexibleengine
example_vpc = flexibleengine.VpcV1("exampleVpc", cidr="192.168.0.0/16")
elb = flexibleengine.ElbLoadbalancer("elb",
type="Internal",
description="internal elb",
az="eu-west-0",
vpc_id=example_vpc.vpc_v1_id,
vip_subnet_id=var["subnet_id"],
security_group_id=var["sec_group"])
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 {
exampleVpc, err := flexibleengine.NewVpcV1(ctx, "exampleVpc", &flexibleengine.VpcV1Args{
Cidr: pulumi.String("192.168.0.0/16"),
})
if err != nil {
return err
}
_, err = flexibleengine.NewElbLoadbalancer(ctx, "elb", &flexibleengine.ElbLoadbalancerArgs{
Type: pulumi.String("Internal"),
Description: pulumi.String("internal elb"),
Az: pulumi.String("eu-west-0"),
VpcId: exampleVpc.VpcV1Id,
VipSubnetId: pulumi.Any(_var.Subnet_id),
SecurityGroupId: pulumi.Any(_var.Sec_group),
})
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 exampleVpc = new Flexibleengine.VpcV1("exampleVpc", new()
{
Cidr = "192.168.0.0/16",
});
var elb = new Flexibleengine.ElbLoadbalancer("elb", new()
{
Type = "Internal",
Description = "internal elb",
Az = "eu-west-0",
VpcId = exampleVpc.VpcV1Id,
VipSubnetId = @var.Subnet_id,
SecurityGroupId = @var.Sec_group,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.VpcV1;
import com.pulumi.flexibleengine.VpcV1Args;
import com.pulumi.flexibleengine.ElbLoadbalancer;
import com.pulumi.flexibleengine.ElbLoadbalancerArgs;
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) {
var exampleVpc = new VpcV1("exampleVpc", VpcV1Args.builder()
.cidr("192.168.0.0/16")
.build());
var elb = new ElbLoadbalancer("elb", ElbLoadbalancerArgs.builder()
.type("Internal")
.description("internal elb")
.az("eu-west-0")
.vpcId(exampleVpc.vpcV1Id())
.vipSubnetId(var_.subnet_id())
.securityGroupId(var_.sec_group())
.build());
}
}
resources:
exampleVpc:
type: flexibleengine:VpcV1
properties:
cidr: 192.168.0.0/16
elb:
type: flexibleengine:ElbLoadbalancer
properties:
type: Internal
description: internal elb
az: eu-west-0
vpcId: ${exampleVpc.vpcV1Id}
vipSubnetId: ${var.subnet_id}
securityGroupId: ${var.sec_group}
Create ElbLoadbalancer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ElbLoadbalancer(name: string, args: ElbLoadbalancerArgs, opts?: CustomResourceOptions);
@overload
def ElbLoadbalancer(resource_name: str,
args: ElbLoadbalancerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ElbLoadbalancer(resource_name: str,
opts: Optional[ResourceOptions] = None,
type: Optional[str] = None,
vpc_id: Optional[str] = None,
region: Optional[str] = None,
description: Optional[str] = None,
elb_loadbalancer_id: Optional[str] = None,
name: Optional[str] = None,
admin_state_up: Optional[bool] = None,
security_group_id: Optional[str] = None,
tenantid: Optional[str] = None,
timeouts: Optional[ElbLoadbalancerTimeoutsArgs] = None,
bandwidth: Optional[float] = None,
vip_address: Optional[str] = None,
vip_subnet_id: Optional[str] = None,
az: Optional[str] = None)
func NewElbLoadbalancer(ctx *Context, name string, args ElbLoadbalancerArgs, opts ...ResourceOption) (*ElbLoadbalancer, error)
public ElbLoadbalancer(string name, ElbLoadbalancerArgs args, CustomResourceOptions? opts = null)
public ElbLoadbalancer(String name, ElbLoadbalancerArgs args)
public ElbLoadbalancer(String name, ElbLoadbalancerArgs args, CustomResourceOptions options)
type: flexibleengine:ElbLoadbalancer
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ElbLoadbalancerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ElbLoadbalancerArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ElbLoadbalancerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ElbLoadbalancerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ElbLoadbalancerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var elbLoadbalancerResource = new Flexibleengine.ElbLoadbalancer("elbLoadbalancerResource", new()
{
Type = "string",
VpcId = "string",
Region = "string",
Description = "string",
ElbLoadbalancerId = "string",
Name = "string",
AdminStateUp = false,
SecurityGroupId = "string",
Tenantid = "string",
Timeouts = new Flexibleengine.Inputs.ElbLoadbalancerTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
Bandwidth = 0,
VipAddress = "string",
VipSubnetId = "string",
Az = "string",
});
example, err := flexibleengine.NewElbLoadbalancer(ctx, "elbLoadbalancerResource", &flexibleengine.ElbLoadbalancerArgs{
Type: pulumi.String("string"),
VpcId: pulumi.String("string"),
Region: pulumi.String("string"),
Description: pulumi.String("string"),
ElbLoadbalancerId: pulumi.String("string"),
Name: pulumi.String("string"),
AdminStateUp: pulumi.Bool(false),
SecurityGroupId: pulumi.String("string"),
Tenantid: pulumi.String("string"),
Timeouts: &flexibleengine.ElbLoadbalancerTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
Bandwidth: pulumi.Float64(0),
VipAddress: pulumi.String("string"),
VipSubnetId: pulumi.String("string"),
Az: pulumi.String("string"),
})
var elbLoadbalancerResource = new ElbLoadbalancer("elbLoadbalancerResource", ElbLoadbalancerArgs.builder()
.type("string")
.vpcId("string")
.region("string")
.description("string")
.elbLoadbalancerId("string")
.name("string")
.adminStateUp(false)
.securityGroupId("string")
.tenantid("string")
.timeouts(ElbLoadbalancerTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.bandwidth(0)
.vipAddress("string")
.vipSubnetId("string")
.az("string")
.build());
elb_loadbalancer_resource = flexibleengine.ElbLoadbalancer("elbLoadbalancerResource",
type="string",
vpc_id="string",
region="string",
description="string",
elb_loadbalancer_id="string",
name="string",
admin_state_up=False,
security_group_id="string",
tenantid="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
bandwidth=0,
vip_address="string",
vip_subnet_id="string",
az="string")
const elbLoadbalancerResource = new flexibleengine.ElbLoadbalancer("elbLoadbalancerResource", {
type: "string",
vpcId: "string",
region: "string",
description: "string",
elbLoadbalancerId: "string",
name: "string",
adminStateUp: false,
securityGroupId: "string",
tenantid: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
bandwidth: 0,
vipAddress: "string",
vipSubnetId: "string",
az: "string",
});
type: flexibleengine:ElbLoadbalancer
properties:
adminStateUp: false
az: string
bandwidth: 0
description: string
elbLoadbalancerId: string
name: string
region: string
securityGroupId: string
tenantid: string
timeouts:
create: string
delete: string
update: string
type: string
vipAddress: string
vipSubnetId: string
vpcId: string
ElbLoadbalancer Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ElbLoadbalancer resource accepts the following input properties:
- Type string
- Specifies the load balancer type. The value can be Internal or External. Changing this creates a new loadbalancer.
- Vpc
Id string - Specifies the VPC ID. Changing this creates a new loadbalancer.
- Admin
State boolUp - Az string
- Specifies the ID of the availability zone (AZ). This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- Bandwidth double
- Specifies the bandwidth (Mbit/s). This parameter is valid when type is set to External, and it is invalid when type is set to Internal. The value ranges from 1 to 300.
- Description string
- Provides supplementary information about the listener. The value is a string of 0 to 128 characters and cannot be <>.
- Elb
Loadbalancer stringId - Specifies the load balancer ID.
- Name string
- Specifies the load balancer name. The name is a string of 1 to 64 characters that consist of letters, digits, underscores (_), and hyphens (-).
- Region string
- The region in which to create the loadbalancer. If
omitted, the
region
argument of the provider is used. Changing this creates a new loadbalancer. - Security
Group stringId - Specifies the security group ID. The value is a string of 1 to 200 characters that consists of uppercase and lowercase letters, digits, and hyphens (-). This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- Tenantid string
- Specifies the tenant ID. This parameter is mandatory only when type is set to Internal. Changing this creates a new loadbalancer.
- Timeouts
Elb
Loadbalancer Timeouts - Vip
Address string - Specifies the IP address provided by ELB.
When type is set to External, the value of this parameter is the elastic
IP address. When type is set to Internal, the value of this parameter is
the private network IP address. You can select an existing elastic IP address
and create a public network load balancer. When this parameter is configured,
parameter
bandwidth
is invalid. Changing this creates a new loadbalancer. - Vip
Subnet stringId - Specifies the ID of the private network to be added. This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- Type string
- Specifies the load balancer type. The value can be Internal or External. Changing this creates a new loadbalancer.
- Vpc
Id string - Specifies the VPC ID. Changing this creates a new loadbalancer.
- Admin
State boolUp - Az string
- Specifies the ID of the availability zone (AZ). This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- Bandwidth float64
- Specifies the bandwidth (Mbit/s). This parameter is valid when type is set to External, and it is invalid when type is set to Internal. The value ranges from 1 to 300.
- Description string
- Provides supplementary information about the listener. The value is a string of 0 to 128 characters and cannot be <>.
- Elb
Loadbalancer stringId - Specifies the load balancer ID.
- Name string
- Specifies the load balancer name. The name is a string of 1 to 64 characters that consist of letters, digits, underscores (_), and hyphens (-).
- Region string
- The region in which to create the loadbalancer. If
omitted, the
region
argument of the provider is used. Changing this creates a new loadbalancer. - Security
Group stringId - Specifies the security group ID. The value is a string of 1 to 200 characters that consists of uppercase and lowercase letters, digits, and hyphens (-). This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- Tenantid string
- Specifies the tenant ID. This parameter is mandatory only when type is set to Internal. Changing this creates a new loadbalancer.
- Timeouts
Elb
Loadbalancer Timeouts Args - Vip
Address string - Specifies the IP address provided by ELB.
When type is set to External, the value of this parameter is the elastic
IP address. When type is set to Internal, the value of this parameter is
the private network IP address. You can select an existing elastic IP address
and create a public network load balancer. When this parameter is configured,
parameter
bandwidth
is invalid. Changing this creates a new loadbalancer. - Vip
Subnet stringId - Specifies the ID of the private network to be added. This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- type String
- Specifies the load balancer type. The value can be Internal or External. Changing this creates a new loadbalancer.
- vpc
Id String - Specifies the VPC ID. Changing this creates a new loadbalancer.
- admin
State BooleanUp - az String
- Specifies the ID of the availability zone (AZ). This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- bandwidth Double
- Specifies the bandwidth (Mbit/s). This parameter is valid when type is set to External, and it is invalid when type is set to Internal. The value ranges from 1 to 300.
- description String
- Provides supplementary information about the listener. The value is a string of 0 to 128 characters and cannot be <>.
- elb
Loadbalancer StringId - Specifies the load balancer ID.
- name String
- Specifies the load balancer name. The name is a string of 1 to 64 characters that consist of letters, digits, underscores (_), and hyphens (-).
- region String
- The region in which to create the loadbalancer. If
omitted, the
region
argument of the provider is used. Changing this creates a new loadbalancer. - security
Group StringId - Specifies the security group ID. The value is a string of 1 to 200 characters that consists of uppercase and lowercase letters, digits, and hyphens (-). This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- tenantid String
- Specifies the tenant ID. This parameter is mandatory only when type is set to Internal. Changing this creates a new loadbalancer.
- timeouts
Elb
Loadbalancer Timeouts - vip
Address String - Specifies the IP address provided by ELB.
When type is set to External, the value of this parameter is the elastic
IP address. When type is set to Internal, the value of this parameter is
the private network IP address. You can select an existing elastic IP address
and create a public network load balancer. When this parameter is configured,
parameter
bandwidth
is invalid. Changing this creates a new loadbalancer. - vip
Subnet StringId - Specifies the ID of the private network to be added. This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- type string
- Specifies the load balancer type. The value can be Internal or External. Changing this creates a new loadbalancer.
- vpc
Id string - Specifies the VPC ID. Changing this creates a new loadbalancer.
- admin
State booleanUp - az string
- Specifies the ID of the availability zone (AZ). This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- bandwidth number
- Specifies the bandwidth (Mbit/s). This parameter is valid when type is set to External, and it is invalid when type is set to Internal. The value ranges from 1 to 300.
- description string
- Provides supplementary information about the listener. The value is a string of 0 to 128 characters and cannot be <>.
- elb
Loadbalancer stringId - Specifies the load balancer ID.
- name string
- Specifies the load balancer name. The name is a string of 1 to 64 characters that consist of letters, digits, underscores (_), and hyphens (-).
- region string
- The region in which to create the loadbalancer. If
omitted, the
region
argument of the provider is used. Changing this creates a new loadbalancer. - security
Group stringId - Specifies the security group ID. The value is a string of 1 to 200 characters that consists of uppercase and lowercase letters, digits, and hyphens (-). This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- tenantid string
- Specifies the tenant ID. This parameter is mandatory only when type is set to Internal. Changing this creates a new loadbalancer.
- timeouts
Elb
Loadbalancer Timeouts - vip
Address string - Specifies the IP address provided by ELB.
When type is set to External, the value of this parameter is the elastic
IP address. When type is set to Internal, the value of this parameter is
the private network IP address. You can select an existing elastic IP address
and create a public network load balancer. When this parameter is configured,
parameter
bandwidth
is invalid. Changing this creates a new loadbalancer. - vip
Subnet stringId - Specifies the ID of the private network to be added. This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- type str
- Specifies the load balancer type. The value can be Internal or External. Changing this creates a new loadbalancer.
- vpc_
id str - Specifies the VPC ID. Changing this creates a new loadbalancer.
- admin_
state_ boolup - az str
- Specifies the ID of the availability zone (AZ). This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- bandwidth float
- Specifies the bandwidth (Mbit/s). This parameter is valid when type is set to External, and it is invalid when type is set to Internal. The value ranges from 1 to 300.
- description str
- Provides supplementary information about the listener. The value is a string of 0 to 128 characters and cannot be <>.
- elb_
loadbalancer_ strid - Specifies the load balancer ID.
- name str
- Specifies the load balancer name. The name is a string of 1 to 64 characters that consist of letters, digits, underscores (_), and hyphens (-).
- region str
- The region in which to create the loadbalancer. If
omitted, the
region
argument of the provider is used. Changing this creates a new loadbalancer. - security_
group_ strid - Specifies the security group ID. The value is a string of 1 to 200 characters that consists of uppercase and lowercase letters, digits, and hyphens (-). This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- tenantid str
- Specifies the tenant ID. This parameter is mandatory only when type is set to Internal. Changing this creates a new loadbalancer.
- timeouts
Elb
Loadbalancer Timeouts Args - vip_
address str - Specifies the IP address provided by ELB.
When type is set to External, the value of this parameter is the elastic
IP address. When type is set to Internal, the value of this parameter is
the private network IP address. You can select an existing elastic IP address
and create a public network load balancer. When this parameter is configured,
parameter
bandwidth
is invalid. Changing this creates a new loadbalancer. - vip_
subnet_ strid - Specifies the ID of the private network to be added. This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- type String
- Specifies the load balancer type. The value can be Internal or External. Changing this creates a new loadbalancer.
- vpc
Id String - Specifies the VPC ID. Changing this creates a new loadbalancer.
- admin
State BooleanUp - az String
- Specifies the ID of the availability zone (AZ). This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- bandwidth Number
- Specifies the bandwidth (Mbit/s). This parameter is valid when type is set to External, and it is invalid when type is set to Internal. The value ranges from 1 to 300.
- description String
- Provides supplementary information about the listener. The value is a string of 0 to 128 characters and cannot be <>.
- elb
Loadbalancer StringId - Specifies the load balancer ID.
- name String
- Specifies the load balancer name. The name is a string of 1 to 64 characters that consist of letters, digits, underscores (_), and hyphens (-).
- region String
- The region in which to create the loadbalancer. If
omitted, the
region
argument of the provider is used. Changing this creates a new loadbalancer. - security
Group StringId - Specifies the security group ID. The value is a string of 1 to 200 characters that consists of uppercase and lowercase letters, digits, and hyphens (-). This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- tenantid String
- Specifies the tenant ID. This parameter is mandatory only when type is set to Internal. Changing this creates a new loadbalancer.
- timeouts Property Map
- vip
Address String - Specifies the IP address provided by ELB.
When type is set to External, the value of this parameter is the elastic
IP address. When type is set to Internal, the value of this parameter is
the private network IP address. You can select an existing elastic IP address
and create a public network load balancer. When this parameter is configured,
parameter
bandwidth
is invalid. Changing this creates a new loadbalancer. - vip
Subnet StringId - Specifies the ID of the private network to be added. This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
Outputs
All input properties are implicitly available as output properties. Additionally, the ElbLoadbalancer resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ElbLoadbalancer Resource
Get an existing ElbLoadbalancer resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ElbLoadbalancerState, opts?: CustomResourceOptions): ElbLoadbalancer
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
admin_state_up: Optional[bool] = None,
az: Optional[str] = None,
bandwidth: Optional[float] = None,
description: Optional[str] = None,
elb_loadbalancer_id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
security_group_id: Optional[str] = None,
tenantid: Optional[str] = None,
timeouts: Optional[ElbLoadbalancerTimeoutsArgs] = None,
type: Optional[str] = None,
vip_address: Optional[str] = None,
vip_subnet_id: Optional[str] = None,
vpc_id: Optional[str] = None) -> ElbLoadbalancer
func GetElbLoadbalancer(ctx *Context, name string, id IDInput, state *ElbLoadbalancerState, opts ...ResourceOption) (*ElbLoadbalancer, error)
public static ElbLoadbalancer Get(string name, Input<string> id, ElbLoadbalancerState? state, CustomResourceOptions? opts = null)
public static ElbLoadbalancer get(String name, Output<String> id, ElbLoadbalancerState state, CustomResourceOptions options)
resources: _: type: flexibleengine:ElbLoadbalancer get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Admin
State boolUp - Az string
- Specifies the ID of the availability zone (AZ). This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- Bandwidth double
- Specifies the bandwidth (Mbit/s). This parameter is valid when type is set to External, and it is invalid when type is set to Internal. The value ranges from 1 to 300.
- Description string
- Provides supplementary information about the listener. The value is a string of 0 to 128 characters and cannot be <>.
- Elb
Loadbalancer stringId - Specifies the load balancer ID.
- Name string
- Specifies the load balancer name. The name is a string of 1 to 64 characters that consist of letters, digits, underscores (_), and hyphens (-).
- Region string
- The region in which to create the loadbalancer. If
omitted, the
region
argument of the provider is used. Changing this creates a new loadbalancer. - Security
Group stringId - Specifies the security group ID. The value is a string of 1 to 200 characters that consists of uppercase and lowercase letters, digits, and hyphens (-). This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- Tenantid string
- Specifies the tenant ID. This parameter is mandatory only when type is set to Internal. Changing this creates a new loadbalancer.
- Timeouts
Elb
Loadbalancer Timeouts - Type string
- Specifies the load balancer type. The value can be Internal or External. Changing this creates a new loadbalancer.
- Vip
Address string - Specifies the IP address provided by ELB.
When type is set to External, the value of this parameter is the elastic
IP address. When type is set to Internal, the value of this parameter is
the private network IP address. You can select an existing elastic IP address
and create a public network load balancer. When this parameter is configured,
parameter
bandwidth
is invalid. Changing this creates a new loadbalancer. - Vip
Subnet stringId - Specifies the ID of the private network to be added. This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- Vpc
Id string - Specifies the VPC ID. Changing this creates a new loadbalancer.
- Admin
State boolUp - Az string
- Specifies the ID of the availability zone (AZ). This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- Bandwidth float64
- Specifies the bandwidth (Mbit/s). This parameter is valid when type is set to External, and it is invalid when type is set to Internal. The value ranges from 1 to 300.
- Description string
- Provides supplementary information about the listener. The value is a string of 0 to 128 characters and cannot be <>.
- Elb
Loadbalancer stringId - Specifies the load balancer ID.
- Name string
- Specifies the load balancer name. The name is a string of 1 to 64 characters that consist of letters, digits, underscores (_), and hyphens (-).
- Region string
- The region in which to create the loadbalancer. If
omitted, the
region
argument of the provider is used. Changing this creates a new loadbalancer. - Security
Group stringId - Specifies the security group ID. The value is a string of 1 to 200 characters that consists of uppercase and lowercase letters, digits, and hyphens (-). This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- Tenantid string
- Specifies the tenant ID. This parameter is mandatory only when type is set to Internal. Changing this creates a new loadbalancer.
- Timeouts
Elb
Loadbalancer Timeouts Args - Type string
- Specifies the load balancer type. The value can be Internal or External. Changing this creates a new loadbalancer.
- Vip
Address string - Specifies the IP address provided by ELB.
When type is set to External, the value of this parameter is the elastic
IP address. When type is set to Internal, the value of this parameter is
the private network IP address. You can select an existing elastic IP address
and create a public network load balancer. When this parameter is configured,
parameter
bandwidth
is invalid. Changing this creates a new loadbalancer. - Vip
Subnet stringId - Specifies the ID of the private network to be added. This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- Vpc
Id string - Specifies the VPC ID. Changing this creates a new loadbalancer.
- admin
State BooleanUp - az String
- Specifies the ID of the availability zone (AZ). This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- bandwidth Double
- Specifies the bandwidth (Mbit/s). This parameter is valid when type is set to External, and it is invalid when type is set to Internal. The value ranges from 1 to 300.
- description String
- Provides supplementary information about the listener. The value is a string of 0 to 128 characters and cannot be <>.
- elb
Loadbalancer StringId - Specifies the load balancer ID.
- name String
- Specifies the load balancer name. The name is a string of 1 to 64 characters that consist of letters, digits, underscores (_), and hyphens (-).
- region String
- The region in which to create the loadbalancer. If
omitted, the
region
argument of the provider is used. Changing this creates a new loadbalancer. - security
Group StringId - Specifies the security group ID. The value is a string of 1 to 200 characters that consists of uppercase and lowercase letters, digits, and hyphens (-). This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- tenantid String
- Specifies the tenant ID. This parameter is mandatory only when type is set to Internal. Changing this creates a new loadbalancer.
- timeouts
Elb
Loadbalancer Timeouts - type String
- Specifies the load balancer type. The value can be Internal or External. Changing this creates a new loadbalancer.
- vip
Address String - Specifies the IP address provided by ELB.
When type is set to External, the value of this parameter is the elastic
IP address. When type is set to Internal, the value of this parameter is
the private network IP address. You can select an existing elastic IP address
and create a public network load balancer. When this parameter is configured,
parameter
bandwidth
is invalid. Changing this creates a new loadbalancer. - vip
Subnet StringId - Specifies the ID of the private network to be added. This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- vpc
Id String - Specifies the VPC ID. Changing this creates a new loadbalancer.
- admin
State booleanUp - az string
- Specifies the ID of the availability zone (AZ). This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- bandwidth number
- Specifies the bandwidth (Mbit/s). This parameter is valid when type is set to External, and it is invalid when type is set to Internal. The value ranges from 1 to 300.
- description string
- Provides supplementary information about the listener. The value is a string of 0 to 128 characters and cannot be <>.
- elb
Loadbalancer stringId - Specifies the load balancer ID.
- name string
- Specifies the load balancer name. The name is a string of 1 to 64 characters that consist of letters, digits, underscores (_), and hyphens (-).
- region string
- The region in which to create the loadbalancer. If
omitted, the
region
argument of the provider is used. Changing this creates a new loadbalancer. - security
Group stringId - Specifies the security group ID. The value is a string of 1 to 200 characters that consists of uppercase and lowercase letters, digits, and hyphens (-). This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- tenantid string
- Specifies the tenant ID. This parameter is mandatory only when type is set to Internal. Changing this creates a new loadbalancer.
- timeouts
Elb
Loadbalancer Timeouts - type string
- Specifies the load balancer type. The value can be Internal or External. Changing this creates a new loadbalancer.
- vip
Address string - Specifies the IP address provided by ELB.
When type is set to External, the value of this parameter is the elastic
IP address. When type is set to Internal, the value of this parameter is
the private network IP address. You can select an existing elastic IP address
and create a public network load balancer. When this parameter is configured,
parameter
bandwidth
is invalid. Changing this creates a new loadbalancer. - vip
Subnet stringId - Specifies the ID of the private network to be added. This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- vpc
Id string - Specifies the VPC ID. Changing this creates a new loadbalancer.
- admin_
state_ boolup - az str
- Specifies the ID of the availability zone (AZ). This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- bandwidth float
- Specifies the bandwidth (Mbit/s). This parameter is valid when type is set to External, and it is invalid when type is set to Internal. The value ranges from 1 to 300.
- description str
- Provides supplementary information about the listener. The value is a string of 0 to 128 characters and cannot be <>.
- elb_
loadbalancer_ strid - Specifies the load balancer ID.
- name str
- Specifies the load balancer name. The name is a string of 1 to 64 characters that consist of letters, digits, underscores (_), and hyphens (-).
- region str
- The region in which to create the loadbalancer. If
omitted, the
region
argument of the provider is used. Changing this creates a new loadbalancer. - security_
group_ strid - Specifies the security group ID. The value is a string of 1 to 200 characters that consists of uppercase and lowercase letters, digits, and hyphens (-). This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- tenantid str
- Specifies the tenant ID. This parameter is mandatory only when type is set to Internal. Changing this creates a new loadbalancer.
- timeouts
Elb
Loadbalancer Timeouts Args - type str
- Specifies the load balancer type. The value can be Internal or External. Changing this creates a new loadbalancer.
- vip_
address str - Specifies the IP address provided by ELB.
When type is set to External, the value of this parameter is the elastic
IP address. When type is set to Internal, the value of this parameter is
the private network IP address. You can select an existing elastic IP address
and create a public network load balancer. When this parameter is configured,
parameter
bandwidth
is invalid. Changing this creates a new loadbalancer. - vip_
subnet_ strid - Specifies the ID of the private network to be added. This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- vpc_
id str - Specifies the VPC ID. Changing this creates a new loadbalancer.
- admin
State BooleanUp - az String
- Specifies the ID of the availability zone (AZ). This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- bandwidth Number
- Specifies the bandwidth (Mbit/s). This parameter is valid when type is set to External, and it is invalid when type is set to Internal. The value ranges from 1 to 300.
- description String
- Provides supplementary information about the listener. The value is a string of 0 to 128 characters and cannot be <>.
- elb
Loadbalancer StringId - Specifies the load balancer ID.
- name String
- Specifies the load balancer name. The name is a string of 1 to 64 characters that consist of letters, digits, underscores (_), and hyphens (-).
- region String
- The region in which to create the loadbalancer. If
omitted, the
region
argument of the provider is used. Changing this creates a new loadbalancer. - security
Group StringId - Specifies the security group ID. The value is a string of 1 to 200 characters that consists of uppercase and lowercase letters, digits, and hyphens (-). This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- tenantid String
- Specifies the tenant ID. This parameter is mandatory only when type is set to Internal. Changing this creates a new loadbalancer.
- timeouts Property Map
- type String
- Specifies the load balancer type. The value can be Internal or External. Changing this creates a new loadbalancer.
- vip
Address String - Specifies the IP address provided by ELB.
When type is set to External, the value of this parameter is the elastic
IP address. When type is set to Internal, the value of this parameter is
the private network IP address. You can select an existing elastic IP address
and create a public network load balancer. When this parameter is configured,
parameter
bandwidth
is invalid. Changing this creates a new loadbalancer. - vip
Subnet StringId - Specifies the ID of the private network to be added. This parameter is mandatory when type is set to Internal, and it is invalid when type is set to External. Changing this creates a new loadbalancer.
- vpc
Id String - Specifies the VPC ID. Changing this creates a new loadbalancer.
Supporting Types
ElbLoadbalancerTimeouts, ElbLoadbalancerTimeoutsArgs
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.