alicloud.alb.LoadBalancer
Explore with Pulumi AI
Provides a ALB Load Balancer resource.
For information about ALB Load Balancer and how to use it, see What is Load Balancer.
NOTE: Available since v1.132.0.
Create LoadBalancer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LoadBalancer(name: string, args: LoadBalancerArgs, opts?: CustomResourceOptions);
@overload
def LoadBalancer(resource_name: str,
args: LoadBalancerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LoadBalancer(resource_name: str,
opts: Optional[ResourceOptions] = None,
load_balancer_billing_config: Optional[LoadBalancerLoadBalancerBillingConfigArgs] = None,
zone_mappings: Optional[Sequence[LoadBalancerZoneMappingArgs]] = None,
vpc_id: Optional[str] = None,
address_type: Optional[str] = None,
load_balancer_edition: Optional[str] = None,
bandwidth_package_id: Optional[str] = None,
dry_run: Optional[bool] = None,
ipv6_address_type: Optional[str] = None,
deletion_protection_enabled: Optional[bool] = None,
access_log_config: Optional[LoadBalancerAccessLogConfigArgs] = None,
load_balancer_name: Optional[str] = None,
modification_protection_config: Optional[LoadBalancerModificationProtectionConfigArgs] = None,
resource_group_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
address_ip_version: Optional[str] = None,
address_allocated_mode: Optional[str] = None)
func NewLoadBalancer(ctx *Context, name string, args LoadBalancerArgs, opts ...ResourceOption) (*LoadBalancer, error)
public LoadBalancer(string name, LoadBalancerArgs args, CustomResourceOptions? opts = null)
public LoadBalancer(String name, LoadBalancerArgs args)
public LoadBalancer(String name, LoadBalancerArgs args, CustomResourceOptions options)
type: alicloud:alb:LoadBalancer
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 LoadBalancerArgs
- 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 LoadBalancerArgs
- 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 LoadBalancerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LoadBalancerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LoadBalancerArgs
- 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 loadBalancerResource = new AliCloud.Alb.LoadBalancer("loadBalancerResource", new()
{
LoadBalancerBillingConfig = new AliCloud.Alb.Inputs.LoadBalancerLoadBalancerBillingConfigArgs
{
PayType = "string",
},
ZoneMappings = new[]
{
new AliCloud.Alb.Inputs.LoadBalancerZoneMappingArgs
{
VswitchId = "string",
ZoneId = "string",
LoadBalancerAddresses = new[]
{
new AliCloud.Alb.Inputs.LoadBalancerZoneMappingLoadBalancerAddressArgs
{
Address = "string",
AllocationId = "string",
EipType = "string",
Ipv6Address = "string",
},
},
},
},
VpcId = "string",
AddressType = "string",
LoadBalancerEdition = "string",
BandwidthPackageId = "string",
DryRun = false,
Ipv6AddressType = "string",
DeletionProtectionEnabled = false,
AccessLogConfig = new AliCloud.Alb.Inputs.LoadBalancerAccessLogConfigArgs
{
LogProject = "string",
LogStore = "string",
},
LoadBalancerName = "string",
ModificationProtectionConfig = new AliCloud.Alb.Inputs.LoadBalancerModificationProtectionConfigArgs
{
Reason = "string",
Status = "string",
},
ResourceGroupId = "string",
Tags =
{
{ "string", "string" },
},
AddressIpVersion = "string",
AddressAllocatedMode = "string",
});
example, err := alb.NewLoadBalancer(ctx, "loadBalancerResource", &alb.LoadBalancerArgs{
LoadBalancerBillingConfig: &alb.LoadBalancerLoadBalancerBillingConfigArgs{
PayType: pulumi.String("string"),
},
ZoneMappings: alb.LoadBalancerZoneMappingArray{
&alb.LoadBalancerZoneMappingArgs{
VswitchId: pulumi.String("string"),
ZoneId: pulumi.String("string"),
LoadBalancerAddresses: alb.LoadBalancerZoneMappingLoadBalancerAddressArray{
&alb.LoadBalancerZoneMappingLoadBalancerAddressArgs{
Address: pulumi.String("string"),
AllocationId: pulumi.String("string"),
EipType: pulumi.String("string"),
Ipv6Address: pulumi.String("string"),
},
},
},
},
VpcId: pulumi.String("string"),
AddressType: pulumi.String("string"),
LoadBalancerEdition: pulumi.String("string"),
BandwidthPackageId: pulumi.String("string"),
DryRun: pulumi.Bool(false),
Ipv6AddressType: pulumi.String("string"),
DeletionProtectionEnabled: pulumi.Bool(false),
AccessLogConfig: &alb.LoadBalancerAccessLogConfigArgs{
LogProject: pulumi.String("string"),
LogStore: pulumi.String("string"),
},
LoadBalancerName: pulumi.String("string"),
ModificationProtectionConfig: &alb.LoadBalancerModificationProtectionConfigArgs{
Reason: pulumi.String("string"),
Status: pulumi.String("string"),
},
ResourceGroupId: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
AddressIpVersion: pulumi.String("string"),
AddressAllocatedMode: pulumi.String("string"),
})
var loadBalancerResource = new LoadBalancer("loadBalancerResource", LoadBalancerArgs.builder()
.loadBalancerBillingConfig(LoadBalancerLoadBalancerBillingConfigArgs.builder()
.payType("string")
.build())
.zoneMappings(LoadBalancerZoneMappingArgs.builder()
.vswitchId("string")
.zoneId("string")
.loadBalancerAddresses(LoadBalancerZoneMappingLoadBalancerAddressArgs.builder()
.address("string")
.allocationId("string")
.eipType("string")
.ipv6Address("string")
.build())
.build())
.vpcId("string")
.addressType("string")
.loadBalancerEdition("string")
.bandwidthPackageId("string")
.dryRun(false)
.ipv6AddressType("string")
.deletionProtectionEnabled(false)
.accessLogConfig(LoadBalancerAccessLogConfigArgs.builder()
.logProject("string")
.logStore("string")
.build())
.loadBalancerName("string")
.modificationProtectionConfig(LoadBalancerModificationProtectionConfigArgs.builder()
.reason("string")
.status("string")
.build())
.resourceGroupId("string")
.tags(Map.of("string", "string"))
.addressIpVersion("string")
.addressAllocatedMode("string")
.build());
load_balancer_resource = alicloud.alb.LoadBalancer("loadBalancerResource",
load_balancer_billing_config={
"pay_type": "string",
},
zone_mappings=[{
"vswitch_id": "string",
"zone_id": "string",
"load_balancer_addresses": [{
"address": "string",
"allocation_id": "string",
"eip_type": "string",
"ipv6_address": "string",
}],
}],
vpc_id="string",
address_type="string",
load_balancer_edition="string",
bandwidth_package_id="string",
dry_run=False,
ipv6_address_type="string",
deletion_protection_enabled=False,
access_log_config={
"log_project": "string",
"log_store": "string",
},
load_balancer_name="string",
modification_protection_config={
"reason": "string",
"status": "string",
},
resource_group_id="string",
tags={
"string": "string",
},
address_ip_version="string",
address_allocated_mode="string")
const loadBalancerResource = new alicloud.alb.LoadBalancer("loadBalancerResource", {
loadBalancerBillingConfig: {
payType: "string",
},
zoneMappings: [{
vswitchId: "string",
zoneId: "string",
loadBalancerAddresses: [{
address: "string",
allocationId: "string",
eipType: "string",
ipv6Address: "string",
}],
}],
vpcId: "string",
addressType: "string",
loadBalancerEdition: "string",
bandwidthPackageId: "string",
dryRun: false,
ipv6AddressType: "string",
deletionProtectionEnabled: false,
accessLogConfig: {
logProject: "string",
logStore: "string",
},
loadBalancerName: "string",
modificationProtectionConfig: {
reason: "string",
status: "string",
},
resourceGroupId: "string",
tags: {
string: "string",
},
addressIpVersion: "string",
addressAllocatedMode: "string",
});
type: alicloud:alb:LoadBalancer
properties:
accessLogConfig:
logProject: string
logStore: string
addressAllocatedMode: string
addressIpVersion: string
addressType: string
bandwidthPackageId: string
deletionProtectionEnabled: false
dryRun: false
ipv6AddressType: string
loadBalancerBillingConfig:
payType: string
loadBalancerEdition: string
loadBalancerName: string
modificationProtectionConfig:
reason: string
status: string
resourceGroupId: string
tags:
string: string
vpcId: string
zoneMappings:
- loadBalancerAddresses:
- address: string
allocationId: string
eipType: string
ipv6Address: string
vswitchId: string
zoneId: string
LoadBalancer 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 LoadBalancer resource accepts the following input properties:
- Address
Type string - The type of the address of the ALB instance. Valid values:
Internet
,Intranet
. - Load
Balancer Pulumi.Billing Config Ali Cloud. Alb. Inputs. Load Balancer Load Balancer Billing Config - The billing method of the ALB instance. See
load_balancer_billing_config
below. - Load
Balancer stringEdition - The edition of the ALB instance. The features and billing rules vary based on the edition of the ALB instance. Valid values:
Basic
,Standard
,StandardWithWaf
. - Vpc
Id string - The ID of the VPC.
- Zone
Mappings List<Pulumi.Ali Cloud. Alb. Inputs. Load Balancer Zone Mapping> - The list of zones and vSwitch mappings. You must specify at least two zones. See
zone_mappings
below. - Access
Log Pulumi.Config Ali Cloud. Alb. Inputs. Load Balancer Access Log Config - The configuration of the access log. See
access_log_config
below. - Address
Allocated stringMode - The mode in which IP addresses are allocated. Valid values:
Fixed
,Dynamic
. - Address
Ip stringVersion - The protocol version. Valid values:
IPv4
,DualStack
. - Bandwidth
Package stringId - The ID of the Internet Shared Bandwidth instance that is associated with the Internet-facing ALB instance.
- Deletion
Protection boolEnabled - Specifies whether to enable deletion protection. Default value:
false
. Valid values: - Dry
Run bool - Specifies whether to perform a dry run. Default value:
false
. Valid values:true
,false
. - Ipv6Address
Type string - The address type of the Ipv6 address. Valid values:
Internet
,Intranet
. - Load
Balancer stringName - The name of the ALB instance.
- Modification
Protection Pulumi.Config Ali Cloud. Alb. Inputs. Load Balancer Modification Protection Config - The configuration of the read-only mode. See
modification_protection_config
below. - Resource
Group stringId - The ID of the resource group.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Address
Type string - The type of the address of the ALB instance. Valid values:
Internet
,Intranet
. - Load
Balancer LoadBilling Config Balancer Load Balancer Billing Config Args - The billing method of the ALB instance. See
load_balancer_billing_config
below. - Load
Balancer stringEdition - The edition of the ALB instance. The features and billing rules vary based on the edition of the ALB instance. Valid values:
Basic
,Standard
,StandardWithWaf
. - Vpc
Id string - The ID of the VPC.
- Zone
Mappings []LoadBalancer Zone Mapping Args - The list of zones and vSwitch mappings. You must specify at least two zones. See
zone_mappings
below. - Access
Log LoadConfig Balancer Access Log Config Args - The configuration of the access log. See
access_log_config
below. - Address
Allocated stringMode - The mode in which IP addresses are allocated. Valid values:
Fixed
,Dynamic
. - Address
Ip stringVersion - The protocol version. Valid values:
IPv4
,DualStack
. - Bandwidth
Package stringId - The ID of the Internet Shared Bandwidth instance that is associated with the Internet-facing ALB instance.
- Deletion
Protection boolEnabled - Specifies whether to enable deletion protection. Default value:
false
. Valid values: - Dry
Run bool - Specifies whether to perform a dry run. Default value:
false
. Valid values:true
,false
. - Ipv6Address
Type string - The address type of the Ipv6 address. Valid values:
Internet
,Intranet
. - Load
Balancer stringName - The name of the ALB instance.
- Modification
Protection LoadConfig Balancer Modification Protection Config Args - The configuration of the read-only mode. See
modification_protection_config
below. - Resource
Group stringId - The ID of the resource group.
- map[string]string
- A mapping of tags to assign to the resource.
- address
Type String - The type of the address of the ALB instance. Valid values:
Internet
,Intranet
. - load
Balancer LoadBilling Config Balancer Load Balancer Billing Config - The billing method of the ALB instance. See
load_balancer_billing_config
below. - load
Balancer StringEdition - The edition of the ALB instance. The features and billing rules vary based on the edition of the ALB instance. Valid values:
Basic
,Standard
,StandardWithWaf
. - vpc
Id String - The ID of the VPC.
- zone
Mappings List<LoadBalancer Zone Mapping> - The list of zones and vSwitch mappings. You must specify at least two zones. See
zone_mappings
below. - access
Log LoadConfig Balancer Access Log Config - The configuration of the access log. See
access_log_config
below. - address
Allocated StringMode - The mode in which IP addresses are allocated. Valid values:
Fixed
,Dynamic
. - address
Ip StringVersion - The protocol version. Valid values:
IPv4
,DualStack
. - bandwidth
Package StringId - The ID of the Internet Shared Bandwidth instance that is associated with the Internet-facing ALB instance.
- deletion
Protection BooleanEnabled - Specifies whether to enable deletion protection. Default value:
false
. Valid values: - dry
Run Boolean - Specifies whether to perform a dry run. Default value:
false
. Valid values:true
,false
. - ipv6Address
Type String - The address type of the Ipv6 address. Valid values:
Internet
,Intranet
. - load
Balancer StringName - The name of the ALB instance.
- modification
Protection LoadConfig Balancer Modification Protection Config - The configuration of the read-only mode. See
modification_protection_config
below. - resource
Group StringId - The ID of the resource group.
- Map<String,String>
- A mapping of tags to assign to the resource.
- address
Type string - The type of the address of the ALB instance. Valid values:
Internet
,Intranet
. - load
Balancer LoadBilling Config Balancer Load Balancer Billing Config - The billing method of the ALB instance. See
load_balancer_billing_config
below. - load
Balancer stringEdition - The edition of the ALB instance. The features and billing rules vary based on the edition of the ALB instance. Valid values:
Basic
,Standard
,StandardWithWaf
. - vpc
Id string - The ID of the VPC.
- zone
Mappings LoadBalancer Zone Mapping[] - The list of zones and vSwitch mappings. You must specify at least two zones. See
zone_mappings
below. - access
Log LoadConfig Balancer Access Log Config - The configuration of the access log. See
access_log_config
below. - address
Allocated stringMode - The mode in which IP addresses are allocated. Valid values:
Fixed
,Dynamic
. - address
Ip stringVersion - The protocol version. Valid values:
IPv4
,DualStack
. - bandwidth
Package stringId - The ID of the Internet Shared Bandwidth instance that is associated with the Internet-facing ALB instance.
- deletion
Protection booleanEnabled - Specifies whether to enable deletion protection. Default value:
false
. Valid values: - dry
Run boolean - Specifies whether to perform a dry run. Default value:
false
. Valid values:true
,false
. - ipv6Address
Type string - The address type of the Ipv6 address. Valid values:
Internet
,Intranet
. - load
Balancer stringName - The name of the ALB instance.
- modification
Protection LoadConfig Balancer Modification Protection Config - The configuration of the read-only mode. See
modification_protection_config
below. - resource
Group stringId - The ID of the resource group.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- address_
type str - The type of the address of the ALB instance. Valid values:
Internet
,Intranet
. - load_
balancer_ Loadbilling_ config Balancer Load Balancer Billing Config Args - The billing method of the ALB instance. See
load_balancer_billing_config
below. - load_
balancer_ stredition - The edition of the ALB instance. The features and billing rules vary based on the edition of the ALB instance. Valid values:
Basic
,Standard
,StandardWithWaf
. - vpc_
id str - The ID of the VPC.
- zone_
mappings Sequence[LoadBalancer Zone Mapping Args] - The list of zones and vSwitch mappings. You must specify at least two zones. See
zone_mappings
below. - access_
log_ Loadconfig Balancer Access Log Config Args - The configuration of the access log. See
access_log_config
below. - address_
allocated_ strmode - The mode in which IP addresses are allocated. Valid values:
Fixed
,Dynamic
. - address_
ip_ strversion - The protocol version. Valid values:
IPv4
,DualStack
. - bandwidth_
package_ strid - The ID of the Internet Shared Bandwidth instance that is associated with the Internet-facing ALB instance.
- deletion_
protection_ boolenabled - Specifies whether to enable deletion protection. Default value:
false
. Valid values: - dry_
run bool - Specifies whether to perform a dry run. Default value:
false
. Valid values:true
,false
. - ipv6_
address_ strtype - The address type of the Ipv6 address. Valid values:
Internet
,Intranet
. - load_
balancer_ strname - The name of the ALB instance.
- modification_
protection_ Loadconfig Balancer Modification Protection Config Args - The configuration of the read-only mode. See
modification_protection_config
below. - resource_
group_ strid - The ID of the resource group.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- address
Type String - The type of the address of the ALB instance. Valid values:
Internet
,Intranet
. - load
Balancer Property MapBilling Config - The billing method of the ALB instance. See
load_balancer_billing_config
below. - load
Balancer StringEdition - The edition of the ALB instance. The features and billing rules vary based on the edition of the ALB instance. Valid values:
Basic
,Standard
,StandardWithWaf
. - vpc
Id String - The ID of the VPC.
- zone
Mappings List<Property Map> - The list of zones and vSwitch mappings. You must specify at least two zones. See
zone_mappings
below. - access
Log Property MapConfig - The configuration of the access log. See
access_log_config
below. - address
Allocated StringMode - The mode in which IP addresses are allocated. Valid values:
Fixed
,Dynamic
. - address
Ip StringVersion - The protocol version. Valid values:
IPv4
,DualStack
. - bandwidth
Package StringId - The ID of the Internet Shared Bandwidth instance that is associated with the Internet-facing ALB instance.
- deletion
Protection BooleanEnabled - Specifies whether to enable deletion protection. Default value:
false
. Valid values: - dry
Run Boolean - Specifies whether to perform a dry run. Default value:
false
. Valid values:true
,false
. - ipv6Address
Type String - The address type of the Ipv6 address. Valid values:
Internet
,Intranet
. - load
Balancer StringName - The name of the ALB instance.
- modification
Protection Property MapConfig - The configuration of the read-only mode. See
modification_protection_config
below. - resource
Group StringId - The ID of the resource group.
- Map<String>
- A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the LoadBalancer resource produces the following output properties:
- Create
Time string - The time when the resource was created.
- Dns
Name string - (Available since v1.158.0) The domain name of the ALB instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The status of the Load Balancer.
- Create
Time string - The time when the resource was created.
- Dns
Name string - (Available since v1.158.0) The domain name of the ALB instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The status of the Load Balancer.
- create
Time String - The time when the resource was created.
- dns
Name String - (Available since v1.158.0) The domain name of the ALB instance.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The status of the Load Balancer.
- create
Time string - The time when the resource was created.
- dns
Name string - (Available since v1.158.0) The domain name of the ALB instance.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- The status of the Load Balancer.
- create_
time str - The time when the resource was created.
- dns_
name str - (Available since v1.158.0) The domain name of the ALB instance.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- The status of the Load Balancer.
- create
Time String - The time when the resource was created.
- dns
Name String - (Available since v1.158.0) The domain name of the ALB instance.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The status of the Load Balancer.
Look up Existing LoadBalancer Resource
Get an existing LoadBalancer 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?: LoadBalancerState, opts?: CustomResourceOptions): LoadBalancer
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_log_config: Optional[LoadBalancerAccessLogConfigArgs] = None,
address_allocated_mode: Optional[str] = None,
address_ip_version: Optional[str] = None,
address_type: Optional[str] = None,
bandwidth_package_id: Optional[str] = None,
create_time: Optional[str] = None,
deletion_protection_enabled: Optional[bool] = None,
dns_name: Optional[str] = None,
dry_run: Optional[bool] = None,
ipv6_address_type: Optional[str] = None,
load_balancer_billing_config: Optional[LoadBalancerLoadBalancerBillingConfigArgs] = None,
load_balancer_edition: Optional[str] = None,
load_balancer_name: Optional[str] = None,
modification_protection_config: Optional[LoadBalancerModificationProtectionConfigArgs] = None,
resource_group_id: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vpc_id: Optional[str] = None,
zone_mappings: Optional[Sequence[LoadBalancerZoneMappingArgs]] = None) -> LoadBalancer
func GetLoadBalancer(ctx *Context, name string, id IDInput, state *LoadBalancerState, opts ...ResourceOption) (*LoadBalancer, error)
public static LoadBalancer Get(string name, Input<string> id, LoadBalancerState? state, CustomResourceOptions? opts = null)
public static LoadBalancer get(String name, Output<String> id, LoadBalancerState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Access
Log Pulumi.Config Ali Cloud. Alb. Inputs. Load Balancer Access Log Config - The configuration of the access log. See
access_log_config
below. - Address
Allocated stringMode - The mode in which IP addresses are allocated. Valid values:
Fixed
,Dynamic
. - Address
Ip stringVersion - The protocol version. Valid values:
IPv4
,DualStack
. - Address
Type string - The type of the address of the ALB instance. Valid values:
Internet
,Intranet
. - Bandwidth
Package stringId - The ID of the Internet Shared Bandwidth instance that is associated with the Internet-facing ALB instance.
- Create
Time string - The time when the resource was created.
- Deletion
Protection boolEnabled - Specifies whether to enable deletion protection. Default value:
false
. Valid values: - Dns
Name string - (Available since v1.158.0) The domain name of the ALB instance.
- Dry
Run bool - Specifies whether to perform a dry run. Default value:
false
. Valid values:true
,false
. - Ipv6Address
Type string - The address type of the Ipv6 address. Valid values:
Internet
,Intranet
. - Load
Balancer Pulumi.Billing Config Ali Cloud. Alb. Inputs. Load Balancer Load Balancer Billing Config - The billing method of the ALB instance. See
load_balancer_billing_config
below. - Load
Balancer stringEdition - The edition of the ALB instance. The features and billing rules vary based on the edition of the ALB instance. Valid values:
Basic
,Standard
,StandardWithWaf
. - Load
Balancer stringName - The name of the ALB instance.
- Modification
Protection Pulumi.Config Ali Cloud. Alb. Inputs. Load Balancer Modification Protection Config - The configuration of the read-only mode. See
modification_protection_config
below. - Resource
Group stringId - The ID of the resource group.
- Status string
- The status of the Load Balancer.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Vpc
Id string - The ID of the VPC.
- Zone
Mappings List<Pulumi.Ali Cloud. Alb. Inputs. Load Balancer Zone Mapping> - The list of zones and vSwitch mappings. You must specify at least two zones. See
zone_mappings
below.
- Access
Log LoadConfig Balancer Access Log Config Args - The configuration of the access log. See
access_log_config
below. - Address
Allocated stringMode - The mode in which IP addresses are allocated. Valid values:
Fixed
,Dynamic
. - Address
Ip stringVersion - The protocol version. Valid values:
IPv4
,DualStack
. - Address
Type string - The type of the address of the ALB instance. Valid values:
Internet
,Intranet
. - Bandwidth
Package stringId - The ID of the Internet Shared Bandwidth instance that is associated with the Internet-facing ALB instance.
- Create
Time string - The time when the resource was created.
- Deletion
Protection boolEnabled - Specifies whether to enable deletion protection. Default value:
false
. Valid values: - Dns
Name string - (Available since v1.158.0) The domain name of the ALB instance.
- Dry
Run bool - Specifies whether to perform a dry run. Default value:
false
. Valid values:true
,false
. - Ipv6Address
Type string - The address type of the Ipv6 address. Valid values:
Internet
,Intranet
. - Load
Balancer LoadBilling Config Balancer Load Balancer Billing Config Args - The billing method of the ALB instance. See
load_balancer_billing_config
below. - Load
Balancer stringEdition - The edition of the ALB instance. The features and billing rules vary based on the edition of the ALB instance. Valid values:
Basic
,Standard
,StandardWithWaf
. - Load
Balancer stringName - The name of the ALB instance.
- Modification
Protection LoadConfig Balancer Modification Protection Config Args - The configuration of the read-only mode. See
modification_protection_config
below. - Resource
Group stringId - The ID of the resource group.
- Status string
- The status of the Load Balancer.
- map[string]string
- A mapping of tags to assign to the resource.
- Vpc
Id string - The ID of the VPC.
- Zone
Mappings []LoadBalancer Zone Mapping Args - The list of zones and vSwitch mappings. You must specify at least two zones. See
zone_mappings
below.
- access
Log LoadConfig Balancer Access Log Config - The configuration of the access log. See
access_log_config
below. - address
Allocated StringMode - The mode in which IP addresses are allocated. Valid values:
Fixed
,Dynamic
. - address
Ip StringVersion - The protocol version. Valid values:
IPv4
,DualStack
. - address
Type String - The type of the address of the ALB instance. Valid values:
Internet
,Intranet
. - bandwidth
Package StringId - The ID of the Internet Shared Bandwidth instance that is associated with the Internet-facing ALB instance.
- create
Time String - The time when the resource was created.
- deletion
Protection BooleanEnabled - Specifies whether to enable deletion protection. Default value:
false
. Valid values: - dns
Name String - (Available since v1.158.0) The domain name of the ALB instance.
- dry
Run Boolean - Specifies whether to perform a dry run. Default value:
false
. Valid values:true
,false
. - ipv6Address
Type String - The address type of the Ipv6 address. Valid values:
Internet
,Intranet
. - load
Balancer LoadBilling Config Balancer Load Balancer Billing Config - The billing method of the ALB instance. See
load_balancer_billing_config
below. - load
Balancer StringEdition - The edition of the ALB instance. The features and billing rules vary based on the edition of the ALB instance. Valid values:
Basic
,Standard
,StandardWithWaf
. - load
Balancer StringName - The name of the ALB instance.
- modification
Protection LoadConfig Balancer Modification Protection Config - The configuration of the read-only mode. See
modification_protection_config
below. - resource
Group StringId - The ID of the resource group.
- status String
- The status of the Load Balancer.
- Map<String,String>
- A mapping of tags to assign to the resource.
- vpc
Id String - The ID of the VPC.
- zone
Mappings List<LoadBalancer Zone Mapping> - The list of zones and vSwitch mappings. You must specify at least two zones. See
zone_mappings
below.
- access
Log LoadConfig Balancer Access Log Config - The configuration of the access log. See
access_log_config
below. - address
Allocated stringMode - The mode in which IP addresses are allocated. Valid values:
Fixed
,Dynamic
. - address
Ip stringVersion - The protocol version. Valid values:
IPv4
,DualStack
. - address
Type string - The type of the address of the ALB instance. Valid values:
Internet
,Intranet
. - bandwidth
Package stringId - The ID of the Internet Shared Bandwidth instance that is associated with the Internet-facing ALB instance.
- create
Time string - The time when the resource was created.
- deletion
Protection booleanEnabled - Specifies whether to enable deletion protection. Default value:
false
. Valid values: - dns
Name string - (Available since v1.158.0) The domain name of the ALB instance.
- dry
Run boolean - Specifies whether to perform a dry run. Default value:
false
. Valid values:true
,false
. - ipv6Address
Type string - The address type of the Ipv6 address. Valid values:
Internet
,Intranet
. - load
Balancer LoadBilling Config Balancer Load Balancer Billing Config - The billing method of the ALB instance. See
load_balancer_billing_config
below. - load
Balancer stringEdition - The edition of the ALB instance. The features and billing rules vary based on the edition of the ALB instance. Valid values:
Basic
,Standard
,StandardWithWaf
. - load
Balancer stringName - The name of the ALB instance.
- modification
Protection LoadConfig Balancer Modification Protection Config - The configuration of the read-only mode. See
modification_protection_config
below. - resource
Group stringId - The ID of the resource group.
- status string
- The status of the Load Balancer.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- vpc
Id string - The ID of the VPC.
- zone
Mappings LoadBalancer Zone Mapping[] - The list of zones and vSwitch mappings. You must specify at least two zones. See
zone_mappings
below.
- access_
log_ Loadconfig Balancer Access Log Config Args - The configuration of the access log. See
access_log_config
below. - address_
allocated_ strmode - The mode in which IP addresses are allocated. Valid values:
Fixed
,Dynamic
. - address_
ip_ strversion - The protocol version. Valid values:
IPv4
,DualStack
. - address_
type str - The type of the address of the ALB instance. Valid values:
Internet
,Intranet
. - bandwidth_
package_ strid - The ID of the Internet Shared Bandwidth instance that is associated with the Internet-facing ALB instance.
- create_
time str - The time when the resource was created.
- deletion_
protection_ boolenabled - Specifies whether to enable deletion protection. Default value:
false
. Valid values: - dns_
name str - (Available since v1.158.0) The domain name of the ALB instance.
- dry_
run bool - Specifies whether to perform a dry run. Default value:
false
. Valid values:true
,false
. - ipv6_
address_ strtype - The address type of the Ipv6 address. Valid values:
Internet
,Intranet
. - load_
balancer_ Loadbilling_ config Balancer Load Balancer Billing Config Args - The billing method of the ALB instance. See
load_balancer_billing_config
below. - load_
balancer_ stredition - The edition of the ALB instance. The features and billing rules vary based on the edition of the ALB instance. Valid values:
Basic
,Standard
,StandardWithWaf
. - load_
balancer_ strname - The name of the ALB instance.
- modification_
protection_ Loadconfig Balancer Modification Protection Config Args - The configuration of the read-only mode. See
modification_protection_config
below. - resource_
group_ strid - The ID of the resource group.
- status str
- The status of the Load Balancer.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- vpc_
id str - The ID of the VPC.
- zone_
mappings Sequence[LoadBalancer Zone Mapping Args] - The list of zones and vSwitch mappings. You must specify at least two zones. See
zone_mappings
below.
- access
Log Property MapConfig - The configuration of the access log. See
access_log_config
below. - address
Allocated StringMode - The mode in which IP addresses are allocated. Valid values:
Fixed
,Dynamic
. - address
Ip StringVersion - The protocol version. Valid values:
IPv4
,DualStack
. - address
Type String - The type of the address of the ALB instance. Valid values:
Internet
,Intranet
. - bandwidth
Package StringId - The ID of the Internet Shared Bandwidth instance that is associated with the Internet-facing ALB instance.
- create
Time String - The time when the resource was created.
- deletion
Protection BooleanEnabled - Specifies whether to enable deletion protection. Default value:
false
. Valid values: - dns
Name String - (Available since v1.158.0) The domain name of the ALB instance.
- dry
Run Boolean - Specifies whether to perform a dry run. Default value:
false
. Valid values:true
,false
. - ipv6Address
Type String - The address type of the Ipv6 address. Valid values:
Internet
,Intranet
. - load
Balancer Property MapBilling Config - The billing method of the ALB instance. See
load_balancer_billing_config
below. - load
Balancer StringEdition - The edition of the ALB instance. The features and billing rules vary based on the edition of the ALB instance. Valid values:
Basic
,Standard
,StandardWithWaf
. - load
Balancer StringName - The name of the ALB instance.
- modification
Protection Property MapConfig - The configuration of the read-only mode. See
modification_protection_config
below. - resource
Group StringId - The ID of the resource group.
- status String
- The status of the Load Balancer.
- Map<String>
- A mapping of tags to assign to the resource.
- vpc
Id String - The ID of the VPC.
- zone
Mappings List<Property Map> - The list of zones and vSwitch mappings. You must specify at least two zones. See
zone_mappings
below.
Supporting Types
LoadBalancerAccessLogConfig, LoadBalancerAccessLogConfigArgs
- Log
Project string - The project to which the access log is shipped.
- Log
Store string - The Logstore to which the access log is shipped.
- Log
Project string - The project to which the access log is shipped.
- Log
Store string - The Logstore to which the access log is shipped.
- log
Project String - The project to which the access log is shipped.
- log
Store String - The Logstore to which the access log is shipped.
- log
Project string - The project to which the access log is shipped.
- log
Store string - The Logstore to which the access log is shipped.
- log_
project str - The project to which the access log is shipped.
- log_
store str - The Logstore to which the access log is shipped.
- log
Project String - The project to which the access log is shipped.
- log
Store String - The Logstore to which the access log is shipped.
LoadBalancerLoadBalancerBillingConfig, LoadBalancerLoadBalancerBillingConfigArgs
- Pay
Type string - The billing method of the ALB instance. Valid values:
PayAsYouGo
.
- Pay
Type string - The billing method of the ALB instance. Valid values:
PayAsYouGo
.
- pay
Type String - The billing method of the ALB instance. Valid values:
PayAsYouGo
.
- pay
Type string - The billing method of the ALB instance. Valid values:
PayAsYouGo
.
- pay_
type str - The billing method of the ALB instance. Valid values:
PayAsYouGo
.
- pay
Type String - The billing method of the ALB instance. Valid values:
PayAsYouGo
.
LoadBalancerModificationProtectionConfig, LoadBalancerModificationProtectionConfigArgs
LoadBalancerZoneMapping, LoadBalancerZoneMappingArgs
- Vswitch
Id string - The ID of the VSwitch.
- Zone
Id string - The zone ID of the ALB instance.
- Load
Balancer List<Pulumi.Addresses Ali Cloud. Alb. Inputs. Load Balancer Zone Mapping Load Balancer Address> - The IP address of the ALB instance.
- Vswitch
Id string - The ID of the VSwitch.
- Zone
Id string - The zone ID of the ALB instance.
- Load
Balancer []LoadAddresses Balancer Zone Mapping Load Balancer Address - The IP address of the ALB instance.
- vswitch
Id String - The ID of the VSwitch.
- zone
Id String - The zone ID of the ALB instance.
- load
Balancer List<LoadAddresses Balancer Zone Mapping Load Balancer Address> - The IP address of the ALB instance.
- vswitch
Id string - The ID of the VSwitch.
- zone
Id string - The zone ID of the ALB instance.
- load
Balancer LoadAddresses Balancer Zone Mapping Load Balancer Address[] - The IP address of the ALB instance.
- vswitch_
id str - The ID of the VSwitch.
- zone_
id str - The zone ID of the ALB instance.
- load_
balancer_ Sequence[Loadaddresses Balancer Zone Mapping Load Balancer Address] - The IP address of the ALB instance.
- vswitch
Id String - The ID of the VSwitch.
- zone
Id String - The zone ID of the ALB instance.
- load
Balancer List<Property Map>Addresses - The IP address of the ALB instance.
LoadBalancerZoneMappingLoadBalancerAddress, LoadBalancerZoneMappingLoadBalancerAddressArgs
- Address string
- IP address. The Public IP Address, and Private IP Address from the Address Type.
- Allocation
Id string - The ID of the EIP.
- Eip
Type string - The type of the EIP.
- Ipv6Address string
- Ipv6 address.
- Address string
- IP address. The Public IP Address, and Private IP Address from the Address Type.
- Allocation
Id string - The ID of the EIP.
- Eip
Type string - The type of the EIP.
- Ipv6Address string
- Ipv6 address.
- address String
- IP address. The Public IP Address, and Private IP Address from the Address Type.
- allocation
Id String - The ID of the EIP.
- eip
Type String - The type of the EIP.
- ipv6Address String
- Ipv6 address.
- address string
- IP address. The Public IP Address, and Private IP Address from the Address Type.
- allocation
Id string - The ID of the EIP.
- eip
Type string - The type of the EIP.
- ipv6Address string
- Ipv6 address.
- address str
- IP address. The Public IP Address, and Private IP Address from the Address Type.
- allocation_
id str - The ID of the EIP.
- eip_
type str - The type of the EIP.
- ipv6_
address str - Ipv6 address.
- address String
- IP address. The Public IP Address, and Private IP Address from the Address Type.
- allocation
Id String - The ID of the EIP.
- eip
Type String - The type of the EIP.
- ipv6Address String
- Ipv6 address.
Import
Alb Load Balancer can be imported using the id, e.g.
$ pulumi import alicloud:alb/loadBalancer:LoadBalancer example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.