published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
Provides a resource to manage alb
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const foo = volcengine.alb.getZones({});
const vpcIpv6 = new volcengine.vpc.Vpc("vpcIpv6", {
vpcName: "acc-test-vpc-ipv6",
cidrBlock: "172.16.0.0/16",
enableIpv6: true,
});
const subnetIpv61 = new volcengine.vpc.Subnet("subnetIpv61", {
subnetName: "acc-test-subnet-ipv6-1",
cidrBlock: "172.16.1.0/24",
zoneId: foo.then(foo => foo.zones?.[0]?.id),
vpcId: vpcIpv6.id,
ipv6CidrBlock: 1,
});
const subnetIpv62 = new volcengine.vpc.Subnet("subnetIpv62", {
subnetName: "acc-test-subnet-ipv6-2",
cidrBlock: "172.16.2.0/24",
zoneId: foo.then(foo => foo.zones?.[1]?.id),
vpcId: vpcIpv6.id,
ipv6CidrBlock: 2,
});
const ipv6Gateway = new volcengine.vpc.Ipv6Gateway("ipv6Gateway", {vpcId: vpcIpv6.id});
const alb_private = new volcengine.alb.Alb("alb-private", {
addressIpVersion: "IPv4",
type: "private",
loadBalancerName: "acc-test-alb-private",
description: "acc-test",
subnetIds: [
subnetIpv61.id,
subnetIpv62.id,
],
projectName: "default",
deleteProtection: "off",
tags: [{
key: "k1",
value: "v1",
}],
});
const alb_public = new volcengine.alb.Alb("alb-public", {
addressIpVersion: "DualStack",
type: "public",
loadBalancerName: "acc-test-alb-public",
description: "acc-test",
subnetIds: [
subnetIpv61.id,
subnetIpv62.id,
],
projectName: "default",
deleteProtection: "off",
modificationProtectionStatus: "NonProtection",
modificationProtectionReason: "Test modification protection",
loadBalancerEdition: "Basic",
eipBillingConfig: {
isp: "BGP",
eipBillingType: "PostPaidByBandwidth",
bandwidth: 1,
},
ipv6EipBillingConfig: {
isp: "BGP",
billingType: "PostPaidByBandwidth",
bandwidth: 1,
},
tags: [{
key: "k1",
value: "v1",
}],
}, {
dependsOn: [ipv6Gateway],
});
// CLone ALB instance
const alb_cloned = new volcengine.alb.Alb("alb-cloned", {
sourceLoadBalancerId: alb_private.id,
loadBalancerName: "acc-test-alb-cloned",
description: "cloned from alb-private",
subnetIds: [subnetIpv61.id],
type: "private",
projectName: "default",
});
// Example of ALB network type change, private -> public
const alb_type_change = new volcengine.alb.Alb("alb-type-change", {
loadBalancerName: "acc-test-alb-type-change",
description: "will change to public type",
subnetIds: [
subnetIpv61.id,
subnetIpv62.id,
],
type: "public",
projectName: "default",
allocationIds: [
"eip-iinpy4k1rytc74o8curgocd7",
"eip-iinpy4k1rytc74o8curgocd8",
],
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.alb.get_zones()
vpc_ipv6 = volcengine.vpc.Vpc("vpcIpv6",
vpc_name="acc-test-vpc-ipv6",
cidr_block="172.16.0.0/16",
enable_ipv6=True)
subnet_ipv61 = volcengine.vpc.Subnet("subnetIpv61",
subnet_name="acc-test-subnet-ipv6-1",
cidr_block="172.16.1.0/24",
zone_id=foo.zones[0].id,
vpc_id=vpc_ipv6.id,
ipv6_cidr_block=1)
subnet_ipv62 = volcengine.vpc.Subnet("subnetIpv62",
subnet_name="acc-test-subnet-ipv6-2",
cidr_block="172.16.2.0/24",
zone_id=foo.zones[1].id,
vpc_id=vpc_ipv6.id,
ipv6_cidr_block=2)
ipv6_gateway = volcengine.vpc.Ipv6Gateway("ipv6Gateway", vpc_id=vpc_ipv6.id)
alb_private = volcengine.alb.Alb("alb-private",
address_ip_version="IPv4",
type="private",
load_balancer_name="acc-test-alb-private",
description="acc-test",
subnet_ids=[
subnet_ipv61.id,
subnet_ipv62.id,
],
project_name="default",
delete_protection="off",
tags=[volcengine.alb.AlbTagArgs(
key="k1",
value="v1",
)])
alb_public = volcengine.alb.Alb("alb-public",
address_ip_version="DualStack",
type="public",
load_balancer_name="acc-test-alb-public",
description="acc-test",
subnet_ids=[
subnet_ipv61.id,
subnet_ipv62.id,
],
project_name="default",
delete_protection="off",
modification_protection_status="NonProtection",
modification_protection_reason="Test modification protection",
load_balancer_edition="Basic",
eip_billing_config=volcengine.alb.AlbEipBillingConfigArgs(
isp="BGP",
eip_billing_type="PostPaidByBandwidth",
bandwidth=1,
),
ipv6_eip_billing_config=volcengine.alb.AlbIpv6EipBillingConfigArgs(
isp="BGP",
billing_type="PostPaidByBandwidth",
bandwidth=1,
),
tags=[volcengine.alb.AlbTagArgs(
key="k1",
value="v1",
)],
opts=pulumi.ResourceOptions(depends_on=[ipv6_gateway]))
# CLone ALB instance
alb_cloned = volcengine.alb.Alb("alb-cloned",
source_load_balancer_id=alb_private.id,
load_balancer_name="acc-test-alb-cloned",
description="cloned from alb-private",
subnet_ids=[subnet_ipv61.id],
type="private",
project_name="default")
# Example of ALB network type change, private -> public
alb_type_change = volcengine.alb.Alb("alb-type-change",
load_balancer_name="acc-test-alb-type-change",
description="will change to public type",
subnet_ids=[
subnet_ipv61.id,
subnet_ipv62.id,
],
type="public",
project_name="default",
allocation_ids=[
"eip-iinpy4k1rytc74o8curgocd7",
"eip-iinpy4k1rytc74o8curgocd8",
])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/alb"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
foo, err := alb.GetZones(ctx, nil, nil)
if err != nil {
return err
}
vpcIpv6, err := vpc.NewVpc(ctx, "vpcIpv6", &vpc.VpcArgs{
VpcName: pulumi.String("acc-test-vpc-ipv6"),
CidrBlock: pulumi.String("172.16.0.0/16"),
EnableIpv6: pulumi.Bool(true),
})
if err != nil {
return err
}
subnetIpv61, err := vpc.NewSubnet(ctx, "subnetIpv61", &vpc.SubnetArgs{
SubnetName: pulumi.String("acc-test-subnet-ipv6-1"),
CidrBlock: pulumi.String("172.16.1.0/24"),
ZoneId: pulumi.String(foo.Zones[0].Id),
VpcId: vpcIpv6.ID(),
Ipv6CidrBlock: pulumi.Int(1),
})
if err != nil {
return err
}
subnetIpv62, err := vpc.NewSubnet(ctx, "subnetIpv62", &vpc.SubnetArgs{
SubnetName: pulumi.String("acc-test-subnet-ipv6-2"),
CidrBlock: pulumi.String("172.16.2.0/24"),
ZoneId: pulumi.String(foo.Zones[1].Id),
VpcId: vpcIpv6.ID(),
Ipv6CidrBlock: pulumi.Int(2),
})
if err != nil {
return err
}
ipv6Gateway, err := vpc.NewIpv6Gateway(ctx, "ipv6Gateway", &vpc.Ipv6GatewayArgs{
VpcId: vpcIpv6.ID(),
})
if err != nil {
return err
}
_, err = alb.NewAlb(ctx, "alb-private", &alb.AlbArgs{
AddressIpVersion: pulumi.String("IPv4"),
Type: pulumi.String("private"),
LoadBalancerName: pulumi.String("acc-test-alb-private"),
Description: pulumi.String("acc-test"),
SubnetIds: pulumi.StringArray{
subnetIpv61.ID(),
subnetIpv62.ID(),
},
ProjectName: pulumi.String("default"),
DeleteProtection: pulumi.String("off"),
Tags: alb.AlbTagArray{
&alb.AlbTagArgs{
Key: pulumi.String("k1"),
Value: pulumi.String("v1"),
},
},
})
if err != nil {
return err
}
_, err = alb.NewAlb(ctx, "alb-public", &alb.AlbArgs{
AddressIpVersion: pulumi.String("DualStack"),
Type: pulumi.String("public"),
LoadBalancerName: pulumi.String("acc-test-alb-public"),
Description: pulumi.String("acc-test"),
SubnetIds: pulumi.StringArray{
subnetIpv61.ID(),
subnetIpv62.ID(),
},
ProjectName: pulumi.String("default"),
DeleteProtection: pulumi.String("off"),
ModificationProtectionStatus: pulumi.String("NonProtection"),
ModificationProtectionReason: pulumi.String("Test modification protection"),
LoadBalancerEdition: pulumi.String("Basic"),
EipBillingConfig: &alb.AlbEipBillingConfigArgs{
Isp: pulumi.String("BGP"),
EipBillingType: pulumi.String("PostPaidByBandwidth"),
Bandwidth: pulumi.Int(1),
},
Ipv6EipBillingConfig: &alb.AlbIpv6EipBillingConfigArgs{
Isp: pulumi.String("BGP"),
BillingType: pulumi.String("PostPaidByBandwidth"),
Bandwidth: pulumi.Int(1),
},
Tags: alb.AlbTagArray{
&alb.AlbTagArgs{
Key: pulumi.String("k1"),
Value: pulumi.String("v1"),
},
},
}, pulumi.DependsOn([]pulumi.Resource{
ipv6Gateway,
}))
if err != nil {
return err
}
// CLone ALB instance
_, err = alb.NewAlb(ctx, "alb-cloned", &alb.AlbArgs{
SourceLoadBalancerId: alb_private.ID(),
LoadBalancerName: pulumi.String("acc-test-alb-cloned"),
Description: pulumi.String("cloned from alb-private"),
SubnetIds: pulumi.StringArray{
subnetIpv61.ID(),
},
Type: pulumi.String("private"),
ProjectName: pulumi.String("default"),
})
if err != nil {
return err
}
// Example of ALB network type change, private -> public
_, err = alb.NewAlb(ctx, "alb-type-change", &alb.AlbArgs{
LoadBalancerName: pulumi.String("acc-test-alb-type-change"),
Description: pulumi.String("will change to public type"),
SubnetIds: pulumi.StringArray{
subnetIpv61.ID(),
subnetIpv62.ID(),
},
Type: pulumi.String("public"),
ProjectName: pulumi.String("default"),
AllocationIds: pulumi.StringArray{
pulumi.String("eip-iinpy4k1rytc74o8curgocd7"),
pulumi.String("eip-iinpy4k1rytc74o8curgocd8"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = Volcengine.Alb.GetZones.Invoke();
var vpcIpv6 = new Volcengine.Vpc.Vpc("vpcIpv6", new()
{
VpcName = "acc-test-vpc-ipv6",
CidrBlock = "172.16.0.0/16",
EnableIpv6 = true,
});
var subnetIpv61 = new Volcengine.Vpc.Subnet("subnetIpv61", new()
{
SubnetName = "acc-test-subnet-ipv6-1",
CidrBlock = "172.16.1.0/24",
ZoneId = foo.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
VpcId = vpcIpv6.Id,
Ipv6CidrBlock = 1,
});
var subnetIpv62 = new Volcengine.Vpc.Subnet("subnetIpv62", new()
{
SubnetName = "acc-test-subnet-ipv6-2",
CidrBlock = "172.16.2.0/24",
ZoneId = foo.Apply(getZonesResult => getZonesResult.Zones[1]?.Id),
VpcId = vpcIpv6.Id,
Ipv6CidrBlock = 2,
});
var ipv6Gateway = new Volcengine.Vpc.Ipv6Gateway("ipv6Gateway", new()
{
VpcId = vpcIpv6.Id,
});
var alb_private = new Volcengine.Alb.Alb("alb-private", new()
{
AddressIpVersion = "IPv4",
Type = "private",
LoadBalancerName = "acc-test-alb-private",
Description = "acc-test",
SubnetIds = new[]
{
subnetIpv61.Id,
subnetIpv62.Id,
},
ProjectName = "default",
DeleteProtection = "off",
Tags = new[]
{
new Volcengine.Alb.Inputs.AlbTagArgs
{
Key = "k1",
Value = "v1",
},
},
});
var alb_public = new Volcengine.Alb.Alb("alb-public", new()
{
AddressIpVersion = "DualStack",
Type = "public",
LoadBalancerName = "acc-test-alb-public",
Description = "acc-test",
SubnetIds = new[]
{
subnetIpv61.Id,
subnetIpv62.Id,
},
ProjectName = "default",
DeleteProtection = "off",
ModificationProtectionStatus = "NonProtection",
ModificationProtectionReason = "Test modification protection",
LoadBalancerEdition = "Basic",
EipBillingConfig = new Volcengine.Alb.Inputs.AlbEipBillingConfigArgs
{
Isp = "BGP",
EipBillingType = "PostPaidByBandwidth",
Bandwidth = 1,
},
Ipv6EipBillingConfig = new Volcengine.Alb.Inputs.AlbIpv6EipBillingConfigArgs
{
Isp = "BGP",
BillingType = "PostPaidByBandwidth",
Bandwidth = 1,
},
Tags = new[]
{
new Volcengine.Alb.Inputs.AlbTagArgs
{
Key = "k1",
Value = "v1",
},
},
}, new CustomResourceOptions
{
DependsOn =
{
ipv6Gateway,
},
});
// CLone ALB instance
var alb_cloned = new Volcengine.Alb.Alb("alb-cloned", new()
{
SourceLoadBalancerId = alb_private.Id,
LoadBalancerName = "acc-test-alb-cloned",
Description = "cloned from alb-private",
SubnetIds = new[]
{
subnetIpv61.Id,
},
Type = "private",
ProjectName = "default",
});
// Example of ALB network type change, private -> public
var alb_type_change = new Volcengine.Alb.Alb("alb-type-change", new()
{
LoadBalancerName = "acc-test-alb-type-change",
Description = "will change to public type",
SubnetIds = new[]
{
subnetIpv61.Id,
subnetIpv62.Id,
},
Type = "public",
ProjectName = "default",
AllocationIds = new[]
{
"eip-iinpy4k1rytc74o8curgocd7",
"eip-iinpy4k1rytc74o8curgocd8",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.alb.AlbFunctions;
import com.pulumi.volcengine.alb.inputs.GetZonesArgs;
import com.pulumi.volcengine.vpc.Vpc;
import com.pulumi.volcengine.vpc.VpcArgs;
import com.pulumi.volcengine.vpc.Subnet;
import com.pulumi.volcengine.vpc.SubnetArgs;
import com.pulumi.volcengine.vpc.Ipv6Gateway;
import com.pulumi.volcengine.vpc.Ipv6GatewayArgs;
import com.pulumi.volcengine.alb.Alb;
import com.pulumi.volcengine.alb.AlbArgs;
import com.pulumi.volcengine.alb.inputs.AlbTagArgs;
import com.pulumi.volcengine.alb.inputs.AlbEipBillingConfigArgs;
import com.pulumi.volcengine.alb.inputs.AlbIpv6EipBillingConfigArgs;
import com.pulumi.resources.CustomResourceOptions;
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 foo = AlbFunctions.getZones();
var vpcIpv6 = new Vpc("vpcIpv6", VpcArgs.builder()
.vpcName("acc-test-vpc-ipv6")
.cidrBlock("172.16.0.0/16")
.enableIpv6(true)
.build());
var subnetIpv61 = new Subnet("subnetIpv61", SubnetArgs.builder()
.subnetName("acc-test-subnet-ipv6-1")
.cidrBlock("172.16.1.0/24")
.zoneId(foo.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.vpcId(vpcIpv6.id())
.ipv6CidrBlock(1)
.build());
var subnetIpv62 = new Subnet("subnetIpv62", SubnetArgs.builder()
.subnetName("acc-test-subnet-ipv6-2")
.cidrBlock("172.16.2.0/24")
.zoneId(foo.applyValue(getZonesResult -> getZonesResult.zones()[1].id()))
.vpcId(vpcIpv6.id())
.ipv6CidrBlock(2)
.build());
var ipv6Gateway = new Ipv6Gateway("ipv6Gateway", Ipv6GatewayArgs.builder()
.vpcId(vpcIpv6.id())
.build());
var alb_private = new Alb("alb-private", AlbArgs.builder()
.addressIpVersion("IPv4")
.type("private")
.loadBalancerName("acc-test-alb-private")
.description("acc-test")
.subnetIds(
subnetIpv61.id(),
subnetIpv62.id())
.projectName("default")
.deleteProtection("off")
.tags(AlbTagArgs.builder()
.key("k1")
.value("v1")
.build())
.build());
var alb_public = new Alb("alb-public", AlbArgs.builder()
.addressIpVersion("DualStack")
.type("public")
.loadBalancerName("acc-test-alb-public")
.description("acc-test")
.subnetIds(
subnetIpv61.id(),
subnetIpv62.id())
.projectName("default")
.deleteProtection("off")
.modificationProtectionStatus("NonProtection")
.modificationProtectionReason("Test modification protection")
.loadBalancerEdition("Basic")
.eipBillingConfig(AlbEipBillingConfigArgs.builder()
.isp("BGP")
.eipBillingType("PostPaidByBandwidth")
.bandwidth(1)
.build())
.ipv6EipBillingConfig(AlbIpv6EipBillingConfigArgs.builder()
.isp("BGP")
.billingType("PostPaidByBandwidth")
.bandwidth(1)
.build())
.tags(AlbTagArgs.builder()
.key("k1")
.value("v1")
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(ipv6Gateway)
.build());
// CLone ALB instance
var alb_cloned = new Alb("alb-cloned", AlbArgs.builder()
.sourceLoadBalancerId(alb_private.id())
.loadBalancerName("acc-test-alb-cloned")
.description("cloned from alb-private")
.subnetIds(subnetIpv61.id())
.type("private")
.projectName("default")
.build());
// Example of ALB network type change, private -> public
var alb_type_change = new Alb("alb-type-change", AlbArgs.builder()
.loadBalancerName("acc-test-alb-type-change")
.description("will change to public type")
.subnetIds(
subnetIpv61.id(),
subnetIpv62.id())
.type("public")
.projectName("default")
.allocationIds(
"eip-iinpy4k1rytc74o8curgocd7",
"eip-iinpy4k1rytc74o8curgocd8")
.build());
}
}
resources:
vpcIpv6:
type: volcengine:vpc:Vpc
properties:
vpcName: acc-test-vpc-ipv6
cidrBlock: 172.16.0.0/16
enableIpv6: true
subnetIpv61:
type: volcengine:vpc:Subnet
properties:
subnetName: acc-test-subnet-ipv6-1
cidrBlock: 172.16.1.0/24
zoneId: ${foo.zones[0].id}
vpcId: ${vpcIpv6.id}
ipv6CidrBlock: 1
subnetIpv62:
type: volcengine:vpc:Subnet
properties:
subnetName: acc-test-subnet-ipv6-2
cidrBlock: 172.16.2.0/24
zoneId: ${foo.zones[1].id}
vpcId: ${vpcIpv6.id}
ipv6CidrBlock: 2
ipv6Gateway:
type: volcengine:vpc:Ipv6Gateway
properties:
vpcId: ${vpcIpv6.id}
alb-private:
type: volcengine:alb:Alb
properties:
addressIpVersion: IPv4
type: private
loadBalancerName: acc-test-alb-private
description: acc-test
subnetIds:
- ${subnetIpv61.id}
- ${subnetIpv62.id}
projectName: default
deleteProtection: off
tags:
- key: k1
value: v1
alb-public:
type: volcengine:alb:Alb
properties:
addressIpVersion: DualStack
type: public
loadBalancerName: acc-test-alb-public
description: acc-test
subnetIds:
- ${subnetIpv61.id}
- ${subnetIpv62.id}
projectName: default
deleteProtection: off
modificationProtectionStatus: NonProtection
modificationProtectionReason: Test modification protection
loadBalancerEdition: Basic
eipBillingConfig:
isp: BGP
eipBillingType: PostPaidByBandwidth
bandwidth: 1
ipv6EipBillingConfig:
isp: BGP
billingType: PostPaidByBandwidth
bandwidth: 1
tags:
- key: k1
value: v1
options:
dependson:
- ${ipv6Gateway}
# CLone ALB instance
alb-cloned:
type: volcengine:alb:Alb
properties:
sourceLoadBalancerId: ${["alb-private"].id}
loadBalancerName: acc-test-alb-cloned
description: cloned from alb-private
subnetIds:
- ${subnetIpv61.id}
type: private
projectName: default
# Example of ALB network type change, private -> public
alb-type-change:
type: volcengine:alb:Alb
properties:
loadBalancerName: acc-test-alb-type-change
description: will change to public type
subnetIds:
- ${subnetIpv61.id}
- ${subnetIpv62.id}
type: public
projectName: default
allocationIds:
- eip-iinpy4k1rytc74o8curgocd7
- eip-iinpy4k1rytc74o8curgocd8
variables:
foo:
fn::invoke:
Function: volcengine:alb:getZones
Arguments: {}
Example coming soon!
Create Alb Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Alb(name: string, args: AlbArgs, opts?: CustomResourceOptions);@overload
def Alb(resource_name: str,
args: AlbArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Alb(resource_name: str,
opts: Optional[ResourceOptions] = None,
subnet_ids: Optional[Sequence[str]] = None,
type: Optional[str] = None,
modification_protection_status: Optional[str] = None,
project_name: Optional[str] = None,
eip_billing_config: Optional[AlbEipBillingConfigArgs] = None,
global_accelerator: Optional[AlbGlobalAcceleratorArgs] = None,
ipv6_eip_billing_config: Optional[AlbIpv6EipBillingConfigArgs] = None,
load_balancer_edition: Optional[str] = None,
load_balancer_name: Optional[str] = None,
modification_protection_reason: Optional[str] = None,
address_ip_version: Optional[str] = None,
description: Optional[str] = None,
proxy_protocol_enabled: Optional[str] = None,
source_load_balancer_id: Optional[str] = None,
delete_protection: Optional[str] = None,
tags: Optional[Sequence[AlbTagArgs]] = None,
allocation_ids: Optional[Sequence[str]] = None,
waf_instance_id: Optional[str] = None,
waf_protected_domain: Optional[str] = None,
waf_protection_enabled: Optional[str] = None)func NewAlb(ctx *Context, name string, args AlbArgs, opts ...ResourceOption) (*Alb, error)public Alb(string name, AlbArgs args, CustomResourceOptions? opts = null)type: volcengine:alb:Alb
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "volcengine_alb_alb" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AlbArgs
- 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 AlbArgs
- 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 AlbArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlbArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AlbArgs
- 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 albResource = new Volcengine.Alb.Alb("albResource", new()
{
SubnetIds = new[]
{
"string",
},
Type = "string",
ModificationProtectionStatus = "string",
ProjectName = "string",
EipBillingConfig = new Volcengine.Alb.Inputs.AlbEipBillingConfigArgs
{
Bandwidth = 0,
EipBillingType = "string",
Isp = "string",
},
GlobalAccelerator = new Volcengine.Alb.Inputs.AlbGlobalAcceleratorArgs
{
AcceleratorId = "string",
AcceleratorListenerId = "string",
EndpointGroupId = "string",
Weight = 0,
},
Ipv6EipBillingConfig = new Volcengine.Alb.Inputs.AlbIpv6EipBillingConfigArgs
{
Bandwidth = 0,
BillingType = "string",
Isp = "string",
},
LoadBalancerEdition = "string",
LoadBalancerName = "string",
ModificationProtectionReason = "string",
AddressIpVersion = "string",
Description = "string",
ProxyProtocolEnabled = "string",
SourceLoadBalancerId = "string",
DeleteProtection = "string",
Tags = new[]
{
new Volcengine.Alb.Inputs.AlbTagArgs
{
Key = "string",
Value = "string",
},
},
AllocationIds = new[]
{
"string",
},
WafInstanceId = "string",
WafProtectedDomain = "string",
WafProtectionEnabled = "string",
});
example, err := alb.NewAlb(ctx, "albResource", &alb.AlbArgs{
SubnetIds: pulumi.StringArray{
pulumi.String("string"),
},
Type: pulumi.String("string"),
ModificationProtectionStatus: pulumi.String("string"),
ProjectName: pulumi.String("string"),
EipBillingConfig: &alb.AlbEipBillingConfigArgs{
Bandwidth: pulumi.Int(0),
EipBillingType: pulumi.String("string"),
Isp: pulumi.String("string"),
},
GlobalAccelerator: &alb.AlbGlobalAcceleratorArgs{
AcceleratorId: pulumi.String("string"),
AcceleratorListenerId: pulumi.String("string"),
EndpointGroupId: pulumi.String("string"),
Weight: pulumi.Int(0),
},
Ipv6EipBillingConfig: &alb.AlbIpv6EipBillingConfigArgs{
Bandwidth: pulumi.Int(0),
BillingType: pulumi.String("string"),
Isp: pulumi.String("string"),
},
LoadBalancerEdition: pulumi.String("string"),
LoadBalancerName: pulumi.String("string"),
ModificationProtectionReason: pulumi.String("string"),
AddressIpVersion: pulumi.String("string"),
Description: pulumi.String("string"),
ProxyProtocolEnabled: pulumi.String("string"),
SourceLoadBalancerId: pulumi.String("string"),
DeleteProtection: pulumi.String("string"),
Tags: alb.AlbTagArray{
&alb.AlbTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
AllocationIds: pulumi.StringArray{
pulumi.String("string"),
},
WafInstanceId: pulumi.String("string"),
WafProtectedDomain: pulumi.String("string"),
WafProtectionEnabled: pulumi.String("string"),
})
resource "volcengine_alb_alb" "albResource" {
subnet_ids = ["string"]
type = "string"
modification_protection_status = "string"
project_name = "string"
eip_billing_config = {
bandwidth = 0
eip_billing_type = "string"
isp = "string"
}
global_accelerator = {
accelerator_id = "string"
accelerator_listener_id = "string"
endpoint_group_id = "string"
weight = 0
}
ipv6_eip_billing_config = {
bandwidth = 0
billing_type = "string"
isp = "string"
}
load_balancer_edition = "string"
load_balancer_name = "string"
modification_protection_reason = "string"
address_ip_version = "string"
description = "string"
proxy_protocol_enabled = "string"
source_load_balancer_id = "string"
delete_protection = "string"
tags {
key = "string"
value = "string"
}
allocation_ids = ["string"]
waf_instance_id = "string"
waf_protected_domain = "string"
waf_protection_enabled = "string"
}
var albResource = new Alb("albResource", AlbArgs.builder()
.subnetIds("string")
.type("string")
.modificationProtectionStatus("string")
.projectName("string")
.eipBillingConfig(AlbEipBillingConfigArgs.builder()
.bandwidth(0)
.eipBillingType("string")
.isp("string")
.build())
.globalAccelerator(AlbGlobalAcceleratorArgs.builder()
.acceleratorId("string")
.acceleratorListenerId("string")
.endpointGroupId("string")
.weight(0)
.build())
.ipv6EipBillingConfig(AlbIpv6EipBillingConfigArgs.builder()
.bandwidth(0)
.billingType("string")
.isp("string")
.build())
.loadBalancerEdition("string")
.loadBalancerName("string")
.modificationProtectionReason("string")
.addressIpVersion("string")
.description("string")
.proxyProtocolEnabled("string")
.sourceLoadBalancerId("string")
.deleteProtection("string")
.tags(AlbTagArgs.builder()
.key("string")
.value("string")
.build())
.allocationIds("string")
.wafInstanceId("string")
.wafProtectedDomain("string")
.wafProtectionEnabled("string")
.build());
alb_resource = volcengine.alb.Alb("albResource",
subnet_ids=["string"],
type="string",
modification_protection_status="string",
project_name="string",
eip_billing_config={
"bandwidth": 0,
"eip_billing_type": "string",
"isp": "string",
},
global_accelerator={
"accelerator_id": "string",
"accelerator_listener_id": "string",
"endpoint_group_id": "string",
"weight": 0,
},
ipv6_eip_billing_config={
"bandwidth": 0,
"billing_type": "string",
"isp": "string",
},
load_balancer_edition="string",
load_balancer_name="string",
modification_protection_reason="string",
address_ip_version="string",
description="string",
proxy_protocol_enabled="string",
source_load_balancer_id="string",
delete_protection="string",
tags=[{
"key": "string",
"value": "string",
}],
allocation_ids=["string"],
waf_instance_id="string",
waf_protected_domain="string",
waf_protection_enabled="string")
const albResource = new volcengine.alb.Alb("albResource", {
subnetIds: ["string"],
type: "string",
modificationProtectionStatus: "string",
projectName: "string",
eipBillingConfig: {
bandwidth: 0,
eipBillingType: "string",
isp: "string",
},
globalAccelerator: {
acceleratorId: "string",
acceleratorListenerId: "string",
endpointGroupId: "string",
weight: 0,
},
ipv6EipBillingConfig: {
bandwidth: 0,
billingType: "string",
isp: "string",
},
loadBalancerEdition: "string",
loadBalancerName: "string",
modificationProtectionReason: "string",
addressIpVersion: "string",
description: "string",
proxyProtocolEnabled: "string",
sourceLoadBalancerId: "string",
deleteProtection: "string",
tags: [{
key: "string",
value: "string",
}],
allocationIds: ["string"],
wafInstanceId: "string",
wafProtectedDomain: "string",
wafProtectionEnabled: "string",
});
type: volcengine:alb:Alb
properties:
addressIpVersion: string
allocationIds:
- string
deleteProtection: string
description: string
eipBillingConfig:
bandwidth: 0
eipBillingType: string
isp: string
globalAccelerator:
acceleratorId: string
acceleratorListenerId: string
endpointGroupId: string
weight: 0
ipv6EipBillingConfig:
bandwidth: 0
billingType: string
isp: string
loadBalancerEdition: string
loadBalancerName: string
modificationProtectionReason: string
modificationProtectionStatus: string
projectName: string
proxyProtocolEnabled: string
sourceLoadBalancerId: string
subnetIds:
- string
tags:
- key: string
value: string
type: string
wafInstanceId: string
wafProtectedDomain: string
wafProtectionEnabled: string
Alb 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 Alb resource accepts the following input properties:
- Subnet
Ids List<string> - The id of the Subnet.
- Type string
- The type of the Alb. Valid values:
public,private. - Address
Ip stringVersion - The address ip version of the Alb. Valid values:
IPv4,DualStack. Default isipv4. - Allocation
Ids List<string> - The ID of the public IP. This field is only valid when the type field changes from private to public.
- Delete
Protection string - Whether to enable the delete protection function of the Alb. Valid values:
on,off. Default isoff. - Description string
- The description of the Alb.
- Eip
Billing AlbConfig Eip Billing Config - The billing configuration of the EIP which automatically associated to the Alb. This field is valid when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.eip.Addressandvolcengine.eip.Associateto achieve public network access function. - Global
Accelerator AlbGlobal Accelerator - The global accelerator configuration.
- Ipv6Eip
Billing AlbConfig Ipv6Eip Billing Config - The billing configuration of the Ipv6 EIP which automatically associated to the Alb. This field is required when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.vpc.Ipv6Gatewayandvolcengine.vpc.Ipv6AddressBandwidthto achieve ipv6 public network access function. - Load
Balancer stringEdition - The version of the ALB instance. Basic: Basic Edition. Standard: Standard Edition. Default is
Basic. - Load
Balancer stringName - The name of the Alb.
- Modification
Protection stringReason - The reason for enabling instance modification protection. This parameter is valid when the modification_protection_status is
ConsoleProtection. - Modification
Protection stringStatus - Whether to enable the modification protection function of the Alb. Valid values:
NonProtection,ConsoleProtection. Default isNonProtection. NonProtection: Instance modification protection is not enabled. ConsoleProtection: Instance modification protection is enabled; you cannot modify the instance configuration through the ALB console, and can only modify the instance configuration by calling the API. - Project
Name string - The ProjectName of the Alb.
- Proxy
Protocol stringEnabled - ALB can support the Proxy Protocol and record the real IP of the client.
- Source
Load stringBalancer Id - The source ALB instance ID for cloning. If specified, the ALB instance will be cloned from this source.
-
List<Alb
Tag> - Tags.
- Waf
Instance stringId - The ID of the WAF instance to be associated with the Alb. This field is valid when the value of the
waf_protection_enabledison. - Waf
Protected stringDomain - The domain name of the WAF protected Alb. This field is valid when the value of the
waf_protection_enabledison. - Waf
Protection stringEnabled - Whether to enable the WAF protection function of the Alb. Valid values:
off,on. Default isoff.
- Subnet
Ids []string - The id of the Subnet.
- Type string
- The type of the Alb. Valid values:
public,private. - Address
Ip stringVersion - The address ip version of the Alb. Valid values:
IPv4,DualStack. Default isipv4. - Allocation
Ids []string - The ID of the public IP. This field is only valid when the type field changes from private to public.
- Delete
Protection string - Whether to enable the delete protection function of the Alb. Valid values:
on,off. Default isoff. - Description string
- The description of the Alb.
- Eip
Billing AlbConfig Eip Billing Config Args - The billing configuration of the EIP which automatically associated to the Alb. This field is valid when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.eip.Addressandvolcengine.eip.Associateto achieve public network access function. - Global
Accelerator AlbGlobal Accelerator Args - The global accelerator configuration.
- Ipv6Eip
Billing AlbConfig Ipv6Eip Billing Config Args - The billing configuration of the Ipv6 EIP which automatically associated to the Alb. This field is required when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.vpc.Ipv6Gatewayandvolcengine.vpc.Ipv6AddressBandwidthto achieve ipv6 public network access function. - Load
Balancer stringEdition - The version of the ALB instance. Basic: Basic Edition. Standard: Standard Edition. Default is
Basic. - Load
Balancer stringName - The name of the Alb.
- Modification
Protection stringReason - The reason for enabling instance modification protection. This parameter is valid when the modification_protection_status is
ConsoleProtection. - Modification
Protection stringStatus - Whether to enable the modification protection function of the Alb. Valid values:
NonProtection,ConsoleProtection. Default isNonProtection. NonProtection: Instance modification protection is not enabled. ConsoleProtection: Instance modification protection is enabled; you cannot modify the instance configuration through the ALB console, and can only modify the instance configuration by calling the API. - Project
Name string - The ProjectName of the Alb.
- Proxy
Protocol stringEnabled - ALB can support the Proxy Protocol and record the real IP of the client.
- Source
Load stringBalancer Id - The source ALB instance ID for cloning. If specified, the ALB instance will be cloned from this source.
-
[]Alb
Tag Args - Tags.
- Waf
Instance stringId - The ID of the WAF instance to be associated with the Alb. This field is valid when the value of the
waf_protection_enabledison. - Waf
Protected stringDomain - The domain name of the WAF protected Alb. This field is valid when the value of the
waf_protection_enabledison. - Waf
Protection stringEnabled - Whether to enable the WAF protection function of the Alb. Valid values:
off,on. Default isoff.
- subnet_
ids list(string) - The id of the Subnet.
- type string
- The type of the Alb. Valid values:
public,private. - address_
ip_ stringversion - The address ip version of the Alb. Valid values:
IPv4,DualStack. Default isipv4. - allocation_
ids list(string) - The ID of the public IP. This field is only valid when the type field changes from private to public.
- delete_
protection string - Whether to enable the delete protection function of the Alb. Valid values:
on,off. Default isoff. - description string
- The description of the Alb.
- eip_
billing_ objectconfig - The billing configuration of the EIP which automatically associated to the Alb. This field is valid when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.eip.Addressandvolcengine.eip.Associateto achieve public network access function. - global_
accelerator object - The global accelerator configuration.
- ipv6_
eip_ objectbilling_ config - The billing configuration of the Ipv6 EIP which automatically associated to the Alb. This field is required when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.vpc.Ipv6Gatewayandvolcengine.vpc.Ipv6AddressBandwidthto achieve ipv6 public network access function. - load_
balancer_ stringedition - The version of the ALB instance. Basic: Basic Edition. Standard: Standard Edition. Default is
Basic. - load_
balancer_ stringname - The name of the Alb.
- modification_
protection_ stringreason - The reason for enabling instance modification protection. This parameter is valid when the modification_protection_status is
ConsoleProtection. - modification_
protection_ stringstatus - Whether to enable the modification protection function of the Alb. Valid values:
NonProtection,ConsoleProtection. Default isNonProtection. NonProtection: Instance modification protection is not enabled. ConsoleProtection: Instance modification protection is enabled; you cannot modify the instance configuration through the ALB console, and can only modify the instance configuration by calling the API. - project_
name string - The ProjectName of the Alb.
- proxy_
protocol_ stringenabled - ALB can support the Proxy Protocol and record the real IP of the client.
- source_
load_ stringbalancer_ id - The source ALB instance ID for cloning. If specified, the ALB instance will be cloned from this source.
- list(object)
- Tags.
- waf_
instance_ stringid - The ID of the WAF instance to be associated with the Alb. This field is valid when the value of the
waf_protection_enabledison. - waf_
protected_ stringdomain - The domain name of the WAF protected Alb. This field is valid when the value of the
waf_protection_enabledison. - waf_
protection_ stringenabled - Whether to enable the WAF protection function of the Alb. Valid values:
off,on. Default isoff.
- subnet
Ids List<String> - The id of the Subnet.
- type String
- The type of the Alb. Valid values:
public,private. - address
Ip StringVersion - The address ip version of the Alb. Valid values:
IPv4,DualStack. Default isipv4. - allocation
Ids List<String> - The ID of the public IP. This field is only valid when the type field changes from private to public.
- delete
Protection String - Whether to enable the delete protection function of the Alb. Valid values:
on,off. Default isoff. - description String
- The description of the Alb.
- eip
Billing AlbConfig Eip Billing Config - The billing configuration of the EIP which automatically associated to the Alb. This field is valid when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.eip.Addressandvolcengine.eip.Associateto achieve public network access function. - global
Accelerator AlbGlobal Accelerator - The global accelerator configuration.
- ipv6Eip
Billing AlbConfig Ipv6Eip Billing Config - The billing configuration of the Ipv6 EIP which automatically associated to the Alb. This field is required when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.vpc.Ipv6Gatewayandvolcengine.vpc.Ipv6AddressBandwidthto achieve ipv6 public network access function. - load
Balancer StringEdition - The version of the ALB instance. Basic: Basic Edition. Standard: Standard Edition. Default is
Basic. - load
Balancer StringName - The name of the Alb.
- modification
Protection StringReason - The reason for enabling instance modification protection. This parameter is valid when the modification_protection_status is
ConsoleProtection. - modification
Protection StringStatus - Whether to enable the modification protection function of the Alb. Valid values:
NonProtection,ConsoleProtection. Default isNonProtection. NonProtection: Instance modification protection is not enabled. ConsoleProtection: Instance modification protection is enabled; you cannot modify the instance configuration through the ALB console, and can only modify the instance configuration by calling the API. - project
Name String - The ProjectName of the Alb.
- proxy
Protocol StringEnabled - ALB can support the Proxy Protocol and record the real IP of the client.
- source
Load StringBalancer Id - The source ALB instance ID for cloning. If specified, the ALB instance will be cloned from this source.
-
List<Alb
Tag> - Tags.
- waf
Instance StringId - The ID of the WAF instance to be associated with the Alb. This field is valid when the value of the
waf_protection_enabledison. - waf
Protected StringDomain - The domain name of the WAF protected Alb. This field is valid when the value of the
waf_protection_enabledison. - waf
Protection StringEnabled - Whether to enable the WAF protection function of the Alb. Valid values:
off,on. Default isoff.
- subnet
Ids string[] - The id of the Subnet.
- type string
- The type of the Alb. Valid values:
public,private. - address
Ip stringVersion - The address ip version of the Alb. Valid values:
IPv4,DualStack. Default isipv4. - allocation
Ids string[] - The ID of the public IP. This field is only valid when the type field changes from private to public.
- delete
Protection string - Whether to enable the delete protection function of the Alb. Valid values:
on,off. Default isoff. - description string
- The description of the Alb.
- eip
Billing AlbConfig Eip Billing Config - The billing configuration of the EIP which automatically associated to the Alb. This field is valid when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.eip.Addressandvolcengine.eip.Associateto achieve public network access function. - global
Accelerator AlbGlobal Accelerator - The global accelerator configuration.
- ipv6Eip
Billing AlbConfig Ipv6Eip Billing Config - The billing configuration of the Ipv6 EIP which automatically associated to the Alb. This field is required when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.vpc.Ipv6Gatewayandvolcengine.vpc.Ipv6AddressBandwidthto achieve ipv6 public network access function. - load
Balancer stringEdition - The version of the ALB instance. Basic: Basic Edition. Standard: Standard Edition. Default is
Basic. - load
Balancer stringName - The name of the Alb.
- modification
Protection stringReason - The reason for enabling instance modification protection. This parameter is valid when the modification_protection_status is
ConsoleProtection. - modification
Protection stringStatus - Whether to enable the modification protection function of the Alb. Valid values:
NonProtection,ConsoleProtection. Default isNonProtection. NonProtection: Instance modification protection is not enabled. ConsoleProtection: Instance modification protection is enabled; you cannot modify the instance configuration through the ALB console, and can only modify the instance configuration by calling the API. - project
Name string - The ProjectName of the Alb.
- proxy
Protocol stringEnabled - ALB can support the Proxy Protocol and record the real IP of the client.
- source
Load stringBalancer Id - The source ALB instance ID for cloning. If specified, the ALB instance will be cloned from this source.
-
Alb
Tag[] - Tags.
- waf
Instance stringId - The ID of the WAF instance to be associated with the Alb. This field is valid when the value of the
waf_protection_enabledison. - waf
Protected stringDomain - The domain name of the WAF protected Alb. This field is valid when the value of the
waf_protection_enabledison. - waf
Protection stringEnabled - Whether to enable the WAF protection function of the Alb. Valid values:
off,on. Default isoff.
- subnet_
ids Sequence[str] - The id of the Subnet.
- type str
- The type of the Alb. Valid values:
public,private. - address_
ip_ strversion - The address ip version of the Alb. Valid values:
IPv4,DualStack. Default isipv4. - allocation_
ids Sequence[str] - The ID of the public IP. This field is only valid when the type field changes from private to public.
- delete_
protection str - Whether to enable the delete protection function of the Alb. Valid values:
on,off. Default isoff. - description str
- The description of the Alb.
- eip_
billing_ Albconfig Eip Billing Config Args - The billing configuration of the EIP which automatically associated to the Alb. This field is valid when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.eip.Addressandvolcengine.eip.Associateto achieve public network access function. - global_
accelerator AlbGlobal Accelerator Args - The global accelerator configuration.
- ipv6_
eip_ Albbilling_ config Ipv6Eip Billing Config Args - The billing configuration of the Ipv6 EIP which automatically associated to the Alb. This field is required when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.vpc.Ipv6Gatewayandvolcengine.vpc.Ipv6AddressBandwidthto achieve ipv6 public network access function. - load_
balancer_ stredition - The version of the ALB instance. Basic: Basic Edition. Standard: Standard Edition. Default is
Basic. - load_
balancer_ strname - The name of the Alb.
- modification_
protection_ strreason - The reason for enabling instance modification protection. This parameter is valid when the modification_protection_status is
ConsoleProtection. - modification_
protection_ strstatus - Whether to enable the modification protection function of the Alb. Valid values:
NonProtection,ConsoleProtection. Default isNonProtection. NonProtection: Instance modification protection is not enabled. ConsoleProtection: Instance modification protection is enabled; you cannot modify the instance configuration through the ALB console, and can only modify the instance configuration by calling the API. - project_
name str - The ProjectName of the Alb.
- proxy_
protocol_ strenabled - ALB can support the Proxy Protocol and record the real IP of the client.
- source_
load_ strbalancer_ id - The source ALB instance ID for cloning. If specified, the ALB instance will be cloned from this source.
-
Sequence[Alb
Tag Args] - Tags.
- waf_
instance_ strid - The ID of the WAF instance to be associated with the Alb. This field is valid when the value of the
waf_protection_enabledison. - waf_
protected_ strdomain - The domain name of the WAF protected Alb. This field is valid when the value of the
waf_protection_enabledison. - waf_
protection_ strenabled - Whether to enable the WAF protection function of the Alb. Valid values:
off,on. Default isoff.
- subnet
Ids List<String> - The id of the Subnet.
- type String
- The type of the Alb. Valid values:
public,private. - address
Ip StringVersion - The address ip version of the Alb. Valid values:
IPv4,DualStack. Default isipv4. - allocation
Ids List<String> - The ID of the public IP. This field is only valid when the type field changes from private to public.
- delete
Protection String - Whether to enable the delete protection function of the Alb. Valid values:
on,off. Default isoff. - description String
- The description of the Alb.
- eip
Billing Property MapConfig - The billing configuration of the EIP which automatically associated to the Alb. This field is valid when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.eip.Addressandvolcengine.eip.Associateto achieve public network access function. - global
Accelerator Property Map - The global accelerator configuration.
- ipv6Eip
Billing Property MapConfig - The billing configuration of the Ipv6 EIP which automatically associated to the Alb. This field is required when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.vpc.Ipv6Gatewayandvolcengine.vpc.Ipv6AddressBandwidthto achieve ipv6 public network access function. - load
Balancer StringEdition - The version of the ALB instance. Basic: Basic Edition. Standard: Standard Edition. Default is
Basic. - load
Balancer StringName - The name of the Alb.
- modification
Protection StringReason - The reason for enabling instance modification protection. This parameter is valid when the modification_protection_status is
ConsoleProtection. - modification
Protection StringStatus - Whether to enable the modification protection function of the Alb. Valid values:
NonProtection,ConsoleProtection. Default isNonProtection. NonProtection: Instance modification protection is not enabled. ConsoleProtection: Instance modification protection is enabled; you cannot modify the instance configuration through the ALB console, and can only modify the instance configuration by calling the API. - project
Name String - The ProjectName of the Alb.
- proxy
Protocol StringEnabled - ALB can support the Proxy Protocol and record the real IP of the client.
- source
Load StringBalancer Id - The source ALB instance ID for cloning. If specified, the ALB instance will be cloned from this source.
- List<Property Map>
- Tags.
- waf
Instance StringId - The ID of the WAF instance to be associated with the Alb. This field is valid when the value of the
waf_protection_enabledison. - waf
Protected StringDomain - The domain name of the WAF protected Alb. This field is valid when the value of the
waf_protection_enabledison. - waf
Protection StringEnabled - Whether to enable the WAF protection function of the Alb. Valid values:
off,on. Default isoff.
Outputs
All input properties are implicitly available as output properties. Additionally, the Alb resource produces the following output properties:
- Dns
Name string - The DNS name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Local
Addresses List<string> - The local addresses of the Alb.
- Status string
- The status of the Alb.
- Vpc
Id string - The vpc id of the Alb.
- Zone
Mappings List<AlbZone Mapping> - Configuration information of the Alb instance in different Availability Zones.
- Dns
Name string - The DNS name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Local
Addresses []string - The local addresses of the Alb.
- Status string
- The status of the Alb.
- Vpc
Id string - The vpc id of the Alb.
- Zone
Mappings []AlbZone Mapping - Configuration information of the Alb instance in different Availability Zones.
- dns_
name string - The DNS name.
- id string
- The provider-assigned unique ID for this managed resource.
- local_
addresses list(string) - The local addresses of the Alb.
- status string
- The status of the Alb.
- vpc_
id string - The vpc id of the Alb.
- zone_
mappings list(object) - Configuration information of the Alb instance in different Availability Zones.
- dns
Name String - The DNS name.
- id String
- The provider-assigned unique ID for this managed resource.
- local
Addresses List<String> - The local addresses of the Alb.
- status String
- The status of the Alb.
- vpc
Id String - The vpc id of the Alb.
- zone
Mappings List<AlbZone Mapping> - Configuration information of the Alb instance in different Availability Zones.
- dns
Name string - The DNS name.
- id string
- The provider-assigned unique ID for this managed resource.
- local
Addresses string[] - The local addresses of the Alb.
- status string
- The status of the Alb.
- vpc
Id string - The vpc id of the Alb.
- zone
Mappings AlbZone Mapping[] - Configuration information of the Alb instance in different Availability Zones.
- dns_
name str - The DNS name.
- id str
- The provider-assigned unique ID for this managed resource.
- local_
addresses Sequence[str] - The local addresses of the Alb.
- status str
- The status of the Alb.
- vpc_
id str - The vpc id of the Alb.
- zone_
mappings Sequence[AlbZone Mapping] - Configuration information of the Alb instance in different Availability Zones.
- dns
Name String - The DNS name.
- id String
- The provider-assigned unique ID for this managed resource.
- local
Addresses List<String> - The local addresses of the Alb.
- status String
- The status of the Alb.
- vpc
Id String - The vpc id of the Alb.
- zone
Mappings List<Property Map> - Configuration information of the Alb instance in different Availability Zones.
Look up Existing Alb Resource
Get an existing Alb 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?: AlbState, opts?: CustomResourceOptions): Alb@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
address_ip_version: Optional[str] = None,
allocation_ids: Optional[Sequence[str]] = None,
delete_protection: Optional[str] = None,
description: Optional[str] = None,
dns_name: Optional[str] = None,
eip_billing_config: Optional[AlbEipBillingConfigArgs] = None,
global_accelerator: Optional[AlbGlobalAcceleratorArgs] = None,
ipv6_eip_billing_config: Optional[AlbIpv6EipBillingConfigArgs] = None,
load_balancer_edition: Optional[str] = None,
load_balancer_name: Optional[str] = None,
local_addresses: Optional[Sequence[str]] = None,
modification_protection_reason: Optional[str] = None,
modification_protection_status: Optional[str] = None,
project_name: Optional[str] = None,
proxy_protocol_enabled: Optional[str] = None,
source_load_balancer_id: Optional[str] = None,
status: Optional[str] = None,
subnet_ids: Optional[Sequence[str]] = None,
tags: Optional[Sequence[AlbTagArgs]] = None,
type: Optional[str] = None,
vpc_id: Optional[str] = None,
waf_instance_id: Optional[str] = None,
waf_protected_domain: Optional[str] = None,
waf_protection_enabled: Optional[str] = None,
zone_mappings: Optional[Sequence[AlbZoneMappingArgs]] = None) -> Albfunc GetAlb(ctx *Context, name string, id IDInput, state *AlbState, opts ...ResourceOption) (*Alb, error)public static Alb Get(string name, Input<string> id, AlbState? state, CustomResourceOptions? opts = null)public static Alb get(String name, Output<String> id, AlbState state, CustomResourceOptions options)resources: _: type: volcengine:alb:Alb get: id: ${id}import {
to = volcengine_alb_alb.example
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.
- Address
Ip stringVersion - The address ip version of the Alb. Valid values:
IPv4,DualStack. Default isipv4. - Allocation
Ids List<string> - The ID of the public IP. This field is only valid when the type field changes from private to public.
- Delete
Protection string - Whether to enable the delete protection function of the Alb. Valid values:
on,off. Default isoff. - Description string
- The description of the Alb.
- Dns
Name string - The DNS name.
- Eip
Billing AlbConfig Eip Billing Config - The billing configuration of the EIP which automatically associated to the Alb. This field is valid when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.eip.Addressandvolcengine.eip.Associateto achieve public network access function. - Global
Accelerator AlbGlobal Accelerator - The global accelerator configuration.
- Ipv6Eip
Billing AlbConfig Ipv6Eip Billing Config - The billing configuration of the Ipv6 EIP which automatically associated to the Alb. This field is required when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.vpc.Ipv6Gatewayandvolcengine.vpc.Ipv6AddressBandwidthto achieve ipv6 public network access function. - Load
Balancer stringEdition - The version of the ALB instance. Basic: Basic Edition. Standard: Standard Edition. Default is
Basic. - Load
Balancer stringName - The name of the Alb.
- Local
Addresses List<string> - The local addresses of the Alb.
- Modification
Protection stringReason - The reason for enabling instance modification protection. This parameter is valid when the modification_protection_status is
ConsoleProtection. - Modification
Protection stringStatus - Whether to enable the modification protection function of the Alb. Valid values:
NonProtection,ConsoleProtection. Default isNonProtection. NonProtection: Instance modification protection is not enabled. ConsoleProtection: Instance modification protection is enabled; you cannot modify the instance configuration through the ALB console, and can only modify the instance configuration by calling the API. - Project
Name string - The ProjectName of the Alb.
- Proxy
Protocol stringEnabled - ALB can support the Proxy Protocol and record the real IP of the client.
- Source
Load stringBalancer Id - The source ALB instance ID for cloning. If specified, the ALB instance will be cloned from this source.
- Status string
- The status of the Alb.
- Subnet
Ids List<string> - The id of the Subnet.
-
List<Alb
Tag> - Tags.
- Type string
- The type of the Alb. Valid values:
public,private. - Vpc
Id string - The vpc id of the Alb.
- Waf
Instance stringId - The ID of the WAF instance to be associated with the Alb. This field is valid when the value of the
waf_protection_enabledison. - Waf
Protected stringDomain - The domain name of the WAF protected Alb. This field is valid when the value of the
waf_protection_enabledison. - Waf
Protection stringEnabled - Whether to enable the WAF protection function of the Alb. Valid values:
off,on. Default isoff. - Zone
Mappings List<AlbZone Mapping> - Configuration information of the Alb instance in different Availability Zones.
- Address
Ip stringVersion - The address ip version of the Alb. Valid values:
IPv4,DualStack. Default isipv4. - Allocation
Ids []string - The ID of the public IP. This field is only valid when the type field changes from private to public.
- Delete
Protection string - Whether to enable the delete protection function of the Alb. Valid values:
on,off. Default isoff. - Description string
- The description of the Alb.
- Dns
Name string - The DNS name.
- Eip
Billing AlbConfig Eip Billing Config Args - The billing configuration of the EIP which automatically associated to the Alb. This field is valid when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.eip.Addressandvolcengine.eip.Associateto achieve public network access function. - Global
Accelerator AlbGlobal Accelerator Args - The global accelerator configuration.
- Ipv6Eip
Billing AlbConfig Ipv6Eip Billing Config Args - The billing configuration of the Ipv6 EIP which automatically associated to the Alb. This field is required when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.vpc.Ipv6Gatewayandvolcengine.vpc.Ipv6AddressBandwidthto achieve ipv6 public network access function. - Load
Balancer stringEdition - The version of the ALB instance. Basic: Basic Edition. Standard: Standard Edition. Default is
Basic. - Load
Balancer stringName - The name of the Alb.
- Local
Addresses []string - The local addresses of the Alb.
- Modification
Protection stringReason - The reason for enabling instance modification protection. This parameter is valid when the modification_protection_status is
ConsoleProtection. - Modification
Protection stringStatus - Whether to enable the modification protection function of the Alb. Valid values:
NonProtection,ConsoleProtection. Default isNonProtection. NonProtection: Instance modification protection is not enabled. ConsoleProtection: Instance modification protection is enabled; you cannot modify the instance configuration through the ALB console, and can only modify the instance configuration by calling the API. - Project
Name string - The ProjectName of the Alb.
- Proxy
Protocol stringEnabled - ALB can support the Proxy Protocol and record the real IP of the client.
- Source
Load stringBalancer Id - The source ALB instance ID for cloning. If specified, the ALB instance will be cloned from this source.
- Status string
- The status of the Alb.
- Subnet
Ids []string - The id of the Subnet.
-
[]Alb
Tag Args - Tags.
- Type string
- The type of the Alb. Valid values:
public,private. - Vpc
Id string - The vpc id of the Alb.
- Waf
Instance stringId - The ID of the WAF instance to be associated with the Alb. This field is valid when the value of the
waf_protection_enabledison. - Waf
Protected stringDomain - The domain name of the WAF protected Alb. This field is valid when the value of the
waf_protection_enabledison. - Waf
Protection stringEnabled - Whether to enable the WAF protection function of the Alb. Valid values:
off,on. Default isoff. - Zone
Mappings []AlbZone Mapping Args - Configuration information of the Alb instance in different Availability Zones.
- address_
ip_ stringversion - The address ip version of the Alb. Valid values:
IPv4,DualStack. Default isipv4. - allocation_
ids list(string) - The ID of the public IP. This field is only valid when the type field changes from private to public.
- delete_
protection string - Whether to enable the delete protection function of the Alb. Valid values:
on,off. Default isoff. - description string
- The description of the Alb.
- dns_
name string - The DNS name.
- eip_
billing_ objectconfig - The billing configuration of the EIP which automatically associated to the Alb. This field is valid when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.eip.Addressandvolcengine.eip.Associateto achieve public network access function. - global_
accelerator object - The global accelerator configuration.
- ipv6_
eip_ objectbilling_ config - The billing configuration of the Ipv6 EIP which automatically associated to the Alb. This field is required when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.vpc.Ipv6Gatewayandvolcengine.vpc.Ipv6AddressBandwidthto achieve ipv6 public network access function. - load_
balancer_ stringedition - The version of the ALB instance. Basic: Basic Edition. Standard: Standard Edition. Default is
Basic. - load_
balancer_ stringname - The name of the Alb.
- local_
addresses list(string) - The local addresses of the Alb.
- modification_
protection_ stringreason - The reason for enabling instance modification protection. This parameter is valid when the modification_protection_status is
ConsoleProtection. - modification_
protection_ stringstatus - Whether to enable the modification protection function of the Alb. Valid values:
NonProtection,ConsoleProtection. Default isNonProtection. NonProtection: Instance modification protection is not enabled. ConsoleProtection: Instance modification protection is enabled; you cannot modify the instance configuration through the ALB console, and can only modify the instance configuration by calling the API. - project_
name string - The ProjectName of the Alb.
- proxy_
protocol_ stringenabled - ALB can support the Proxy Protocol and record the real IP of the client.
- source_
load_ stringbalancer_ id - The source ALB instance ID for cloning. If specified, the ALB instance will be cloned from this source.
- status string
- The status of the Alb.
- subnet_
ids list(string) - The id of the Subnet.
- list(object)
- Tags.
- type string
- The type of the Alb. Valid values:
public,private. - vpc_
id string - The vpc id of the Alb.
- waf_
instance_ stringid - The ID of the WAF instance to be associated with the Alb. This field is valid when the value of the
waf_protection_enabledison. - waf_
protected_ stringdomain - The domain name of the WAF protected Alb. This field is valid when the value of the
waf_protection_enabledison. - waf_
protection_ stringenabled - Whether to enable the WAF protection function of the Alb. Valid values:
off,on. Default isoff. - zone_
mappings list(object) - Configuration information of the Alb instance in different Availability Zones.
- address
Ip StringVersion - The address ip version of the Alb. Valid values:
IPv4,DualStack. Default isipv4. - allocation
Ids List<String> - The ID of the public IP. This field is only valid when the type field changes from private to public.
- delete
Protection String - Whether to enable the delete protection function of the Alb. Valid values:
on,off. Default isoff. - description String
- The description of the Alb.
- dns
Name String - The DNS name.
- eip
Billing AlbConfig Eip Billing Config - The billing configuration of the EIP which automatically associated to the Alb. This field is valid when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.eip.Addressandvolcengine.eip.Associateto achieve public network access function. - global
Accelerator AlbGlobal Accelerator - The global accelerator configuration.
- ipv6Eip
Billing AlbConfig Ipv6Eip Billing Config - The billing configuration of the Ipv6 EIP which automatically associated to the Alb. This field is required when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.vpc.Ipv6Gatewayandvolcengine.vpc.Ipv6AddressBandwidthto achieve ipv6 public network access function. - load
Balancer StringEdition - The version of the ALB instance. Basic: Basic Edition. Standard: Standard Edition. Default is
Basic. - load
Balancer StringName - The name of the Alb.
- local
Addresses List<String> - The local addresses of the Alb.
- modification
Protection StringReason - The reason for enabling instance modification protection. This parameter is valid when the modification_protection_status is
ConsoleProtection. - modification
Protection StringStatus - Whether to enable the modification protection function of the Alb. Valid values:
NonProtection,ConsoleProtection. Default isNonProtection. NonProtection: Instance modification protection is not enabled. ConsoleProtection: Instance modification protection is enabled; you cannot modify the instance configuration through the ALB console, and can only modify the instance configuration by calling the API. - project
Name String - The ProjectName of the Alb.
- proxy
Protocol StringEnabled - ALB can support the Proxy Protocol and record the real IP of the client.
- source
Load StringBalancer Id - The source ALB instance ID for cloning. If specified, the ALB instance will be cloned from this source.
- status String
- The status of the Alb.
- subnet
Ids List<String> - The id of the Subnet.
-
List<Alb
Tag> - Tags.
- type String
- The type of the Alb. Valid values:
public,private. - vpc
Id String - The vpc id of the Alb.
- waf
Instance StringId - The ID of the WAF instance to be associated with the Alb. This field is valid when the value of the
waf_protection_enabledison. - waf
Protected StringDomain - The domain name of the WAF protected Alb. This field is valid when the value of the
waf_protection_enabledison. - waf
Protection StringEnabled - Whether to enable the WAF protection function of the Alb. Valid values:
off,on. Default isoff. - zone
Mappings List<AlbZone Mapping> - Configuration information of the Alb instance in different Availability Zones.
- address
Ip stringVersion - The address ip version of the Alb. Valid values:
IPv4,DualStack. Default isipv4. - allocation
Ids string[] - The ID of the public IP. This field is only valid when the type field changes from private to public.
- delete
Protection string - Whether to enable the delete protection function of the Alb. Valid values:
on,off. Default isoff. - description string
- The description of the Alb.
- dns
Name string - The DNS name.
- eip
Billing AlbConfig Eip Billing Config - The billing configuration of the EIP which automatically associated to the Alb. This field is valid when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.eip.Addressandvolcengine.eip.Associateto achieve public network access function. - global
Accelerator AlbGlobal Accelerator - The global accelerator configuration.
- ipv6Eip
Billing AlbConfig Ipv6Eip Billing Config - The billing configuration of the Ipv6 EIP which automatically associated to the Alb. This field is required when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.vpc.Ipv6Gatewayandvolcengine.vpc.Ipv6AddressBandwidthto achieve ipv6 public network access function. - load
Balancer stringEdition - The version of the ALB instance. Basic: Basic Edition. Standard: Standard Edition. Default is
Basic. - load
Balancer stringName - The name of the Alb.
- local
Addresses string[] - The local addresses of the Alb.
- modification
Protection stringReason - The reason for enabling instance modification protection. This parameter is valid when the modification_protection_status is
ConsoleProtection. - modification
Protection stringStatus - Whether to enable the modification protection function of the Alb. Valid values:
NonProtection,ConsoleProtection. Default isNonProtection. NonProtection: Instance modification protection is not enabled. ConsoleProtection: Instance modification protection is enabled; you cannot modify the instance configuration through the ALB console, and can only modify the instance configuration by calling the API. - project
Name string - The ProjectName of the Alb.
- proxy
Protocol stringEnabled - ALB can support the Proxy Protocol and record the real IP of the client.
- source
Load stringBalancer Id - The source ALB instance ID for cloning. If specified, the ALB instance will be cloned from this source.
- status string
- The status of the Alb.
- subnet
Ids string[] - The id of the Subnet.
-
Alb
Tag[] - Tags.
- type string
- The type of the Alb. Valid values:
public,private. - vpc
Id string - The vpc id of the Alb.
- waf
Instance stringId - The ID of the WAF instance to be associated with the Alb. This field is valid when the value of the
waf_protection_enabledison. - waf
Protected stringDomain - The domain name of the WAF protected Alb. This field is valid when the value of the
waf_protection_enabledison. - waf
Protection stringEnabled - Whether to enable the WAF protection function of the Alb. Valid values:
off,on. Default isoff. - zone
Mappings AlbZone Mapping[] - Configuration information of the Alb instance in different Availability Zones.
- address_
ip_ strversion - The address ip version of the Alb. Valid values:
IPv4,DualStack. Default isipv4. - allocation_
ids Sequence[str] - The ID of the public IP. This field is only valid when the type field changes from private to public.
- delete_
protection str - Whether to enable the delete protection function of the Alb. Valid values:
on,off. Default isoff. - description str
- The description of the Alb.
- dns_
name str - The DNS name.
- eip_
billing_ Albconfig Eip Billing Config Args - The billing configuration of the EIP which automatically associated to the Alb. This field is valid when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.eip.Addressandvolcengine.eip.Associateto achieve public network access function. - global_
accelerator AlbGlobal Accelerator Args - The global accelerator configuration.
- ipv6_
eip_ Albbilling_ config Ipv6Eip Billing Config Args - The billing configuration of the Ipv6 EIP which automatically associated to the Alb. This field is required when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.vpc.Ipv6Gatewayandvolcengine.vpc.Ipv6AddressBandwidthto achieve ipv6 public network access function. - load_
balancer_ stredition - The version of the ALB instance. Basic: Basic Edition. Standard: Standard Edition. Default is
Basic. - load_
balancer_ strname - The name of the Alb.
- local_
addresses Sequence[str] - The local addresses of the Alb.
- modification_
protection_ strreason - The reason for enabling instance modification protection. This parameter is valid when the modification_protection_status is
ConsoleProtection. - modification_
protection_ strstatus - Whether to enable the modification protection function of the Alb. Valid values:
NonProtection,ConsoleProtection. Default isNonProtection. NonProtection: Instance modification protection is not enabled. ConsoleProtection: Instance modification protection is enabled; you cannot modify the instance configuration through the ALB console, and can only modify the instance configuration by calling the API. - project_
name str - The ProjectName of the Alb.
- proxy_
protocol_ strenabled - ALB can support the Proxy Protocol and record the real IP of the client.
- source_
load_ strbalancer_ id - The source ALB instance ID for cloning. If specified, the ALB instance will be cloned from this source.
- status str
- The status of the Alb.
- subnet_
ids Sequence[str] - The id of the Subnet.
-
Sequence[Alb
Tag Args] - Tags.
- type str
- The type of the Alb. Valid values:
public,private. - vpc_
id str - The vpc id of the Alb.
- waf_
instance_ strid - The ID of the WAF instance to be associated with the Alb. This field is valid when the value of the
waf_protection_enabledison. - waf_
protected_ strdomain - The domain name of the WAF protected Alb. This field is valid when the value of the
waf_protection_enabledison. - waf_
protection_ strenabled - Whether to enable the WAF protection function of the Alb. Valid values:
off,on. Default isoff. - zone_
mappings Sequence[AlbZone Mapping Args] - Configuration information of the Alb instance in different Availability Zones.
- address
Ip StringVersion - The address ip version of the Alb. Valid values:
IPv4,DualStack. Default isipv4. - allocation
Ids List<String> - The ID of the public IP. This field is only valid when the type field changes from private to public.
- delete
Protection String - Whether to enable the delete protection function of the Alb. Valid values:
on,off. Default isoff. - description String
- The description of the Alb.
- dns
Name String - The DNS name.
- eip
Billing Property MapConfig - The billing configuration of the EIP which automatically associated to the Alb. This field is valid when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.eip.Addressandvolcengine.eip.Associateto achieve public network access function. - global
Accelerator Property Map - The global accelerator configuration.
- ipv6Eip
Billing Property MapConfig - The billing configuration of the Ipv6 EIP which automatically associated to the Alb. This field is required when the type of the Alb is
public.When the type of the Alb isprivate, suggest using a combination of resourcevolcengine.vpc.Ipv6Gatewayandvolcengine.vpc.Ipv6AddressBandwidthto achieve ipv6 public network access function. - load
Balancer StringEdition - The version of the ALB instance. Basic: Basic Edition. Standard: Standard Edition. Default is
Basic. - load
Balancer StringName - The name of the Alb.
- local
Addresses List<String> - The local addresses of the Alb.
- modification
Protection StringReason - The reason for enabling instance modification protection. This parameter is valid when the modification_protection_status is
ConsoleProtection. - modification
Protection StringStatus - Whether to enable the modification protection function of the Alb. Valid values:
NonProtection,ConsoleProtection. Default isNonProtection. NonProtection: Instance modification protection is not enabled. ConsoleProtection: Instance modification protection is enabled; you cannot modify the instance configuration through the ALB console, and can only modify the instance configuration by calling the API. - project
Name String - The ProjectName of the Alb.
- proxy
Protocol StringEnabled - ALB can support the Proxy Protocol and record the real IP of the client.
- source
Load StringBalancer Id - The source ALB instance ID for cloning. If specified, the ALB instance will be cloned from this source.
- status String
- The status of the Alb.
- subnet
Ids List<String> - The id of the Subnet.
- List<Property Map>
- Tags.
- type String
- The type of the Alb. Valid values:
public,private. - vpc
Id String - The vpc id of the Alb.
- waf
Instance StringId - The ID of the WAF instance to be associated with the Alb. This field is valid when the value of the
waf_protection_enabledison. - waf
Protected StringDomain - The domain name of the WAF protected Alb. This field is valid when the value of the
waf_protection_enabledison. - waf
Protection StringEnabled - Whether to enable the WAF protection function of the Alb. Valid values:
off,on. Default isoff. - zone
Mappings List<Property Map> - Configuration information of the Alb instance in different Availability Zones.
Supporting Types
AlbEipBillingConfig, AlbEipBillingConfigArgs
- Bandwidth int
- The peek bandwidth of the EIP which automatically assigned to the Alb. Unit: Mbps.
- Eip
Billing stringType - The billing type of the EIP which automatically assigned to the Alb. Valid values:
PostPaidByBandwidth,PostPaidByTraffic. - Isp string
- The ISP of the EIP which automatically associated to the Alb, the value can be
BGP.
- Bandwidth int
- The peek bandwidth of the EIP which automatically assigned to the Alb. Unit: Mbps.
- Eip
Billing stringType - The billing type of the EIP which automatically assigned to the Alb. Valid values:
PostPaidByBandwidth,PostPaidByTraffic. - Isp string
- The ISP of the EIP which automatically associated to the Alb, the value can be
BGP.
- bandwidth number
- The peek bandwidth of the EIP which automatically assigned to the Alb. Unit: Mbps.
- eip_
billing_ stringtype - The billing type of the EIP which automatically assigned to the Alb. Valid values:
PostPaidByBandwidth,PostPaidByTraffic. - isp string
- The ISP of the EIP which automatically associated to the Alb, the value can be
BGP.
- bandwidth Integer
- The peek bandwidth of the EIP which automatically assigned to the Alb. Unit: Mbps.
- eip
Billing StringType - The billing type of the EIP which automatically assigned to the Alb. Valid values:
PostPaidByBandwidth,PostPaidByTraffic. - isp String
- The ISP of the EIP which automatically associated to the Alb, the value can be
BGP.
- bandwidth number
- The peek bandwidth of the EIP which automatically assigned to the Alb. Unit: Mbps.
- eip
Billing stringType - The billing type of the EIP which automatically assigned to the Alb. Valid values:
PostPaidByBandwidth,PostPaidByTraffic. - isp string
- The ISP of the EIP which automatically associated to the Alb, the value can be
BGP.
- bandwidth int
- The peek bandwidth of the EIP which automatically assigned to the Alb. Unit: Mbps.
- eip_
billing_ strtype - The billing type of the EIP which automatically assigned to the Alb. Valid values:
PostPaidByBandwidth,PostPaidByTraffic. - isp str
- The ISP of the EIP which automatically associated to the Alb, the value can be
BGP.
- bandwidth Number
- The peek bandwidth of the EIP which automatically assigned to the Alb. Unit: Mbps.
- eip
Billing StringType - The billing type of the EIP which automatically assigned to the Alb. Valid values:
PostPaidByBandwidth,PostPaidByTraffic. - isp String
- The ISP of the EIP which automatically associated to the Alb, the value can be
BGP.
AlbGlobalAccelerator, AlbGlobalAcceleratorArgs
- Accelerator
Id string - The global accelerator id.
- Accelerator
Listener stringId - The global accelerator listener id.
- Endpoint
Group stringId - The global accelerator endpoint group id.
- Weight int
- The traffic distribution weight of the endpoint. The value range is: 1 - 100.
- Accelerator
Id string - The global accelerator id.
- Accelerator
Listener stringId - The global accelerator listener id.
- Endpoint
Group stringId - The global accelerator endpoint group id.
- Weight int
- The traffic distribution weight of the endpoint. The value range is: 1 - 100.
- accelerator_
id string - The global accelerator id.
- accelerator_
listener_ stringid - The global accelerator listener id.
- endpoint_
group_ stringid - The global accelerator endpoint group id.
- weight number
- The traffic distribution weight of the endpoint. The value range is: 1 - 100.
- accelerator
Id String - The global accelerator id.
- accelerator
Listener StringId - The global accelerator listener id.
- endpoint
Group StringId - The global accelerator endpoint group id.
- weight Integer
- The traffic distribution weight of the endpoint. The value range is: 1 - 100.
- accelerator
Id string - The global accelerator id.
- accelerator
Listener stringId - The global accelerator listener id.
- endpoint
Group stringId - The global accelerator endpoint group id.
- weight number
- The traffic distribution weight of the endpoint. The value range is: 1 - 100.
- accelerator_
id str - The global accelerator id.
- accelerator_
listener_ strid - The global accelerator listener id.
- endpoint_
group_ strid - The global accelerator endpoint group id.
- weight int
- The traffic distribution weight of the endpoint. The value range is: 1 - 100.
- accelerator
Id String - The global accelerator id.
- accelerator
Listener StringId - The global accelerator listener id.
- endpoint
Group StringId - The global accelerator endpoint group id.
- weight Number
- The traffic distribution weight of the endpoint. The value range is: 1 - 100.
AlbIpv6EipBillingConfig, AlbIpv6EipBillingConfigArgs
- Bandwidth int
- The peek bandwidth of the Ipv6 EIP which automatically assigned to the Alb. Unit: Mbps.
- Billing
Type string - The billing type of the Tpv6 EIP which automatically assigned to the Alb. Valid values:
PostPaidByBandwidth,PostPaidByTraffic. - Isp string
- The ISP of the Ipv6 EIP which automatically associated to the Alb, the value can be
BGP.
- Bandwidth int
- The peek bandwidth of the Ipv6 EIP which automatically assigned to the Alb. Unit: Mbps.
- Billing
Type string - The billing type of the Tpv6 EIP which automatically assigned to the Alb. Valid values:
PostPaidByBandwidth,PostPaidByTraffic. - Isp string
- The ISP of the Ipv6 EIP which automatically associated to the Alb, the value can be
BGP.
- bandwidth number
- The peek bandwidth of the Ipv6 EIP which automatically assigned to the Alb. Unit: Mbps.
- billing_
type string - The billing type of the Tpv6 EIP which automatically assigned to the Alb. Valid values:
PostPaidByBandwidth,PostPaidByTraffic. - isp string
- The ISP of the Ipv6 EIP which automatically associated to the Alb, the value can be
BGP.
- bandwidth Integer
- The peek bandwidth of the Ipv6 EIP which automatically assigned to the Alb. Unit: Mbps.
- billing
Type String - The billing type of the Tpv6 EIP which automatically assigned to the Alb. Valid values:
PostPaidByBandwidth,PostPaidByTraffic. - isp String
- The ISP of the Ipv6 EIP which automatically associated to the Alb, the value can be
BGP.
- bandwidth number
- The peek bandwidth of the Ipv6 EIP which automatically assigned to the Alb. Unit: Mbps.
- billing
Type string - The billing type of the Tpv6 EIP which automatically assigned to the Alb. Valid values:
PostPaidByBandwidth,PostPaidByTraffic. - isp string
- The ISP of the Ipv6 EIP which automatically associated to the Alb, the value can be
BGP.
- bandwidth int
- The peek bandwidth of the Ipv6 EIP which automatically assigned to the Alb. Unit: Mbps.
- billing_
type str - The billing type of the Tpv6 EIP which automatically assigned to the Alb. Valid values:
PostPaidByBandwidth,PostPaidByTraffic. - isp str
- The ISP of the Ipv6 EIP which automatically associated to the Alb, the value can be
BGP.
- bandwidth Number
- The peek bandwidth of the Ipv6 EIP which automatically assigned to the Alb. Unit: Mbps.
- billing
Type String - The billing type of the Tpv6 EIP which automatically assigned to the Alb. Valid values:
PostPaidByBandwidth,PostPaidByTraffic. - isp String
- The ISP of the Ipv6 EIP which automatically associated to the Alb, the value can be
BGP.
AlbTag, AlbTagArgs
AlbZoneMapping, AlbZoneMappingArgs
- Load
Balancer List<AlbAddresses Zone Mapping Load Balancer Address> - The IP address information of the Alb in this availability zone.
- Subnet
Id string - The subnet id of the Alb in this availability zone.
- Zone
Id string - The availability zone id of the Alb.
- Load
Balancer []AlbAddresses Zone Mapping Load Balancer Address - The IP address information of the Alb in this availability zone.
- Subnet
Id string - The subnet id of the Alb in this availability zone.
- Zone
Id string - The availability zone id of the Alb.
- load_
balancer_ list(object)addresses - The IP address information of the Alb in this availability zone.
- subnet_
id string - The subnet id of the Alb in this availability zone.
- zone_
id string - The availability zone id of the Alb.
- load
Balancer List<AlbAddresses Zone Mapping Load Balancer Address> - The IP address information of the Alb in this availability zone.
- subnet
Id String - The subnet id of the Alb in this availability zone.
- zone
Id String - The availability zone id of the Alb.
- load
Balancer AlbAddresses Zone Mapping Load Balancer Address[] - The IP address information of the Alb in this availability zone.
- subnet
Id string - The subnet id of the Alb in this availability zone.
- zone
Id string - The availability zone id of the Alb.
- load_
balancer_ Sequence[Albaddresses Zone Mapping Load Balancer Address] - The IP address information of the Alb in this availability zone.
- subnet_
id str - The subnet id of the Alb in this availability zone.
- zone_
id str - The availability zone id of the Alb.
- load
Balancer List<Property Map>Addresses - The IP address information of the Alb in this availability zone.
- subnet
Id String - The subnet id of the Alb in this availability zone.
- zone
Id String - The availability zone id of the Alb.
AlbZoneMappingLoadBalancerAddress, AlbZoneMappingLoadBalancerAddressArgs
- Eip
Address string - The Eip address of the Alb in this availability zone.
- Eip
Id string - The Eip id of alb instance in this availability zone.
- Eni
Address string - The Eni address of the Alb in this availability zone.
- Eni
Id string - The Eni id of the Alb in this availability zone.
- Eni
Ipv6Address string - The Eni Ipv6 address of the Alb in this availability zone.
- Ipv6Eip
Id string - The Ipv6 Eip id of alb instance in this availability zone.
- Eip
Address string - The Eip address of the Alb in this availability zone.
- Eip
Id string - The Eip id of alb instance in this availability zone.
- Eni
Address string - The Eni address of the Alb in this availability zone.
- Eni
Id string - The Eni id of the Alb in this availability zone.
- Eni
Ipv6Address string - The Eni Ipv6 address of the Alb in this availability zone.
- Ipv6Eip
Id string - The Ipv6 Eip id of alb instance in this availability zone.
- eip_
address string - The Eip address of the Alb in this availability zone.
- eip_
id string - The Eip id of alb instance in this availability zone.
- eni_
address string - The Eni address of the Alb in this availability zone.
- eni_
id string - The Eni id of the Alb in this availability zone.
- eni_
ipv6_ stringaddress - The Eni Ipv6 address of the Alb in this availability zone.
- ipv6_
eip_ stringid - The Ipv6 Eip id of alb instance in this availability zone.
- eip
Address String - The Eip address of the Alb in this availability zone.
- eip
Id String - The Eip id of alb instance in this availability zone.
- eni
Address String - The Eni address of the Alb in this availability zone.
- eni
Id String - The Eni id of the Alb in this availability zone.
- eni
Ipv6Address String - The Eni Ipv6 address of the Alb in this availability zone.
- ipv6Eip
Id String - The Ipv6 Eip id of alb instance in this availability zone.
- eip
Address string - The Eip address of the Alb in this availability zone.
- eip
Id string - The Eip id of alb instance in this availability zone.
- eni
Address string - The Eni address of the Alb in this availability zone.
- eni
Id string - The Eni id of the Alb in this availability zone.
- eni
Ipv6Address string - The Eni Ipv6 address of the Alb in this availability zone.
- ipv6Eip
Id string - The Ipv6 Eip id of alb instance in this availability zone.
- eip_
address str - The Eip address of the Alb in this availability zone.
- eip_
id str - The Eip id of alb instance in this availability zone.
- eni_
address str - The Eni address of the Alb in this availability zone.
- eni_
id str - The Eni id of the Alb in this availability zone.
- eni_
ipv6_ straddress - The Eni Ipv6 address of the Alb in this availability zone.
- ipv6_
eip_ strid - The Ipv6 Eip id of alb instance in this availability zone.
- eip
Address String - The Eip address of the Alb in this availability zone.
- eip
Id String - The Eip id of alb instance in this availability zone.
- eni
Address String - The Eni address of the Alb in this availability zone.
- eni
Id String - The Eni id of the Alb in this availability zone.
- eni
Ipv6Address String - The Eni Ipv6 address of the Alb in this availability zone.
- ipv6Eip
Id String - The Ipv6 Eip id of alb instance in this availability zone.
Import
Alb can be imported using the id, e.g.
$ pulumi import volcengine:alb/alb:Alb default resource_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
published on Friday, Mar 13, 2026 by Volcengine