1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. alb
  5. LoadBalancer
Alibaba Cloud v3.38.0 published on Friday, Jun 2, 2023 by Pulumi

alicloud.alb.LoadBalancer

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.38.0 published on Friday, Jun 2, 2023 by Pulumi

    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:

    AddressType 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.

    LoadBalancerBillingConfig Pulumi.AliCloud.Alb.Inputs.LoadBalancerLoadBalancerBillingConfigArgs

    The configuration of the billing method. See the following Block load_balancer_billing_config.

    LoadBalancerEdition string

    The edition of the ALB instance. Different editions have different limits and billing methods. Valid values: Basic, Standard and StandardWithWaf(Available in v1.193.1+).

    LoadBalancerName string

    The name of the resource.

    VpcId string

    The ID of the virtual private cloud (VPC) where the ALB instance is deployed.

    ZoneMappings List<Pulumi.AliCloud.Alb.Inputs.LoadBalancerZoneMappingArgs>

    The zones and vSwitches. You must specify at least two zones. See the following Block zone_mappings.

    AccessLogConfig Pulumi.AliCloud.Alb.Inputs.LoadBalancerAccessLogConfigArgs

    The Access Logging Configuration Structure. See the following Block access_log_config.

    AddressAllocatedMode string

    The method in which IP addresses are assigned. Valid values: Fixed and Dynamic. Default value: Dynamic.

    AddressIpVersion string

    The IP version. Valid values: Ipv4, DualStack.

    DeletionProtectionEnabled bool

    The deletion protection enabled. Valid values: true and false. Default value: false.

    DryRun bool

    Specifies whether to precheck the API request. Valid values: true and false.

    ModificationProtectionConfig Pulumi.AliCloud.Alb.Inputs.LoadBalancerModificationProtectionConfigArgs

    Modify the Protection Configuration. See the following Block modification_protection_config.

    ResourceGroupId string

    The ID of the resource group.

    Tags 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".

    AddressType 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.

    LoadBalancerBillingConfig LoadBalancerLoadBalancerBillingConfigArgs

    The configuration of the billing method. See the following Block load_balancer_billing_config.

    LoadBalancerEdition string

    The edition of the ALB instance. Different editions have different limits and billing methods. Valid values: Basic, Standard and StandardWithWaf(Available in v1.193.1+).

    LoadBalancerName string

    The name of the resource.

    VpcId string

    The ID of the virtual private cloud (VPC) where the ALB instance is deployed.

    ZoneMappings []LoadBalancerZoneMappingArgs

    The zones and vSwitches. You must specify at least two zones. See the following Block zone_mappings.

    AccessLogConfig LoadBalancerAccessLogConfigArgs

    The Access Logging Configuration Structure. See the following Block access_log_config.

    AddressAllocatedMode string

    The method in which IP addresses are assigned. Valid values: Fixed and Dynamic. Default value: Dynamic.

    AddressIpVersion string

    The IP version. Valid values: Ipv4, DualStack.

    DeletionProtectionEnabled bool

    The deletion protection enabled. Valid values: true and false. Default value: false.

    DryRun bool

    Specifies whether to precheck the API request. Valid values: true and false.

    ModificationProtectionConfig LoadBalancerModificationProtectionConfigArgs

    Modify the Protection Configuration. See the following Block modification_protection_config.

    ResourceGroupId string

    The ID of the resource group.

    Tags 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".

    addressType 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.

    loadBalancerBillingConfig LoadBalancerLoadBalancerBillingConfigArgs

    The configuration of the billing method. See the following Block load_balancer_billing_config.

    loadBalancerEdition String

    The edition of the ALB instance. Different editions have different limits and billing methods. Valid values: Basic, Standard and StandardWithWaf(Available in v1.193.1+).

    loadBalancerName String

    The name of the resource.

    vpcId String

    The ID of the virtual private cloud (VPC) where the ALB instance is deployed.

    zoneMappings List<LoadBalancerZoneMappingArgs>

    The zones and vSwitches. You must specify at least two zones. See the following Block zone_mappings.

    accessLogConfig LoadBalancerAccessLogConfigArgs

    The Access Logging Configuration Structure. See the following Block access_log_config.

    addressAllocatedMode String

    The method in which IP addresses are assigned. Valid values: Fixed and Dynamic. Default value: Dynamic.

    addressIpVersion String

    The IP version. Valid values: Ipv4, DualStack.

    deletionProtectionEnabled Boolean

    The deletion protection enabled. Valid values: true and false. Default value: false.

    dryRun Boolean

    Specifies whether to precheck the API request. Valid values: true and false.

    modificationProtectionConfig LoadBalancerModificationProtectionConfigArgs

    Modify the Protection Configuration. See the following Block modification_protection_config.

    resourceGroupId String

    The ID of the resource group.

    tags 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".

    addressType 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.

    loadBalancerBillingConfig LoadBalancerLoadBalancerBillingConfigArgs

    The configuration of the billing method. See the following Block load_balancer_billing_config.

    loadBalancerEdition string

    The edition of the ALB instance. Different editions have different limits and billing methods. Valid values: Basic, Standard and StandardWithWaf(Available in v1.193.1+).

    loadBalancerName string

    The name of the resource.

    vpcId string

    The ID of the virtual private cloud (VPC) where the ALB instance is deployed.

    zoneMappings LoadBalancerZoneMappingArgs[]

    The zones and vSwitches. You must specify at least two zones. See the following Block zone_mappings.

    accessLogConfig LoadBalancerAccessLogConfigArgs

    The Access Logging Configuration Structure. See the following Block access_log_config.

    addressAllocatedMode string

    The method in which IP addresses are assigned. Valid values: Fixed and Dynamic. Default value: Dynamic.

    addressIpVersion string

    The IP version. Valid values: Ipv4, DualStack.

    deletionProtectionEnabled boolean

    The deletion protection enabled. Valid values: true and false. Default value: false.

    dryRun boolean

    Specifies whether to precheck the API request. Valid values: true and false.

    modificationProtectionConfig LoadBalancerModificationProtectionConfigArgs

    Modify the Protection Configuration. See the following Block modification_protection_config.

    resourceGroupId string

    The ID of the resource group.

    tags {[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_billing_config LoadBalancerLoadBalancerBillingConfigArgs

    The configuration of the billing method. See the following Block load_balancer_billing_config.

    load_balancer_edition str

    The edition of the ALB instance. Different editions have different limits and billing methods. Valid values: Basic, Standard and StandardWithWaf(Available in v1.193.1+).

    load_balancer_name str

    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[LoadBalancerZoneMappingArgs]

    The zones and vSwitches. You must specify at least two zones. See the following Block zone_mappings.

    access_log_config LoadBalancerAccessLogConfigArgs

    The Access Logging Configuration Structure. See the following Block access_log_config.

    address_allocated_mode str

    The method in which IP addresses are assigned. Valid values: Fixed and Dynamic. Default value: Dynamic.

    address_ip_version str

    The IP version. Valid values: Ipv4, DualStack.

    deletion_protection_enabled bool

    The deletion protection enabled. Valid values: true and false. Default value: false.

    dry_run bool

    Specifies whether to precheck the API request. Valid values: true and false.

    modification_protection_config LoadBalancerModificationProtectionConfigArgs

    Modify the Protection Configuration. See the following Block modification_protection_config.

    resource_group_id str

    The ID of the resource group.

    tags 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".

    addressType 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.

    loadBalancerBillingConfig Property Map

    The configuration of the billing method. See the following Block load_balancer_billing_config.

    loadBalancerEdition String

    The edition of the ALB instance. Different editions have different limits and billing methods. Valid values: Basic, Standard and StandardWithWaf(Available in v1.193.1+).

    loadBalancerName String

    The name of the resource.

    vpcId String

    The ID of the virtual private cloud (VPC) where the ALB instance is deployed.

    zoneMappings List<Property Map>

    The zones and vSwitches. You must specify at least two zones. See the following Block zone_mappings.

    accessLogConfig Property Map

    The Access Logging Configuration Structure. See the following Block access_log_config.

    addressAllocatedMode String

    The method in which IP addresses are assigned. Valid values: Fixed and Dynamic. Default value: Dynamic.

    addressIpVersion String

    The IP version. Valid values: Ipv4, DualStack.

    deletionProtectionEnabled Boolean

    The deletion protection enabled. Valid values: true and false. Default value: false.

    dryRun Boolean

    Specifies whether to precheck the API request. Valid values: true and false.

    modificationProtectionConfig Property Map

    Modify the Protection Configuration. See the following Block modification_protection_config.

    resourceGroupId String

    The ID of the resource group.

    tags 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:

    DnsName string

    The domain name of the ALB instance. NOTE: Available in v1.158.0+.

    Id string

    The provider-assigned unique ID for this managed resource.

    Status string

    Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values: NonProtection and ConsoleProtection.

    DnsName string

    The domain name of the ALB instance. NOTE: Available in v1.158.0+.

    Id string

    The provider-assigned unique ID for this managed resource.

    Status string

    Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values: NonProtection and ConsoleProtection.

    dnsName String

    The domain name of the ALB instance. NOTE: Available in v1.158.0+.

    id String

    The provider-assigned unique ID for this managed resource.

    status String

    Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values: NonProtection and ConsoleProtection.

    dnsName string

    The domain name of the ALB instance. NOTE: Available in v1.158.0+.

    id string

    The provider-assigned unique ID for this managed resource.

    status string

    Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values: NonProtection and ConsoleProtection.

    dns_name str

    The domain name of the ALB instance. NOTE: Available in v1.158.0+.

    id str

    The provider-assigned unique ID for this managed resource.

    status str

    Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values: NonProtection and ConsoleProtection.

    dnsName String

    The domain name of the ALB instance. NOTE: Available in v1.158.0+.

    id String

    The provider-assigned unique ID for this managed resource.

    status String

    Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values: NonProtection and ConsoleProtection.

    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.
    The following state arguments are supported:
    AccessLogConfig Pulumi.AliCloud.Alb.Inputs.LoadBalancerAccessLogConfigArgs

    The Access Logging Configuration Structure. See the following Block access_log_config.

    AddressAllocatedMode string

    The method in which IP addresses are assigned. Valid values: Fixed and Dynamic. Default value: Dynamic.

    AddressIpVersion string

    The IP version. Valid values: Ipv4, DualStack.

    AddressType 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.

    DeletionProtectionEnabled bool

    The deletion protection enabled. Valid values: true and false. Default value: false.

    DnsName string

    The domain name of the ALB instance. NOTE: Available in v1.158.0+.

    DryRun bool

    Specifies whether to precheck the API request. Valid values: true and false.

    LoadBalancerBillingConfig Pulumi.AliCloud.Alb.Inputs.LoadBalancerLoadBalancerBillingConfigArgs

    The configuration of the billing method. See the following Block load_balancer_billing_config.

    LoadBalancerEdition string

    The edition of the ALB instance. Different editions have different limits and billing methods. Valid values: Basic, Standard and StandardWithWaf(Available in v1.193.1+).

    LoadBalancerName string

    The name of the resource.

    ModificationProtectionConfig Pulumi.AliCloud.Alb.Inputs.LoadBalancerModificationProtectionConfigArgs

    Modify the Protection Configuration. See the following Block modification_protection_config.

    ResourceGroupId string

    The ID of the resource group.

    Status string

    Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values: NonProtection and ConsoleProtection.

    Tags 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".

    VpcId string

    The ID of the virtual private cloud (VPC) where the ALB instance is deployed.

    ZoneMappings List<Pulumi.AliCloud.Alb.Inputs.LoadBalancerZoneMappingArgs>

    The zones and vSwitches. You must specify at least two zones. See the following Block zone_mappings.

    AccessLogConfig LoadBalancerAccessLogConfigArgs

    The Access Logging Configuration Structure. See the following Block access_log_config.

    AddressAllocatedMode string

    The method in which IP addresses are assigned. Valid values: Fixed and Dynamic. Default value: Dynamic.

    AddressIpVersion string

    The IP version. Valid values: Ipv4, DualStack.

    AddressType 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.

    DeletionProtectionEnabled bool

    The deletion protection enabled. Valid values: true and false. Default value: false.

    DnsName string

    The domain name of the ALB instance. NOTE: Available in v1.158.0+.

    DryRun bool

    Specifies whether to precheck the API request. Valid values: true and false.

    LoadBalancerBillingConfig LoadBalancerLoadBalancerBillingConfigArgs

    The configuration of the billing method. See the following Block load_balancer_billing_config.

    LoadBalancerEdition string

    The edition of the ALB instance. Different editions have different limits and billing methods. Valid values: Basic, Standard and StandardWithWaf(Available in v1.193.1+).

    LoadBalancerName string

    The name of the resource.

    ModificationProtectionConfig LoadBalancerModificationProtectionConfigArgs

    Modify the Protection Configuration. See the following Block modification_protection_config.

    ResourceGroupId string

    The ID of the resource group.

    Status string

    Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values: NonProtection and ConsoleProtection.

    Tags 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".

    VpcId string

    The ID of the virtual private cloud (VPC) where the ALB instance is deployed.

    ZoneMappings []LoadBalancerZoneMappingArgs

    The zones and vSwitches. You must specify at least two zones. See the following Block zone_mappings.

    accessLogConfig LoadBalancerAccessLogConfigArgs

    The Access Logging Configuration Structure. See the following Block access_log_config.

    addressAllocatedMode String

    The method in which IP addresses are assigned. Valid values: Fixed and Dynamic. Default value: Dynamic.

    addressIpVersion String

    The IP version. Valid values: Ipv4, DualStack.

    addressType 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.

    deletionProtectionEnabled Boolean

    The deletion protection enabled. Valid values: true and false. Default value: false.

    dnsName String

    The domain name of the ALB instance. NOTE: Available in v1.158.0+.

    dryRun Boolean

    Specifies whether to precheck the API request. Valid values: true and false.

    loadBalancerBillingConfig LoadBalancerLoadBalancerBillingConfigArgs

    The configuration of the billing method. See the following Block load_balancer_billing_config.

    loadBalancerEdition String

    The edition of the ALB instance. Different editions have different limits and billing methods. Valid values: Basic, Standard and StandardWithWaf(Available in v1.193.1+).

    loadBalancerName String

    The name of the resource.

    modificationProtectionConfig LoadBalancerModificationProtectionConfigArgs

    Modify the Protection Configuration. See the following Block modification_protection_config.

    resourceGroupId String

    The ID of the resource group.

    status String

    Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values: NonProtection and ConsoleProtection.

    tags 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".

    vpcId String

    The ID of the virtual private cloud (VPC) where the ALB instance is deployed.

    zoneMappings List<LoadBalancerZoneMappingArgs>

    The zones and vSwitches. You must specify at least two zones. See the following Block zone_mappings.

    accessLogConfig LoadBalancerAccessLogConfigArgs

    The Access Logging Configuration Structure. See the following Block access_log_config.

    addressAllocatedMode string

    The method in which IP addresses are assigned. Valid values: Fixed and Dynamic. Default value: Dynamic.

    addressIpVersion string

    The IP version. Valid values: Ipv4, DualStack.

    addressType 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.

    deletionProtectionEnabled boolean

    The deletion protection enabled. Valid values: true and false. Default value: false.

    dnsName string

    The domain name of the ALB instance. NOTE: Available in v1.158.0+.

    dryRun boolean

    Specifies whether to precheck the API request. Valid values: true and false.

    loadBalancerBillingConfig LoadBalancerLoadBalancerBillingConfigArgs

    The configuration of the billing method. See the following Block load_balancer_billing_config.

    loadBalancerEdition string

    The edition of the ALB instance. Different editions have different limits and billing methods. Valid values: Basic, Standard and StandardWithWaf(Available in v1.193.1+).

    loadBalancerName string

    The name of the resource.

    modificationProtectionConfig LoadBalancerModificationProtectionConfigArgs

    Modify the Protection Configuration. See the following Block modification_protection_config.

    resourceGroupId string

    The ID of the resource group.

    status string

    Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values: NonProtection and ConsoleProtection.

    tags {[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".

    vpcId string

    The ID of the virtual private cloud (VPC) where the ALB instance is deployed.

    zoneMappings LoadBalancerZoneMappingArgs[]

    The zones and vSwitches. You must specify at least two zones. See the following Block zone_mappings.

    access_log_config LoadBalancerAccessLogConfigArgs

    The Access Logging Configuration Structure. See the following Block access_log_config.

    address_allocated_mode str

    The method in which IP addresses are assigned. Valid values: Fixed and Dynamic. Default value: Dynamic.

    address_ip_version str

    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_enabled bool

    The deletion protection enabled. Valid values: true and false. 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 and false.

    load_balancer_billing_config LoadBalancerLoadBalancerBillingConfigArgs

    The configuration of the billing method. See the following Block load_balancer_billing_config.

    load_balancer_edition str

    The edition of the ALB instance. Different editions have different limits and billing methods. Valid values: Basic, Standard and StandardWithWaf(Available in v1.193.1+).

    load_balancer_name str

    The name of the resource.

    modification_protection_config LoadBalancerModificationProtectionConfigArgs

    Modify the Protection Configuration. See the following Block modification_protection_config.

    resource_group_id str

    The ID of the resource group.

    status str

    Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values: NonProtection and ConsoleProtection.

    tags 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[LoadBalancerZoneMappingArgs]

    The zones and vSwitches. You must specify at least two zones. See the following Block zone_mappings.

    accessLogConfig Property Map

    The Access Logging Configuration Structure. See the following Block access_log_config.

    addressAllocatedMode String

    The method in which IP addresses are assigned. Valid values: Fixed and Dynamic. Default value: Dynamic.

    addressIpVersion String

    The IP version. Valid values: Ipv4, DualStack.

    addressType 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.

    deletionProtectionEnabled Boolean

    The deletion protection enabled. Valid values: true and false. Default value: false.

    dnsName String

    The domain name of the ALB instance. NOTE: Available in v1.158.0+.

    dryRun Boolean

    Specifies whether to precheck the API request. Valid values: true and false.

    loadBalancerBillingConfig Property Map

    The configuration of the billing method. See the following Block load_balancer_billing_config.

    loadBalancerEdition String

    The edition of the ALB instance. Different editions have different limits and billing methods. Valid values: Basic, Standard and StandardWithWaf(Available in v1.193.1+).

    loadBalancerName String

    The name of the resource.

    modificationProtectionConfig Property Map

    Modify the Protection Configuration. See the following Block modification_protection_config.

    resourceGroupId String

    The ID of the resource group.

    status String

    Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values: NonProtection and ConsoleProtection.

    tags 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".

    vpcId String

    The ID of the virtual private cloud (VPC) where the ALB instance is deployed.

    zoneMappings List<Property Map>

    The zones and vSwitches. You must specify at least two zones. See the following Block zone_mappings.

    Supporting Types

    LoadBalancerAccessLogConfig

    LogProject string

    The log service that access logs are shipped to.

    LogStore string

    The log service that access logs are shipped to.

    LogProject string

    The log service that access logs are shipped to.

    LogStore string

    The log service that access logs are shipped to.

    logProject String

    The log service that access logs are shipped to.

    logStore String

    The log service that access logs are shipped to.

    logProject string

    The log service that access logs are shipped to.

    logStore 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.

    logProject String

    The log service that access logs are shipped to.

    logStore String

    The log service that access logs are shipped to.

    LoadBalancerLoadBalancerBillingConfig

    PayType string

    The billing method of the ALB instance. Valid value: PayAsYouGo.

    PayType string

    The billing method of the ALB instance. Valid value: PayAsYouGo.

    payType String

    The billing method of the ALB instance. Valid value: PayAsYouGo.

    payType string

    The billing method of the ALB instance. Valid value: PayAsYouGo.

    pay_type str

    The billing method of the ALB instance. Valid value: PayAsYouGo.

    payType 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 to ConsoleProtection.

    Status string

    Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values: NonProtection and ConsoleProtection.

    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 to ConsoleProtection.

    Status string

    Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values: NonProtection and ConsoleProtection.

    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 to ConsoleProtection.

    status String

    Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values: NonProtection and ConsoleProtection.

    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 to ConsoleProtection.

    status string

    Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values: NonProtection and ConsoleProtection.

    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 to ConsoleProtection.

    status str

    Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values: NonProtection and ConsoleProtection.

    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 to ConsoleProtection.

    status String

    Specifies whether to enable the configuration read-only mode for the ALB instance. Valid values: NonProtection and ConsoleProtection.

    LoadBalancerZoneMapping

    VswitchId string

    The ID of the vSwitch that corresponds to the zone. Each zone can use only one vSwitch and subnet.

    ZoneId string

    The ID of the zone to which the ALB instance belongs.

    VswitchId string

    The ID of the vSwitch that corresponds to the zone. Each zone can use only one vSwitch and subnet.

    ZoneId string

    The ID of the zone to which the ALB instance belongs.

    vswitchId String

    The ID of the vSwitch that corresponds to the zone. Each zone can use only one vSwitch and subnet.

    zoneId String

    The ID of the zone to which the ALB instance belongs.

    vswitchId string

    The ID of the vSwitch that corresponds to the zone. Each zone can use only one vSwitch and subnet.

    zoneId string

    The ID of the zone to which the ALB instance belongs.

    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.

    vswitchId String

    The ID of the vSwitch that corresponds to the zone. Each zone can use only one vSwitch and subnet.

    zoneId String

    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.

    alicloud logo
    Alibaba Cloud v3.38.0 published on Friday, Jun 2, 2023 by Pulumi