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 in v1.132.0+.
Create LoadBalancer Resource
new LoadBalancer(name: string, args: LoadBalancerArgs, opts?: CustomResourceOptions);
@overload
def LoadBalancer(resource_name: 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,
deletion_protection_enabled: Optional[bool] = None,
dry_run: Optional[bool] = 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,
tags: Optional[Mapping[str, Any]] = None,
vpc_id: Optional[str] = None,
zone_mappings: Optional[Sequence[LoadBalancerZoneMappingArgs]] = None)
@overload
def LoadBalancer(resource_name: str,
args: LoadBalancerArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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
The LoadBalancer resource accepts the following input properties:
- Address
Type string The type of IP address that the ALB instance uses to provide services. Valid values:
Intranet
,Internet
. NOTE: From version 1.193.1,address_type
can be modified.- Load
Balancer Pulumi.Billing Config Ali Cloud. Alb. Inputs. Load Balancer Load Balancer Billing Config Args The configuration of the billing method. See the following
Block load_balancer_billing_config
.- Load
Balancer stringEdition The edition of the ALB instance. Different editions have different limits and billing methods. Valid values:
Basic
,Standard
andStandardWithWaf
(Available in v1.193.1+).- Load
Balancer stringName The name of the resource.
- Vpc
Id string The ID of the virtual private cloud (VPC) where the ALB instance is deployed.
- Zone
Mappings List<Pulumi.Ali Cloud. Alb. Inputs. Load Balancer Zone Mapping Args> The zones and vSwitches. You must specify at least two zones. See the following
Block zone_mappings
.- Access
Log Pulumi.Config Ali Cloud. Alb. Inputs. Load Balancer Access Log Config Args The Access Logging Configuration Structure. See the following
Block access_log_config
.- Address
Allocated stringMode The method in which IP addresses are assigned. Valid values:
Fixed
andDynamic
. Default value:Dynamic
.- Address
Ip stringVersion The IP version. Valid values:
Ipv4
,DualStack
.- Deletion
Protection boolEnabled The deletion protection enabled. Valid values:
true
andfalse
. Default value:false
.- Dry
Run bool Specifies whether to precheck the API request. Valid values:
true
andfalse
.- Modification
Protection Pulumi.Config Ali Cloud. Alb. Inputs. Load Balancer Modification Protection Config Args Modify the Protection Configuration. See the following
Block modification_protection_config
.- Resource
Group stringId The ID of the resource group.
- Dictionary<string, object>
A mapping of tags to assign to the resource. NOTE: The Key of
tags
cannot begin with "aliyun", "acs:", "http://", "https://", "ack" or "ingress".
- Address
Type string The type of IP address that the ALB instance uses to provide services. Valid values:
Intranet
,Internet
. NOTE: From version 1.193.1,address_type
can be modified.- Load
Balancer LoadBilling Config Balancer Load Balancer Billing Config Args The configuration of the billing method. See the following
Block load_balancer_billing_config
.- Load
Balancer stringEdition The edition of the ALB instance. Different editions have different limits and billing methods. Valid values:
Basic
,Standard
andStandardWithWaf
(Available in v1.193.1+).- Load
Balancer stringName The name of the resource.
- Vpc
Id string The ID of the virtual private cloud (VPC) where the ALB instance is deployed.
- Zone
Mappings []LoadBalancer Zone Mapping Args The zones and vSwitches. You must specify at least two zones. See the following
Block zone_mappings
.- Access
Log LoadConfig Balancer Access Log Config Args The Access Logging Configuration Structure. See the following
Block access_log_config
.- Address
Allocated stringMode The method in which IP addresses are assigned. Valid values:
Fixed
andDynamic
. Default value:Dynamic
.- Address
Ip stringVersion The IP version. Valid values:
Ipv4
,DualStack
.- Deletion
Protection boolEnabled The deletion protection enabled. Valid values:
true
andfalse
. Default value:false
.- Dry
Run bool Specifies whether to precheck the API request. Valid values:
true
andfalse
.- Modification
Protection LoadConfig Balancer Modification Protection Config Args Modify the Protection Configuration. See the following
Block modification_protection_config
.- Resource
Group stringId The ID of the resource group.
- map[string]interface{}
A mapping of tags to assign to the resource. NOTE: The Key of
tags
cannot begin with "aliyun", "acs:", "http://", "https://", "ack" or "ingress".
- address
Type String The type of IP address that the ALB instance uses to provide services. Valid values:
Intranet
,Internet
. NOTE: From version 1.193.1,address_type
can be modified.- load
Balancer LoadBilling Config Balancer Load Balancer Billing Config Args The configuration of the billing method. See the following
Block load_balancer_billing_config
.- load
Balancer StringEdition The edition of the ALB instance. Different editions have different limits and billing methods. Valid values:
Basic
,Standard
andStandardWithWaf
(Available in v1.193.1+).- load
Balancer StringName The name of the resource.
- vpc
Id String The ID of the virtual private cloud (VPC) where the ALB instance is deployed.
- zone
Mappings List<LoadBalancer Zone Mapping Args> The zones and vSwitches. You must specify at least two zones. See the following
Block zone_mappings
.- access
Log LoadConfig Balancer Access Log Config Args The Access Logging Configuration Structure. See the following
Block access_log_config
.- address
Allocated StringMode The method in which IP addresses are assigned. Valid values:
Fixed
andDynamic
. Default value:Dynamic
.- address
Ip StringVersion The IP version. Valid values:
Ipv4
,DualStack
.- deletion
Protection BooleanEnabled The deletion protection enabled. Valid values:
true
andfalse
. Default value:false
.- dry
Run Boolean Specifies whether to precheck the API request. Valid values:
true
andfalse
.- modification
Protection LoadConfig Balancer Modification Protection Config Args Modify the Protection Configuration. See the following
Block modification_protection_config
.- resource
Group StringId The ID of the resource group.
- Map<String,Object>
A mapping of tags to assign to the resource. NOTE: The Key of
tags
cannot begin with "aliyun", "acs:", "http://", "https://", "ack" or "ingress".
- address
Type string The type of IP address that the ALB instance uses to provide services. Valid values:
Intranet
,Internet
. NOTE: From version 1.193.1,address_type
can be modified.- load
Balancer LoadBilling Config Balancer Load Balancer Billing Config Args The configuration of the billing method. See the following
Block load_balancer_billing_config
.- load
Balancer stringEdition The edition of the ALB instance. Different editions have different limits and billing methods. Valid values:
Basic
,Standard
andStandardWithWaf
(Available in v1.193.1+).- load
Balancer stringName The name of the resource.
- vpc
Id string The ID of the virtual private cloud (VPC) where the ALB instance is deployed.
- zone
Mappings LoadBalancer Zone Mapping Args[] The zones and vSwitches. You must specify at least two zones. See the following
Block zone_mappings
.- access
Log LoadConfig Balancer Access Log Config Args The Access Logging Configuration Structure. See the following
Block access_log_config
.- address
Allocated stringMode The method in which IP addresses are assigned. Valid values:
Fixed
andDynamic
. Default value:Dynamic
.- address
Ip stringVersion The IP version. Valid values:
Ipv4
,DualStack
.- deletion
Protection booleanEnabled The deletion protection enabled. Valid values:
true
andfalse
. Default value:false
.- dry
Run boolean Specifies whether to precheck the API request. Valid values:
true
andfalse
.- modification
Protection LoadConfig Balancer Modification Protection Config Args Modify the Protection Configuration. See the following
Block modification_protection_config
.- resource
Group stringId The ID of the resource group.
- {[key: string]: any}
A mapping of tags to assign to the resource. NOTE: The Key of
tags
cannot begin with "aliyun", "acs:", "http://", "https://", "ack" or "ingress".
- address_
type str The type of IP address that the ALB instance uses to provide services. Valid values:
Intranet
,Internet
. NOTE: From version 1.193.1,address_type
can be modified.- load_
balancer_ Loadbilling_ config Balancer Load Balancer Billing Config Args The configuration of the billing method. See the following
Block load_balancer_billing_config
.- load_
balancer_ stredition The edition of the ALB instance. Different editions have different limits and billing methods. Valid values:
Basic
,Standard
andStandardWithWaf
(Available in v1.193.1+).- load_
balancer_ strname The name of the resource.
- vpc_
id str The ID of the virtual private cloud (VPC) where the ALB instance is deployed.
- zone_
mappings Sequence[LoadBalancer Zone Mapping Args] The zones and vSwitches. You must specify at least two zones. See the following
Block zone_mappings
.- access_
log_ Loadconfig Balancer Access Log Config Args The Access Logging Configuration Structure. See the following
Block access_log_config
.- address_
allocated_ strmode The method in which IP addresses are assigned. Valid values:
Fixed
andDynamic
. Default value:Dynamic
.- address_
ip_ strversion The IP version. Valid values:
Ipv4
,DualStack
.- deletion_
protection_ boolenabled The deletion protection enabled. Valid values:
true
andfalse
. Default value:false
.- dry_
run bool Specifies whether to precheck the API request. Valid values:
true
andfalse
.- modification_
protection_ Loadconfig Balancer Modification Protection Config Args Modify the Protection Configuration. See the following
Block modification_protection_config
.- resource_
group_ strid The ID of the resource group.
- Mapping[str, Any]
A mapping of tags to assign to the resource. NOTE: The Key of
tags
cannot begin with "aliyun", "acs:", "http://", "https://", "ack" or "ingress".
- address
Type String The type of IP address that the ALB instance uses to provide services. Valid values:
Intranet
,Internet
. NOTE: From version 1.193.1,address_type
can be modified.- load
Balancer Property MapBilling Config The configuration of the billing method. See the following
Block load_balancer_billing_config
.- load
Balancer StringEdition The edition of the ALB instance. Different editions have different limits and billing methods. Valid values:
Basic
,Standard
andStandardWithWaf
(Available in v1.193.1+).- load
Balancer StringName The name of the resource.
- vpc
Id String The ID of the virtual private cloud (VPC) where the ALB instance is deployed.
- zone
Mappings List<Property Map> The zones and vSwitches. You must specify at least two zones. See the following
Block zone_mappings
.- access
Log Property MapConfig The Access Logging Configuration Structure. See the following
Block access_log_config
.- address
Allocated StringMode The method in which IP addresses are assigned. Valid values:
Fixed
andDynamic
. Default value:Dynamic
.- address
Ip StringVersion The IP version. Valid values:
Ipv4
,DualStack
.- deletion
Protection BooleanEnabled The deletion protection enabled. Valid values:
true
andfalse
. Default value:false
.- dry
Run Boolean Specifies whether to precheck the API request. Valid values:
true
andfalse
.- modification
Protection Property MapConfig Modify the Protection Configuration. See the following
Block modification_protection_config
.- resource
Group StringId The ID of the resource group.
- Map<Any>
A mapping of tags to assign to the resource. NOTE: The Key of
tags
cannot begin with "aliyun", "acs:", "http://", "https://", "ack" or "ingress".
Outputs
All input properties are implicitly available as output properties. Additionally, the LoadBalancer resource produces the following output properties:
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,
deletion_protection_enabled: Optional[bool] = None,
dns_name: Optional[str] = None,
dry_run: Optional[bool] = 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, Any]] = 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 Args The Access Logging Configuration Structure. See the following
Block access_log_config
.- Address
Allocated stringMode The method in which IP addresses are assigned. Valid values:
Fixed
andDynamic
. Default value:Dynamic
.- Address
Ip stringVersion The IP version. Valid values:
Ipv4
,DualStack
.- Address
Type string The type of IP address that the ALB instance uses to provide services. Valid values:
Intranet
,Internet
. NOTE: From version 1.193.1,address_type
can be modified.- Deletion
Protection boolEnabled The deletion protection enabled. Valid values:
true
andfalse
. Default value:false
.- Dns
Name string The domain name of the ALB instance. NOTE: Available in v1.158.0+.
- Dry
Run bool Specifies whether to precheck the API request. Valid values:
true
andfalse
.- Load
Balancer Pulumi.Billing Config Ali Cloud. Alb. Inputs. Load Balancer Load Balancer Billing Config Args The configuration of the billing method. See the following
Block load_balancer_billing_config
.- Load
Balancer stringEdition The edition of the ALB instance. Different editions have different limits and billing methods. Valid values:
Basic
,Standard
andStandardWithWaf
(Available in v1.193.1+).- Load
Balancer stringName The name of the resource.
- Modification
Protection Pulumi.Config Ali Cloud. Alb. Inputs. Load Balancer Modification Protection Config Args Modify the Protection Configuration. See the following
Block modification_protection_config
.- Resource
Group stringId The ID of the resource group.
- Status string
Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values:
NonProtection
andConsoleProtection
.- Dictionary<string, object>
A mapping of tags to assign to the resource. NOTE: The Key of
tags
cannot begin with "aliyun", "acs:", "http://", "https://", "ack" or "ingress".- Vpc
Id string The ID of the virtual private cloud (VPC) where the ALB instance is deployed.
- Zone
Mappings List<Pulumi.Ali Cloud. Alb. Inputs. Load Balancer Zone Mapping Args> The zones and vSwitches. You must specify at least two zones. See the following
Block zone_mappings
.
- Access
Log LoadConfig Balancer Access Log Config Args The Access Logging Configuration Structure. See the following
Block access_log_config
.- Address
Allocated stringMode The method in which IP addresses are assigned. Valid values:
Fixed
andDynamic
. Default value:Dynamic
.- Address
Ip stringVersion The IP version. Valid values:
Ipv4
,DualStack
.- Address
Type string The type of IP address that the ALB instance uses to provide services. Valid values:
Intranet
,Internet
. NOTE: From version 1.193.1,address_type
can be modified.- Deletion
Protection boolEnabled The deletion protection enabled. Valid values:
true
andfalse
. Default value:false
.- Dns
Name string The domain name of the ALB instance. NOTE: Available in v1.158.0+.
- Dry
Run bool Specifies whether to precheck the API request. Valid values:
true
andfalse
.- Load
Balancer LoadBilling Config Balancer Load Balancer Billing Config Args The configuration of the billing method. See the following
Block load_balancer_billing_config
.- Load
Balancer stringEdition The edition of the ALB instance. Different editions have different limits and billing methods. Valid values:
Basic
,Standard
andStandardWithWaf
(Available in v1.193.1+).- Load
Balancer stringName The name of the resource.
- Modification
Protection LoadConfig Balancer Modification Protection Config Args Modify the Protection Configuration. See the following
Block modification_protection_config
.- Resource
Group stringId The ID of the resource group.
- Status string
Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values:
NonProtection
andConsoleProtection
.- map[string]interface{}
A mapping of tags to assign to the resource. NOTE: The Key of
tags
cannot begin with "aliyun", "acs:", "http://", "https://", "ack" or "ingress".- Vpc
Id string The ID of the virtual private cloud (VPC) where the ALB instance is deployed.
- Zone
Mappings []LoadBalancer Zone Mapping Args The zones and vSwitches. You must specify at least two zones. See the following
Block zone_mappings
.
- access
Log LoadConfig Balancer Access Log Config Args The Access Logging Configuration Structure. See the following
Block access_log_config
.- address
Allocated StringMode The method in which IP addresses are assigned. Valid values:
Fixed
andDynamic
. Default value:Dynamic
.- address
Ip StringVersion The IP version. Valid values:
Ipv4
,DualStack
.- address
Type String The type of IP address that the ALB instance uses to provide services. Valid values:
Intranet
,Internet
. NOTE: From version 1.193.1,address_type
can be modified.- deletion
Protection BooleanEnabled The deletion protection enabled. Valid values:
true
andfalse
. Default value:false
.- dns
Name String The domain name of the ALB instance. NOTE: Available in v1.158.0+.
- dry
Run Boolean Specifies whether to precheck the API request. Valid values:
true
andfalse
.- load
Balancer LoadBilling Config Balancer Load Balancer Billing Config Args The configuration of the billing method. See the following
Block load_balancer_billing_config
.- load
Balancer StringEdition The edition of the ALB instance. Different editions have different limits and billing methods. Valid values:
Basic
,Standard
andStandardWithWaf
(Available in v1.193.1+).- load
Balancer StringName The name of the resource.
- modification
Protection LoadConfig Balancer Modification Protection Config Args Modify the Protection Configuration. See the following
Block modification_protection_config
.- resource
Group StringId The ID of the resource group.
- status String
Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values:
NonProtection
andConsoleProtection
.- Map<String,Object>
A mapping of tags to assign to the resource. NOTE: The Key of
tags
cannot begin with "aliyun", "acs:", "http://", "https://", "ack" or "ingress".- vpc
Id String The ID of the virtual private cloud (VPC) where the ALB instance is deployed.
- zone
Mappings List<LoadBalancer Zone Mapping Args> The zones and vSwitches. You must specify at least two zones. See the following
Block zone_mappings
.
- access
Log LoadConfig Balancer Access Log Config Args The Access Logging Configuration Structure. See the following
Block access_log_config
.- address
Allocated stringMode The method in which IP addresses are assigned. Valid values:
Fixed
andDynamic
. Default value:Dynamic
.- address
Ip stringVersion The IP version. Valid values:
Ipv4
,DualStack
.- address
Type string The type of IP address that the ALB instance uses to provide services. Valid values:
Intranet
,Internet
. NOTE: From version 1.193.1,address_type
can be modified.- deletion
Protection booleanEnabled The deletion protection enabled. Valid values:
true
andfalse
. Default value:false
.- dns
Name string The domain name of the ALB instance. NOTE: Available in v1.158.0+.
- dry
Run boolean Specifies whether to precheck the API request. Valid values:
true
andfalse
.- load
Balancer LoadBilling Config Balancer Load Balancer Billing Config Args The configuration of the billing method. See the following
Block load_balancer_billing_config
.- load
Balancer stringEdition The edition of the ALB instance. Different editions have different limits and billing methods. Valid values:
Basic
,Standard
andStandardWithWaf
(Available in v1.193.1+).- load
Balancer stringName The name of the resource.
- modification
Protection LoadConfig Balancer Modification Protection Config Args Modify the Protection Configuration. See the following
Block modification_protection_config
.- resource
Group stringId The ID of the resource group.
- status string
Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values:
NonProtection
andConsoleProtection
.- {[key: string]: any}
A mapping of tags to assign to the resource. NOTE: The Key of
tags
cannot begin with "aliyun", "acs:", "http://", "https://", "ack" or "ingress".- vpc
Id string The ID of the virtual private cloud (VPC) where the ALB instance is deployed.
- zone
Mappings LoadBalancer Zone Mapping Args[] The zones and vSwitches. You must specify at least two zones. See the following
Block zone_mappings
.
- access_
log_ Loadconfig Balancer Access Log Config Args The Access Logging Configuration Structure. See the following
Block access_log_config
.- address_
allocated_ strmode The method in which IP addresses are assigned. Valid values:
Fixed
andDynamic
. Default value:Dynamic
.- address_
ip_ strversion The IP version. Valid values:
Ipv4
,DualStack
.- address_
type str The type of IP address that the ALB instance uses to provide services. Valid values:
Intranet
,Internet
. NOTE: From version 1.193.1,address_type
can be modified.- deletion_
protection_ boolenabled The deletion protection enabled. Valid values:
true
andfalse
. Default value:false
.- dns_
name str The domain name of the ALB instance. NOTE: Available in v1.158.0+.
- dry_
run bool Specifies whether to precheck the API request. Valid values:
true
andfalse
.- load_
balancer_ Loadbilling_ config Balancer Load Balancer Billing Config Args The configuration of the billing method. See the following
Block load_balancer_billing_config
.- load_
balancer_ stredition The edition of the ALB instance. Different editions have different limits and billing methods. Valid values:
Basic
,Standard
andStandardWithWaf
(Available in v1.193.1+).- load_
balancer_ strname The name of the resource.
- modification_
protection_ Loadconfig Balancer Modification Protection Config Args Modify the Protection Configuration. See the following
Block modification_protection_config
.- resource_
group_ strid The ID of the resource group.
- status str
Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values:
NonProtection
andConsoleProtection
.- Mapping[str, Any]
A mapping of tags to assign to the resource. NOTE: The Key of
tags
cannot begin with "aliyun", "acs:", "http://", "https://", "ack" or "ingress".- vpc_
id str The ID of the virtual private cloud (VPC) where the ALB instance is deployed.
- zone_
mappings Sequence[LoadBalancer Zone Mapping Args] The zones and vSwitches. You must specify at least two zones. See the following
Block zone_mappings
.
- access
Log Property MapConfig The Access Logging Configuration Structure. See the following
Block access_log_config
.- address
Allocated StringMode The method in which IP addresses are assigned. Valid values:
Fixed
andDynamic
. Default value:Dynamic
.- address
Ip StringVersion The IP version. Valid values:
Ipv4
,DualStack
.- address
Type String The type of IP address that the ALB instance uses to provide services. Valid values:
Intranet
,Internet
. NOTE: From version 1.193.1,address_type
can be modified.- deletion
Protection BooleanEnabled The deletion protection enabled. Valid values:
true
andfalse
. Default value:false
.- dns
Name String The domain name of the ALB instance. NOTE: Available in v1.158.0+.
- dry
Run Boolean Specifies whether to precheck the API request. Valid values:
true
andfalse
.- load
Balancer Property MapBilling Config The configuration of the billing method. See the following
Block load_balancer_billing_config
.- load
Balancer StringEdition The edition of the ALB instance. Different editions have different limits and billing methods. Valid values:
Basic
,Standard
andStandardWithWaf
(Available in v1.193.1+).- load
Balancer StringName The name of the resource.
- modification
Protection Property MapConfig Modify the Protection Configuration. See the following
Block modification_protection_config
.- resource
Group StringId The ID of the resource group.
- status String
Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values:
NonProtection
andConsoleProtection
.- Map<Any>
A mapping of tags to assign to the resource. NOTE: The Key of
tags
cannot begin with "aliyun", "acs:", "http://", "https://", "ack" or "ingress".- vpc
Id String The ID of the virtual private cloud (VPC) where the ALB instance is deployed.
- zone
Mappings List<Property Map> The zones and vSwitches. You must specify at least two zones. See the following
Block zone_mappings
.
Supporting Types
LoadBalancerAccessLogConfig
- Log
Project string The log service that access logs are shipped to.
- Log
Store string The log service that access logs are shipped to.
- Log
Project string The log service that access logs are shipped to.
- Log
Store string The log service that access logs are shipped to.
- log
Project String The log service that access logs are shipped to.
- log
Store String The log service that access logs are shipped to.
- log
Project string The log service that access logs are shipped to.
- log
Store string The log service that access logs are shipped to.
- log_
project str The log service that access logs are shipped to.
- log_
store str The log service that access logs are shipped to.
- log
Project String The log service that access logs are shipped to.
- log
Store String The log service that access logs are shipped to.
LoadBalancerLoadBalancerBillingConfig
- Pay
Type string The billing method of the ALB instance. Valid value:
PayAsYouGo
.
- Pay
Type string The billing method of the ALB instance. Valid value:
PayAsYouGo
.
- pay
Type String The billing method of the ALB instance. Valid value:
PayAsYouGo
.
- pay
Type string The billing method of the ALB instance. Valid value:
PayAsYouGo
.
- pay_
type str The billing method of the ALB instance. Valid value:
PayAsYouGo
.
- pay
Type String The billing method of the ALB instance. Valid value:
PayAsYouGo
.
LoadBalancerModificationProtectionConfig
- Reason string
The reason for modification protection. This parameter must be 2 to 128 characters in length, and can contain letters, digits, periods, underscores, and hyphens. The reason must start with a letter. Note: This parameter takes effect only when
status
is set toConsoleProtection
.- Status string
Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values:
NonProtection
andConsoleProtection
.
- Reason string
The reason for modification protection. This parameter must be 2 to 128 characters in length, and can contain letters, digits, periods, underscores, and hyphens. The reason must start with a letter. Note: This parameter takes effect only when
status
is set toConsoleProtection
.- Status string
Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values:
NonProtection
andConsoleProtection
.
- reason String
The reason for modification protection. This parameter must be 2 to 128 characters in length, and can contain letters, digits, periods, underscores, and hyphens. The reason must start with a letter. Note: This parameter takes effect only when
status
is set toConsoleProtection
.- status String
Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values:
NonProtection
andConsoleProtection
.
- reason string
The reason for modification protection. This parameter must be 2 to 128 characters in length, and can contain letters, digits, periods, underscores, and hyphens. The reason must start with a letter. Note: This parameter takes effect only when
status
is set toConsoleProtection
.- status string
Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values:
NonProtection
andConsoleProtection
.
- reason str
The reason for modification protection. This parameter must be 2 to 128 characters in length, and can contain letters, digits, periods, underscores, and hyphens. The reason must start with a letter. Note: This parameter takes effect only when
status
is set toConsoleProtection
.- status str
Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values:
NonProtection
andConsoleProtection
.
- reason String
The reason for modification protection. This parameter must be 2 to 128 characters in length, and can contain letters, digits, periods, underscores, and hyphens. The reason must start with a letter. Note: This parameter takes effect only when
status
is set toConsoleProtection
.- status String
Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values:
NonProtection
andConsoleProtection
.
LoadBalancerZoneMapping
- vswitch_
id str The ID of the vSwitch that corresponds to the zone. Each zone can use only one vSwitch and subnet.
- zone_
id str The ID of the zone to which the ALB instance belongs.
Import
ALB Load Balancer can be imported using the id, e.g.
$ pulumi import alicloud:alb/loadBalancer:LoadBalancer example <id>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.