1. Packages
  2. Digitalocean Provider
  3. API Docs
  4. LoadBalancer
DigitalOcean v4.35.0 published on Tuesday, Nov 19, 2024 by Pulumi

digitalocean.LoadBalancer

Explore with Pulumi AI

digitalocean logo
DigitalOcean v4.35.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Provides a DigitalOcean Load Balancer resource. This can be used to create, modify, and delete Load Balancers.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as digitalocean from "@pulumi/digitalocean";
    
    const web = new digitalocean.Droplet("web", {
        name: "web-1",
        size: digitalocean.DropletSlug.DropletS1VCPU1GB,
        image: "ubuntu-18-04-x64",
        region: digitalocean.Region.NYC3,
    });
    const _public = new digitalocean.LoadBalancer("public", {
        name: "loadbalancer-1",
        region: digitalocean.Region.NYC3,
        forwardingRules: [{
            entryPort: 80,
            entryProtocol: "http",
            targetPort: 80,
            targetProtocol: "http",
        }],
        healthcheck: {
            port: 22,
            protocol: "tcp",
        },
        dropletIds: [web.id],
    });
    
    import pulumi
    import pulumi_digitalocean as digitalocean
    
    web = digitalocean.Droplet("web",
        name="web-1",
        size=digitalocean.DropletSlug.DROPLET_S1_VCPU1_GB,
        image="ubuntu-18-04-x64",
        region=digitalocean.Region.NYC3)
    public = digitalocean.LoadBalancer("public",
        name="loadbalancer-1",
        region=digitalocean.Region.NYC3,
        forwarding_rules=[{
            "entry_port": 80,
            "entry_protocol": "http",
            "target_port": 80,
            "target_protocol": "http",
        }],
        healthcheck={
            "port": 22,
            "protocol": "tcp",
        },
        droplet_ids=[web.id])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-digitalocean/sdk/v4/go/digitalocean"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		web, err := digitalocean.NewDroplet(ctx, "web", &digitalocean.DropletArgs{
    			Name:   pulumi.String("web-1"),
    			Size:   pulumi.String(digitalocean.DropletSlugDropletS1VCPU1GB),
    			Image:  pulumi.String("ubuntu-18-04-x64"),
    			Region: pulumi.String(digitalocean.RegionNYC3),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = digitalocean.NewLoadBalancer(ctx, "public", &digitalocean.LoadBalancerArgs{
    			Name:   pulumi.String("loadbalancer-1"),
    			Region: pulumi.String(digitalocean.RegionNYC3),
    			ForwardingRules: digitalocean.LoadBalancerForwardingRuleArray{
    				&digitalocean.LoadBalancerForwardingRuleArgs{
    					EntryPort:      pulumi.Int(80),
    					EntryProtocol:  pulumi.String("http"),
    					TargetPort:     pulumi.Int(80),
    					TargetProtocol: pulumi.String("http"),
    				},
    			},
    			Healthcheck: &digitalocean.LoadBalancerHealthcheckArgs{
    				Port:     pulumi.Int(22),
    				Protocol: pulumi.String("tcp"),
    			},
    			DropletIds: pulumi.IntArray{
    				web.ID(),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using DigitalOcean = Pulumi.DigitalOcean;
    
    return await Deployment.RunAsync(() => 
    {
        var web = new DigitalOcean.Droplet("web", new()
        {
            Name = "web-1",
            Size = DigitalOcean.DropletSlug.DropletS1VCPU1GB,
            Image = "ubuntu-18-04-x64",
            Region = DigitalOcean.Region.NYC3,
        });
    
        var @public = new DigitalOcean.LoadBalancer("public", new()
        {
            Name = "loadbalancer-1",
            Region = DigitalOcean.Region.NYC3,
            ForwardingRules = new[]
            {
                new DigitalOcean.Inputs.LoadBalancerForwardingRuleArgs
                {
                    EntryPort = 80,
                    EntryProtocol = "http",
                    TargetPort = 80,
                    TargetProtocol = "http",
                },
            },
            Healthcheck = new DigitalOcean.Inputs.LoadBalancerHealthcheckArgs
            {
                Port = 22,
                Protocol = "tcp",
            },
            DropletIds = new[]
            {
                web.Id,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.digitalocean.Droplet;
    import com.pulumi.digitalocean.DropletArgs;
    import com.pulumi.digitalocean.LoadBalancer;
    import com.pulumi.digitalocean.LoadBalancerArgs;
    import com.pulumi.digitalocean.inputs.LoadBalancerForwardingRuleArgs;
    import com.pulumi.digitalocean.inputs.LoadBalancerHealthcheckArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var web = new Droplet("web", DropletArgs.builder()
                .name("web-1")
                .size("s-1vcpu-1gb")
                .image("ubuntu-18-04-x64")
                .region("nyc3")
                .build());
    
            var public_ = new LoadBalancer("public", LoadBalancerArgs.builder()
                .name("loadbalancer-1")
                .region("nyc3")
                .forwardingRules(LoadBalancerForwardingRuleArgs.builder()
                    .entryPort(80)
                    .entryProtocol("http")
                    .targetPort(80)
                    .targetProtocol("http")
                    .build())
                .healthcheck(LoadBalancerHealthcheckArgs.builder()
                    .port(22)
                    .protocol("tcp")
                    .build())
                .dropletIds(web.id())
                .build());
    
        }
    }
    
    resources:
      web:
        type: digitalocean:Droplet
        properties:
          name: web-1
          size: s-1vcpu-1gb
          image: ubuntu-18-04-x64
          region: nyc3
      public:
        type: digitalocean:LoadBalancer
        properties:
          name: loadbalancer-1
          region: nyc3
          forwardingRules:
            - entryPort: 80
              entryProtocol: http
              targetPort: 80
              targetProtocol: http
          healthcheck:
            port: 22
            protocol: tcp
          dropletIds:
            - ${web.id}
    

    When managing certificates attached to the load balancer, make sure to add the create_before_destroy lifecycle property in order to ensure the certificate is correctly updated when changed. The order of operations will then be: Create new certificate > Update loadbalancer with new certificate -> Delete old certificate. When doing so, you must also change the name of the certificate, as there cannot be multiple certificates with the same name in an account.

    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: Optional[LoadBalancerArgs] = None,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def LoadBalancer(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     algorithm: Optional[Union[str, Algorithm]] = None,
                     disable_lets_encrypt_dns_records: Optional[bool] = None,
                     domains: Optional[Sequence[LoadBalancerDomainArgs]] = None,
                     droplet_ids: Optional[Sequence[int]] = None,
                     droplet_tag: Optional[str] = None,
                     enable_backend_keepalive: Optional[bool] = None,
                     enable_proxy_protocol: Optional[bool] = None,
                     firewall: Optional[LoadBalancerFirewallArgs] = None,
                     forwarding_rules: Optional[Sequence[LoadBalancerForwardingRuleArgs]] = None,
                     glb_settings: Optional[LoadBalancerGlbSettingsArgs] = None,
                     healthcheck: Optional[LoadBalancerHealthcheckArgs] = None,
                     http_idle_timeout_seconds: Optional[int] = None,
                     name: Optional[str] = None,
                     network: Optional[str] = None,
                     project_id: Optional[str] = None,
                     redirect_http_to_https: Optional[bool] = None,
                     region: Optional[Union[str, Region]] = None,
                     size: Optional[str] = None,
                     size_unit: Optional[int] = None,
                     sticky_sessions: Optional[LoadBalancerStickySessionsArgs] = None,
                     target_load_balancer_ids: Optional[Sequence[str]] = None,
                     type: Optional[str] = None,
                     vpc_uuid: Optional[str] = None)
    func NewLoadBalancer(ctx *Context, name string, args *LoadBalancerArgs, opts ...ResourceOption) (*LoadBalancer, error)
    public LoadBalancer(string name, LoadBalancerArgs? args = null, CustomResourceOptions? opts = null)
    public LoadBalancer(String name, LoadBalancerArgs args)
    public LoadBalancer(String name, LoadBalancerArgs args, CustomResourceOptions options)
    
    type: digitalocean: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 DigitalOcean.LoadBalancer("loadBalancerResource", new()
    {
        DisableLetsEncryptDnsRecords = false,
        Domains = new[]
        {
            new DigitalOcean.Inputs.LoadBalancerDomainArgs
            {
                Name = "string",
                CertificateName = "string",
                IsManaged = false,
                SslValidationErrorReasons = new[]
                {
                    "string",
                },
                VerificationErrorReasons = new[]
                {
                    "string",
                },
            },
        },
        DropletIds = new[]
        {
            0,
        },
        DropletTag = "string",
        EnableBackendKeepalive = false,
        EnableProxyProtocol = false,
        Firewall = new DigitalOcean.Inputs.LoadBalancerFirewallArgs
        {
            Allows = new[]
            {
                "string",
            },
            Denies = new[]
            {
                "string",
            },
        },
        ForwardingRules = new[]
        {
            new DigitalOcean.Inputs.LoadBalancerForwardingRuleArgs
            {
                EntryPort = 0,
                EntryProtocol = "string",
                TargetPort = 0,
                TargetProtocol = "string",
                CertificateName = "string",
                TlsPassthrough = false,
            },
        },
        GlbSettings = new DigitalOcean.Inputs.LoadBalancerGlbSettingsArgs
        {
            TargetPort = 0,
            TargetProtocol = "string",
            Cdn = new DigitalOcean.Inputs.LoadBalancerGlbSettingsCdnArgs
            {
                IsEnabled = false,
            },
            FailoverThreshold = 0,
            RegionPriorities = 
            {
                { "string", 0 },
            },
        },
        Healthcheck = new DigitalOcean.Inputs.LoadBalancerHealthcheckArgs
        {
            Port = 0,
            Protocol = "string",
            CheckIntervalSeconds = 0,
            HealthyThreshold = 0,
            Path = "string",
            ResponseTimeoutSeconds = 0,
            UnhealthyThreshold = 0,
        },
        HttpIdleTimeoutSeconds = 0,
        Name = "string",
        Network = "string",
        ProjectId = "string",
        RedirectHttpToHttps = false,
        Region = "string",
        Size = "string",
        SizeUnit = 0,
        StickySessions = new DigitalOcean.Inputs.LoadBalancerStickySessionsArgs
        {
            CookieName = "string",
            CookieTtlSeconds = 0,
            Type = "string",
        },
        TargetLoadBalancerIds = new[]
        {
            "string",
        },
        Type = "string",
        VpcUuid = "string",
    });
    
    example, err := digitalocean.NewLoadBalancer(ctx, "loadBalancerResource", &digitalocean.LoadBalancerArgs{
    	DisableLetsEncryptDnsRecords: pulumi.Bool(false),
    	Domains: digitalocean.LoadBalancerDomainArray{
    		&digitalocean.LoadBalancerDomainArgs{
    			Name:            pulumi.String("string"),
    			CertificateName: pulumi.String("string"),
    			IsManaged:       pulumi.Bool(false),
    			SslValidationErrorReasons: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			VerificationErrorReasons: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	DropletIds: pulumi.IntArray{
    		pulumi.Int(0),
    	},
    	DropletTag:             pulumi.String("string"),
    	EnableBackendKeepalive: pulumi.Bool(false),
    	EnableProxyProtocol:    pulumi.Bool(false),
    	Firewall: &digitalocean.LoadBalancerFirewallArgs{
    		Allows: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Denies: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	ForwardingRules: digitalocean.LoadBalancerForwardingRuleArray{
    		&digitalocean.LoadBalancerForwardingRuleArgs{
    			EntryPort:       pulumi.Int(0),
    			EntryProtocol:   pulumi.String("string"),
    			TargetPort:      pulumi.Int(0),
    			TargetProtocol:  pulumi.String("string"),
    			CertificateName: pulumi.String("string"),
    			TlsPassthrough:  pulumi.Bool(false),
    		},
    	},
    	GlbSettings: &digitalocean.LoadBalancerGlbSettingsArgs{
    		TargetPort:     pulumi.Int(0),
    		TargetProtocol: pulumi.String("string"),
    		Cdn: &digitalocean.LoadBalancerGlbSettingsCdnArgs{
    			IsEnabled: pulumi.Bool(false),
    		},
    		FailoverThreshold: pulumi.Int(0),
    		RegionPriorities: pulumi.IntMap{
    			"string": pulumi.Int(0),
    		},
    	},
    	Healthcheck: &digitalocean.LoadBalancerHealthcheckArgs{
    		Port:                   pulumi.Int(0),
    		Protocol:               pulumi.String("string"),
    		CheckIntervalSeconds:   pulumi.Int(0),
    		HealthyThreshold:       pulumi.Int(0),
    		Path:                   pulumi.String("string"),
    		ResponseTimeoutSeconds: pulumi.Int(0),
    		UnhealthyThreshold:     pulumi.Int(0),
    	},
    	HttpIdleTimeoutSeconds: pulumi.Int(0),
    	Name:                   pulumi.String("string"),
    	Network:                pulumi.String("string"),
    	ProjectId:              pulumi.String("string"),
    	RedirectHttpToHttps:    pulumi.Bool(false),
    	Region:                 pulumi.String("string"),
    	Size:                   pulumi.String("string"),
    	SizeUnit:               pulumi.Int(0),
    	StickySessions: &digitalocean.LoadBalancerStickySessionsArgs{
    		CookieName:       pulumi.String("string"),
    		CookieTtlSeconds: pulumi.Int(0),
    		Type:             pulumi.String("string"),
    	},
    	TargetLoadBalancerIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Type:    pulumi.String("string"),
    	VpcUuid: pulumi.String("string"),
    })
    
    var loadBalancerResource = new LoadBalancer("loadBalancerResource", LoadBalancerArgs.builder()
        .disableLetsEncryptDnsRecords(false)
        .domains(LoadBalancerDomainArgs.builder()
            .name("string")
            .certificateName("string")
            .isManaged(false)
            .sslValidationErrorReasons("string")
            .verificationErrorReasons("string")
            .build())
        .dropletIds(0)
        .dropletTag("string")
        .enableBackendKeepalive(false)
        .enableProxyProtocol(false)
        .firewall(LoadBalancerFirewallArgs.builder()
            .allows("string")
            .denies("string")
            .build())
        .forwardingRules(LoadBalancerForwardingRuleArgs.builder()
            .entryPort(0)
            .entryProtocol("string")
            .targetPort(0)
            .targetProtocol("string")
            .certificateName("string")
            .tlsPassthrough(false)
            .build())
        .glbSettings(LoadBalancerGlbSettingsArgs.builder()
            .targetPort(0)
            .targetProtocol("string")
            .cdn(LoadBalancerGlbSettingsCdnArgs.builder()
                .isEnabled(false)
                .build())
            .failoverThreshold(0)
            .regionPriorities(Map.of("string", 0))
            .build())
        .healthcheck(LoadBalancerHealthcheckArgs.builder()
            .port(0)
            .protocol("string")
            .checkIntervalSeconds(0)
            .healthyThreshold(0)
            .path("string")
            .responseTimeoutSeconds(0)
            .unhealthyThreshold(0)
            .build())
        .httpIdleTimeoutSeconds(0)
        .name("string")
        .network("string")
        .projectId("string")
        .redirectHttpToHttps(false)
        .region("string")
        .size("string")
        .sizeUnit(0)
        .stickySessions(LoadBalancerStickySessionsArgs.builder()
            .cookieName("string")
            .cookieTtlSeconds(0)
            .type("string")
            .build())
        .targetLoadBalancerIds("string")
        .type("string")
        .vpcUuid("string")
        .build());
    
    load_balancer_resource = digitalocean.LoadBalancer("loadBalancerResource",
        disable_lets_encrypt_dns_records=False,
        domains=[{
            "name": "string",
            "certificate_name": "string",
            "is_managed": False,
            "ssl_validation_error_reasons": ["string"],
            "verification_error_reasons": ["string"],
        }],
        droplet_ids=[0],
        droplet_tag="string",
        enable_backend_keepalive=False,
        enable_proxy_protocol=False,
        firewall={
            "allows": ["string"],
            "denies": ["string"],
        },
        forwarding_rules=[{
            "entry_port": 0,
            "entry_protocol": "string",
            "target_port": 0,
            "target_protocol": "string",
            "certificate_name": "string",
            "tls_passthrough": False,
        }],
        glb_settings={
            "target_port": 0,
            "target_protocol": "string",
            "cdn": {
                "is_enabled": False,
            },
            "failover_threshold": 0,
            "region_priorities": {
                "string": 0,
            },
        },
        healthcheck={
            "port": 0,
            "protocol": "string",
            "check_interval_seconds": 0,
            "healthy_threshold": 0,
            "path": "string",
            "response_timeout_seconds": 0,
            "unhealthy_threshold": 0,
        },
        http_idle_timeout_seconds=0,
        name="string",
        network="string",
        project_id="string",
        redirect_http_to_https=False,
        region="string",
        size="string",
        size_unit=0,
        sticky_sessions={
            "cookie_name": "string",
            "cookie_ttl_seconds": 0,
            "type": "string",
        },
        target_load_balancer_ids=["string"],
        type="string",
        vpc_uuid="string")
    
    const loadBalancerResource = new digitalocean.LoadBalancer("loadBalancerResource", {
        disableLetsEncryptDnsRecords: false,
        domains: [{
            name: "string",
            certificateName: "string",
            isManaged: false,
            sslValidationErrorReasons: ["string"],
            verificationErrorReasons: ["string"],
        }],
        dropletIds: [0],
        dropletTag: "string",
        enableBackendKeepalive: false,
        enableProxyProtocol: false,
        firewall: {
            allows: ["string"],
            denies: ["string"],
        },
        forwardingRules: [{
            entryPort: 0,
            entryProtocol: "string",
            targetPort: 0,
            targetProtocol: "string",
            certificateName: "string",
            tlsPassthrough: false,
        }],
        glbSettings: {
            targetPort: 0,
            targetProtocol: "string",
            cdn: {
                isEnabled: false,
            },
            failoverThreshold: 0,
            regionPriorities: {
                string: 0,
            },
        },
        healthcheck: {
            port: 0,
            protocol: "string",
            checkIntervalSeconds: 0,
            healthyThreshold: 0,
            path: "string",
            responseTimeoutSeconds: 0,
            unhealthyThreshold: 0,
        },
        httpIdleTimeoutSeconds: 0,
        name: "string",
        network: "string",
        projectId: "string",
        redirectHttpToHttps: false,
        region: "string",
        size: "string",
        sizeUnit: 0,
        stickySessions: {
            cookieName: "string",
            cookieTtlSeconds: 0,
            type: "string",
        },
        targetLoadBalancerIds: ["string"],
        type: "string",
        vpcUuid: "string",
    });
    
    type: digitalocean:LoadBalancer
    properties:
        disableLetsEncryptDnsRecords: false
        domains:
            - certificateName: string
              isManaged: false
              name: string
              sslValidationErrorReasons:
                - string
              verificationErrorReasons:
                - string
        dropletIds:
            - 0
        dropletTag: string
        enableBackendKeepalive: false
        enableProxyProtocol: false
        firewall:
            allows:
                - string
            denies:
                - string
        forwardingRules:
            - certificateName: string
              entryPort: 0
              entryProtocol: string
              targetPort: 0
              targetProtocol: string
              tlsPassthrough: false
        glbSettings:
            cdn:
                isEnabled: false
            failoverThreshold: 0
            regionPriorities:
                string: 0
            targetPort: 0
            targetProtocol: string
        healthcheck:
            checkIntervalSeconds: 0
            healthyThreshold: 0
            path: string
            port: 0
            protocol: string
            responseTimeoutSeconds: 0
            unhealthyThreshold: 0
        httpIdleTimeoutSeconds: 0
        name: string
        network: string
        projectId: string
        redirectHttpToHttps: false
        region: string
        size: string
        sizeUnit: 0
        stickySessions:
            cookieName: string
            cookieTtlSeconds: 0
            type: string
        targetLoadBalancerIds:
            - string
        type: string
        vpcUuid: 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:

    Algorithm string | Pulumi.DigitalOcean.Algorithm
    Deprecated This field has been deprecated. You can no longer specify an algorithm for load balancers. or least_connections. The default value is round_robin.

    Deprecated: This field has been deprecated. You can no longer specify an algorithm for load balancers.

    DisableLetsEncryptDnsRecords bool
    A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer. Default value is false.
    Domains List<Pulumi.DigitalOcean.Inputs.LoadBalancerDomain>
    A list of domains required to ingress traffic to a Global Load Balancer. The domains block is documented below.
    DropletIds List<int>
    A list of the IDs of each droplet to be attached to the Load Balancer.
    DropletTag string
    The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.
    EnableBackendKeepalive bool
    A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets. Default value is false.
    EnableProxyProtocol bool
    A boolean value indicating whether PROXY Protocol should be used to pass information from connecting client requests to the backend service. Default value is false.
    Firewall Pulumi.DigitalOcean.Inputs.LoadBalancerFirewall
    A block containing rules for allowing/denying traffic to the Load Balancer. The firewall block is documented below. Only 1 firewall is allowed.
    ForwardingRules List<Pulumi.DigitalOcean.Inputs.LoadBalancerForwardingRule>
    A list of forwarding_rule to be assigned to the Load Balancer. The forwarding_rule block is documented below.
    GlbSettings Pulumi.DigitalOcean.Inputs.LoadBalancerGlbSettings
    A block containing glb_settings required to define target rules for a Global Load Balancer. The glb_settings block is documented below.
    Healthcheck Pulumi.DigitalOcean.Inputs.LoadBalancerHealthcheck
    A healthcheck block to be assigned to the Load Balancer. The healthcheck block is documented below. Only 1 healthcheck is allowed.
    HttpIdleTimeoutSeconds int
    Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
    Name string
    The Load Balancer name
    Network string
    The type of network the Load Balancer is accessible from. It must be either of INTERNAL or EXTERNAL. Defaults to EXTERNAL. NOTE: non-EXTERNAL type may be part of closed beta feature and not available for public use.
    ProjectId string
    The ID of the project that the load balancer is associated with. If no ID is provided at creation, the load balancer associates with the user's default project.
    RedirectHttpToHttps bool
    A boolean value indicating whether HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443. Default value is false.
    Region string | Pulumi.DigitalOcean.Region
    The region to start in
    Size string
    The size of the Load Balancer. It must be either lb-small, lb-medium, or lb-large. Defaults to lb-small. Only one of size or size_unit may be provided.
    SizeUnit int
    The size of the Load Balancer. It must be in the range (1, 100). Defaults to 1. Only one of size or size_unit may be provided.
    StickySessions Pulumi.DigitalOcean.Inputs.LoadBalancerStickySessions
    A sticky_sessions block to be assigned to the Load Balancer. The sticky_sessions block is documented below. Only 1 sticky_sessions block is allowed.
    TargetLoadBalancerIds List<string>
    A list of Load Balancer IDs to be attached behind a Global Load Balancer.
    Type string
    The type of the Load Balancer. It must be either of REGIONAL or GLOBAL. Defaults to REGIONAL. NOTE: non-REGIONAL/GLOBAL type may be part of closed beta feature and not available for public use.
    VpcUuid string
    The ID of the VPC where the load balancer will be located.
    Algorithm string | Algorithm
    Deprecated This field has been deprecated. You can no longer specify an algorithm for load balancers. or least_connections. The default value is round_robin.

    Deprecated: This field has been deprecated. You can no longer specify an algorithm for load balancers.

    DisableLetsEncryptDnsRecords bool
    A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer. Default value is false.
    Domains []LoadBalancerDomainArgs
    A list of domains required to ingress traffic to a Global Load Balancer. The domains block is documented below.
    DropletIds []int
    A list of the IDs of each droplet to be attached to the Load Balancer.
    DropletTag string
    The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.
    EnableBackendKeepalive bool
    A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets. Default value is false.
    EnableProxyProtocol bool
    A boolean value indicating whether PROXY Protocol should be used to pass information from connecting client requests to the backend service. Default value is false.
    Firewall LoadBalancerFirewallArgs
    A block containing rules for allowing/denying traffic to the Load Balancer. The firewall block is documented below. Only 1 firewall is allowed.
    ForwardingRules []LoadBalancerForwardingRuleArgs
    A list of forwarding_rule to be assigned to the Load Balancer. The forwarding_rule block is documented below.
    GlbSettings LoadBalancerGlbSettingsArgs
    A block containing glb_settings required to define target rules for a Global Load Balancer. The glb_settings block is documented below.
    Healthcheck LoadBalancerHealthcheckArgs
    A healthcheck block to be assigned to the Load Balancer. The healthcheck block is documented below. Only 1 healthcheck is allowed.
    HttpIdleTimeoutSeconds int
    Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
    Name string
    The Load Balancer name
    Network string
    The type of network the Load Balancer is accessible from. It must be either of INTERNAL or EXTERNAL. Defaults to EXTERNAL. NOTE: non-EXTERNAL type may be part of closed beta feature and not available for public use.
    ProjectId string
    The ID of the project that the load balancer is associated with. If no ID is provided at creation, the load balancer associates with the user's default project.
    RedirectHttpToHttps bool
    A boolean value indicating whether HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443. Default value is false.
    Region string | Region
    The region to start in
    Size string
    The size of the Load Balancer. It must be either lb-small, lb-medium, or lb-large. Defaults to lb-small. Only one of size or size_unit may be provided.
    SizeUnit int
    The size of the Load Balancer. It must be in the range (1, 100). Defaults to 1. Only one of size or size_unit may be provided.
    StickySessions LoadBalancerStickySessionsArgs
    A sticky_sessions block to be assigned to the Load Balancer. The sticky_sessions block is documented below. Only 1 sticky_sessions block is allowed.
    TargetLoadBalancerIds []string
    A list of Load Balancer IDs to be attached behind a Global Load Balancer.
    Type string
    The type of the Load Balancer. It must be either of REGIONAL or GLOBAL. Defaults to REGIONAL. NOTE: non-REGIONAL/GLOBAL type may be part of closed beta feature and not available for public use.
    VpcUuid string
    The ID of the VPC where the load balancer will be located.
    algorithm String | Algorithm
    Deprecated This field has been deprecated. You can no longer specify an algorithm for load balancers. or least_connections. The default value is round_robin.

    Deprecated: This field has been deprecated. You can no longer specify an algorithm for load balancers.

    disableLetsEncryptDnsRecords Boolean
    A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer. Default value is false.
    domains List<LoadBalancerDomain>
    A list of domains required to ingress traffic to a Global Load Balancer. The domains block is documented below.
    dropletIds List<Integer>
    A list of the IDs of each droplet to be attached to the Load Balancer.
    dropletTag String
    The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.
    enableBackendKeepalive Boolean
    A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets. Default value is false.
    enableProxyProtocol Boolean
    A boolean value indicating whether PROXY Protocol should be used to pass information from connecting client requests to the backend service. Default value is false.
    firewall LoadBalancerFirewall
    A block containing rules for allowing/denying traffic to the Load Balancer. The firewall block is documented below. Only 1 firewall is allowed.
    forwardingRules List<LoadBalancerForwardingRule>
    A list of forwarding_rule to be assigned to the Load Balancer. The forwarding_rule block is documented below.
    glbSettings LoadBalancerGlbSettings
    A block containing glb_settings required to define target rules for a Global Load Balancer. The glb_settings block is documented below.
    healthcheck LoadBalancerHealthcheck
    A healthcheck block to be assigned to the Load Balancer. The healthcheck block is documented below. Only 1 healthcheck is allowed.
    httpIdleTimeoutSeconds Integer
    Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
    name String
    The Load Balancer name
    network String
    The type of network the Load Balancer is accessible from. It must be either of INTERNAL or EXTERNAL. Defaults to EXTERNAL. NOTE: non-EXTERNAL type may be part of closed beta feature and not available for public use.
    projectId String
    The ID of the project that the load balancer is associated with. If no ID is provided at creation, the load balancer associates with the user's default project.
    redirectHttpToHttps Boolean
    A boolean value indicating whether HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443. Default value is false.
    region String | Region
    The region to start in
    size String
    The size of the Load Balancer. It must be either lb-small, lb-medium, or lb-large. Defaults to lb-small. Only one of size or size_unit may be provided.
    sizeUnit Integer
    The size of the Load Balancer. It must be in the range (1, 100). Defaults to 1. Only one of size or size_unit may be provided.
    stickySessions LoadBalancerStickySessions
    A sticky_sessions block to be assigned to the Load Balancer. The sticky_sessions block is documented below. Only 1 sticky_sessions block is allowed.
    targetLoadBalancerIds List<String>
    A list of Load Balancer IDs to be attached behind a Global Load Balancer.
    type String
    The type of the Load Balancer. It must be either of REGIONAL or GLOBAL. Defaults to REGIONAL. NOTE: non-REGIONAL/GLOBAL type may be part of closed beta feature and not available for public use.
    vpcUuid String
    The ID of the VPC where the load balancer will be located.
    algorithm string | Algorithm
    Deprecated This field has been deprecated. You can no longer specify an algorithm for load balancers. or least_connections. The default value is round_robin.

    Deprecated: This field has been deprecated. You can no longer specify an algorithm for load balancers.

    disableLetsEncryptDnsRecords boolean
    A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer. Default value is false.
    domains LoadBalancerDomain[]
    A list of domains required to ingress traffic to a Global Load Balancer. The domains block is documented below.
    dropletIds number[]
    A list of the IDs of each droplet to be attached to the Load Balancer.
    dropletTag string
    The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.
    enableBackendKeepalive boolean
    A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets. Default value is false.
    enableProxyProtocol boolean
    A boolean value indicating whether PROXY Protocol should be used to pass information from connecting client requests to the backend service. Default value is false.
    firewall LoadBalancerFirewall
    A block containing rules for allowing/denying traffic to the Load Balancer. The firewall block is documented below. Only 1 firewall is allowed.
    forwardingRules LoadBalancerForwardingRule[]
    A list of forwarding_rule to be assigned to the Load Balancer. The forwarding_rule block is documented below.
    glbSettings LoadBalancerGlbSettings
    A block containing glb_settings required to define target rules for a Global Load Balancer. The glb_settings block is documented below.
    healthcheck LoadBalancerHealthcheck
    A healthcheck block to be assigned to the Load Balancer. The healthcheck block is documented below. Only 1 healthcheck is allowed.
    httpIdleTimeoutSeconds number
    Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
    name string
    The Load Balancer name
    network string
    The type of network the Load Balancer is accessible from. It must be either of INTERNAL or EXTERNAL. Defaults to EXTERNAL. NOTE: non-EXTERNAL type may be part of closed beta feature and not available for public use.
    projectId string
    The ID of the project that the load balancer is associated with. If no ID is provided at creation, the load balancer associates with the user's default project.
    redirectHttpToHttps boolean
    A boolean value indicating whether HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443. Default value is false.
    region string | Region
    The region to start in
    size string
    The size of the Load Balancer. It must be either lb-small, lb-medium, or lb-large. Defaults to lb-small. Only one of size or size_unit may be provided.
    sizeUnit number
    The size of the Load Balancer. It must be in the range (1, 100). Defaults to 1. Only one of size or size_unit may be provided.
    stickySessions LoadBalancerStickySessions
    A sticky_sessions block to be assigned to the Load Balancer. The sticky_sessions block is documented below. Only 1 sticky_sessions block is allowed.
    targetLoadBalancerIds string[]
    A list of Load Balancer IDs to be attached behind a Global Load Balancer.
    type string
    The type of the Load Balancer. It must be either of REGIONAL or GLOBAL. Defaults to REGIONAL. NOTE: non-REGIONAL/GLOBAL type may be part of closed beta feature and not available for public use.
    vpcUuid string
    The ID of the VPC where the load balancer will be located.
    algorithm str | Algorithm
    Deprecated This field has been deprecated. You can no longer specify an algorithm for load balancers. or least_connections. The default value is round_robin.

    Deprecated: This field has been deprecated. You can no longer specify an algorithm for load balancers.

    disable_lets_encrypt_dns_records bool
    A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer. Default value is false.
    domains Sequence[LoadBalancerDomainArgs]
    A list of domains required to ingress traffic to a Global Load Balancer. The domains block is documented below.
    droplet_ids Sequence[int]
    A list of the IDs of each droplet to be attached to the Load Balancer.
    droplet_tag str
    The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.
    enable_backend_keepalive bool
    A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets. Default value is false.
    enable_proxy_protocol bool
    A boolean value indicating whether PROXY Protocol should be used to pass information from connecting client requests to the backend service. Default value is false.
    firewall LoadBalancerFirewallArgs
    A block containing rules for allowing/denying traffic to the Load Balancer. The firewall block is documented below. Only 1 firewall is allowed.
    forwarding_rules Sequence[LoadBalancerForwardingRuleArgs]
    A list of forwarding_rule to be assigned to the Load Balancer. The forwarding_rule block is documented below.
    glb_settings LoadBalancerGlbSettingsArgs
    A block containing glb_settings required to define target rules for a Global Load Balancer. The glb_settings block is documented below.
    healthcheck LoadBalancerHealthcheckArgs
    A healthcheck block to be assigned to the Load Balancer. The healthcheck block is documented below. Only 1 healthcheck is allowed.
    http_idle_timeout_seconds int
    Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
    name str
    The Load Balancer name
    network str
    The type of network the Load Balancer is accessible from. It must be either of INTERNAL or EXTERNAL. Defaults to EXTERNAL. NOTE: non-EXTERNAL type may be part of closed beta feature and not available for public use.
    project_id str
    The ID of the project that the load balancer is associated with. If no ID is provided at creation, the load balancer associates with the user's default project.
    redirect_http_to_https bool
    A boolean value indicating whether HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443. Default value is false.
    region str | Region
    The region to start in
    size str
    The size of the Load Balancer. It must be either lb-small, lb-medium, or lb-large. Defaults to lb-small. Only one of size or size_unit may be provided.
    size_unit int
    The size of the Load Balancer. It must be in the range (1, 100). Defaults to 1. Only one of size or size_unit may be provided.
    sticky_sessions LoadBalancerStickySessionsArgs
    A sticky_sessions block to be assigned to the Load Balancer. The sticky_sessions block is documented below. Only 1 sticky_sessions block is allowed.
    target_load_balancer_ids Sequence[str]
    A list of Load Balancer IDs to be attached behind a Global Load Balancer.
    type str
    The type of the Load Balancer. It must be either of REGIONAL or GLOBAL. Defaults to REGIONAL. NOTE: non-REGIONAL/GLOBAL type may be part of closed beta feature and not available for public use.
    vpc_uuid str
    The ID of the VPC where the load balancer will be located.
    algorithm String | "round_robin" | "least_connections"
    Deprecated This field has been deprecated. You can no longer specify an algorithm for load balancers. or least_connections. The default value is round_robin.

    Deprecated: This field has been deprecated. You can no longer specify an algorithm for load balancers.

    disableLetsEncryptDnsRecords Boolean
    A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer. Default value is false.
    domains List<Property Map>
    A list of domains required to ingress traffic to a Global Load Balancer. The domains block is documented below.
    dropletIds List<Number>
    A list of the IDs of each droplet to be attached to the Load Balancer.
    dropletTag String
    The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.
    enableBackendKeepalive Boolean
    A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets. Default value is false.
    enableProxyProtocol Boolean
    A boolean value indicating whether PROXY Protocol should be used to pass information from connecting client requests to the backend service. Default value is false.
    firewall Property Map
    A block containing rules for allowing/denying traffic to the Load Balancer. The firewall block is documented below. Only 1 firewall is allowed.
    forwardingRules List<Property Map>
    A list of forwarding_rule to be assigned to the Load Balancer. The forwarding_rule block is documented below.
    glbSettings Property Map
    A block containing glb_settings required to define target rules for a Global Load Balancer. The glb_settings block is documented below.
    healthcheck Property Map
    A healthcheck block to be assigned to the Load Balancer. The healthcheck block is documented below. Only 1 healthcheck is allowed.
    httpIdleTimeoutSeconds Number
    Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
    name String
    The Load Balancer name
    network String
    The type of network the Load Balancer is accessible from. It must be either of INTERNAL or EXTERNAL. Defaults to EXTERNAL. NOTE: non-EXTERNAL type may be part of closed beta feature and not available for public use.
    projectId String
    The ID of the project that the load balancer is associated with. If no ID is provided at creation, the load balancer associates with the user's default project.
    redirectHttpToHttps Boolean
    A boolean value indicating whether HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443. Default value is false.
    region String | "nyc1" | "nyc2" | "nyc3" | "sgp1" | "lon1" | "ams2" | "ams3" | "fra1" | "tor1" | "sfo1" | "sfo2" | "sfo3" | "blr1" | "syd1"
    The region to start in
    size String
    The size of the Load Balancer. It must be either lb-small, lb-medium, or lb-large. Defaults to lb-small. Only one of size or size_unit may be provided.
    sizeUnit Number
    The size of the Load Balancer. It must be in the range (1, 100). Defaults to 1. Only one of size or size_unit may be provided.
    stickySessions Property Map
    A sticky_sessions block to be assigned to the Load Balancer. The sticky_sessions block is documented below. Only 1 sticky_sessions block is allowed.
    targetLoadBalancerIds List<String>
    A list of Load Balancer IDs to be attached behind a Global Load Balancer.
    type String
    The type of the Load Balancer. It must be either of REGIONAL or GLOBAL. Defaults to REGIONAL. NOTE: non-REGIONAL/GLOBAL type may be part of closed beta feature and not available for public use.
    vpcUuid String
    The ID of the VPC where the load balancer will be located.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LoadBalancer resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ip string
    The ip of the Load Balancer
    LoadBalancerUrn string
    The uniform resource name for the Load Balancer
    Status string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ip string
    The ip of the Load Balancer
    LoadBalancerUrn string
    The uniform resource name for the Load Balancer
    Status string
    id String
    The provider-assigned unique ID for this managed resource.
    ip String
    The ip of the Load Balancer
    loadBalancerUrn String
    The uniform resource name for the Load Balancer
    status String
    id string
    The provider-assigned unique ID for this managed resource.
    ip string
    The ip of the Load Balancer
    loadBalancerUrn string
    The uniform resource name for the Load Balancer
    status string
    id str
    The provider-assigned unique ID for this managed resource.
    ip str
    The ip of the Load Balancer
    load_balancer_urn str
    The uniform resource name for the Load Balancer
    status str
    id String
    The provider-assigned unique ID for this managed resource.
    ip String
    The ip of the Load Balancer
    loadBalancerUrn String
    The uniform resource name for the Load Balancer
    status String

    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,
            algorithm: Optional[Union[str, Algorithm]] = None,
            disable_lets_encrypt_dns_records: Optional[bool] = None,
            domains: Optional[Sequence[LoadBalancerDomainArgs]] = None,
            droplet_ids: Optional[Sequence[int]] = None,
            droplet_tag: Optional[str] = None,
            enable_backend_keepalive: Optional[bool] = None,
            enable_proxy_protocol: Optional[bool] = None,
            firewall: Optional[LoadBalancerFirewallArgs] = None,
            forwarding_rules: Optional[Sequence[LoadBalancerForwardingRuleArgs]] = None,
            glb_settings: Optional[LoadBalancerGlbSettingsArgs] = None,
            healthcheck: Optional[LoadBalancerHealthcheckArgs] = None,
            http_idle_timeout_seconds: Optional[int] = None,
            ip: Optional[str] = None,
            load_balancer_urn: Optional[str] = None,
            name: Optional[str] = None,
            network: Optional[str] = None,
            project_id: Optional[str] = None,
            redirect_http_to_https: Optional[bool] = None,
            region: Optional[Union[str, Region]] = None,
            size: Optional[str] = None,
            size_unit: Optional[int] = None,
            status: Optional[str] = None,
            sticky_sessions: Optional[LoadBalancerStickySessionsArgs] = None,
            target_load_balancer_ids: Optional[Sequence[str]] = None,
            type: Optional[str] = None,
            vpc_uuid: Optional[str] = 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:
    Algorithm string | Pulumi.DigitalOcean.Algorithm
    Deprecated This field has been deprecated. You can no longer specify an algorithm for load balancers. or least_connections. The default value is round_robin.

    Deprecated: This field has been deprecated. You can no longer specify an algorithm for load balancers.

    DisableLetsEncryptDnsRecords bool
    A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer. Default value is false.
    Domains List<Pulumi.DigitalOcean.Inputs.LoadBalancerDomain>
    A list of domains required to ingress traffic to a Global Load Balancer. The domains block is documented below.
    DropletIds List<int>
    A list of the IDs of each droplet to be attached to the Load Balancer.
    DropletTag string
    The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.
    EnableBackendKeepalive bool
    A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets. Default value is false.
    EnableProxyProtocol bool
    A boolean value indicating whether PROXY Protocol should be used to pass information from connecting client requests to the backend service. Default value is false.
    Firewall Pulumi.DigitalOcean.Inputs.LoadBalancerFirewall
    A block containing rules for allowing/denying traffic to the Load Balancer. The firewall block is documented below. Only 1 firewall is allowed.
    ForwardingRules List<Pulumi.DigitalOcean.Inputs.LoadBalancerForwardingRule>
    A list of forwarding_rule to be assigned to the Load Balancer. The forwarding_rule block is documented below.
    GlbSettings Pulumi.DigitalOcean.Inputs.LoadBalancerGlbSettings
    A block containing glb_settings required to define target rules for a Global Load Balancer. The glb_settings block is documented below.
    Healthcheck Pulumi.DigitalOcean.Inputs.LoadBalancerHealthcheck
    A healthcheck block to be assigned to the Load Balancer. The healthcheck block is documented below. Only 1 healthcheck is allowed.
    HttpIdleTimeoutSeconds int
    Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
    Ip string
    The ip of the Load Balancer
    LoadBalancerUrn string
    The uniform resource name for the Load Balancer
    Name string
    The Load Balancer name
    Network string
    The type of network the Load Balancer is accessible from. It must be either of INTERNAL or EXTERNAL. Defaults to EXTERNAL. NOTE: non-EXTERNAL type may be part of closed beta feature and not available for public use.
    ProjectId string
    The ID of the project that the load balancer is associated with. If no ID is provided at creation, the load balancer associates with the user's default project.
    RedirectHttpToHttps bool
    A boolean value indicating whether HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443. Default value is false.
    Region string | Pulumi.DigitalOcean.Region
    The region to start in
    Size string
    The size of the Load Balancer. It must be either lb-small, lb-medium, or lb-large. Defaults to lb-small. Only one of size or size_unit may be provided.
    SizeUnit int
    The size of the Load Balancer. It must be in the range (1, 100). Defaults to 1. Only one of size or size_unit may be provided.
    Status string
    StickySessions Pulumi.DigitalOcean.Inputs.LoadBalancerStickySessions
    A sticky_sessions block to be assigned to the Load Balancer. The sticky_sessions block is documented below. Only 1 sticky_sessions block is allowed.
    TargetLoadBalancerIds List<string>
    A list of Load Balancer IDs to be attached behind a Global Load Balancer.
    Type string
    The type of the Load Balancer. It must be either of REGIONAL or GLOBAL. Defaults to REGIONAL. NOTE: non-REGIONAL/GLOBAL type may be part of closed beta feature and not available for public use.
    VpcUuid string
    The ID of the VPC where the load balancer will be located.
    Algorithm string | Algorithm
    Deprecated This field has been deprecated. You can no longer specify an algorithm for load balancers. or least_connections. The default value is round_robin.

    Deprecated: This field has been deprecated. You can no longer specify an algorithm for load balancers.

    DisableLetsEncryptDnsRecords bool
    A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer. Default value is false.
    Domains []LoadBalancerDomainArgs
    A list of domains required to ingress traffic to a Global Load Balancer. The domains block is documented below.
    DropletIds []int
    A list of the IDs of each droplet to be attached to the Load Balancer.
    DropletTag string
    The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.
    EnableBackendKeepalive bool
    A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets. Default value is false.
    EnableProxyProtocol bool
    A boolean value indicating whether PROXY Protocol should be used to pass information from connecting client requests to the backend service. Default value is false.
    Firewall LoadBalancerFirewallArgs
    A block containing rules for allowing/denying traffic to the Load Balancer. The firewall block is documented below. Only 1 firewall is allowed.
    ForwardingRules []LoadBalancerForwardingRuleArgs
    A list of forwarding_rule to be assigned to the Load Balancer. The forwarding_rule block is documented below.
    GlbSettings LoadBalancerGlbSettingsArgs
    A block containing glb_settings required to define target rules for a Global Load Balancer. The glb_settings block is documented below.
    Healthcheck LoadBalancerHealthcheckArgs
    A healthcheck block to be assigned to the Load Balancer. The healthcheck block is documented below. Only 1 healthcheck is allowed.
    HttpIdleTimeoutSeconds int
    Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
    Ip string
    The ip of the Load Balancer
    LoadBalancerUrn string
    The uniform resource name for the Load Balancer
    Name string
    The Load Balancer name
    Network string
    The type of network the Load Balancer is accessible from. It must be either of INTERNAL or EXTERNAL. Defaults to EXTERNAL. NOTE: non-EXTERNAL type may be part of closed beta feature and not available for public use.
    ProjectId string
    The ID of the project that the load balancer is associated with. If no ID is provided at creation, the load balancer associates with the user's default project.
    RedirectHttpToHttps bool
    A boolean value indicating whether HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443. Default value is false.
    Region string | Region
    The region to start in
    Size string
    The size of the Load Balancer. It must be either lb-small, lb-medium, or lb-large. Defaults to lb-small. Only one of size or size_unit may be provided.
    SizeUnit int
    The size of the Load Balancer. It must be in the range (1, 100). Defaults to 1. Only one of size or size_unit may be provided.
    Status string
    StickySessions LoadBalancerStickySessionsArgs
    A sticky_sessions block to be assigned to the Load Balancer. The sticky_sessions block is documented below. Only 1 sticky_sessions block is allowed.
    TargetLoadBalancerIds []string
    A list of Load Balancer IDs to be attached behind a Global Load Balancer.
    Type string
    The type of the Load Balancer. It must be either of REGIONAL or GLOBAL. Defaults to REGIONAL. NOTE: non-REGIONAL/GLOBAL type may be part of closed beta feature and not available for public use.
    VpcUuid string
    The ID of the VPC where the load balancer will be located.
    algorithm String | Algorithm
    Deprecated This field has been deprecated. You can no longer specify an algorithm for load balancers. or least_connections. The default value is round_robin.

    Deprecated: This field has been deprecated. You can no longer specify an algorithm for load balancers.

    disableLetsEncryptDnsRecords Boolean
    A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer. Default value is false.
    domains List<LoadBalancerDomain>
    A list of domains required to ingress traffic to a Global Load Balancer. The domains block is documented below.
    dropletIds List<Integer>
    A list of the IDs of each droplet to be attached to the Load Balancer.
    dropletTag String
    The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.
    enableBackendKeepalive Boolean
    A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets. Default value is false.
    enableProxyProtocol Boolean
    A boolean value indicating whether PROXY Protocol should be used to pass information from connecting client requests to the backend service. Default value is false.
    firewall LoadBalancerFirewall
    A block containing rules for allowing/denying traffic to the Load Balancer. The firewall block is documented below. Only 1 firewall is allowed.
    forwardingRules List<LoadBalancerForwardingRule>
    A list of forwarding_rule to be assigned to the Load Balancer. The forwarding_rule block is documented below.
    glbSettings LoadBalancerGlbSettings
    A block containing glb_settings required to define target rules for a Global Load Balancer. The glb_settings block is documented below.
    healthcheck LoadBalancerHealthcheck
    A healthcheck block to be assigned to the Load Balancer. The healthcheck block is documented below. Only 1 healthcheck is allowed.
    httpIdleTimeoutSeconds Integer
    Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
    ip String
    The ip of the Load Balancer
    loadBalancerUrn String
    The uniform resource name for the Load Balancer
    name String
    The Load Balancer name
    network String
    The type of network the Load Balancer is accessible from. It must be either of INTERNAL or EXTERNAL. Defaults to EXTERNAL. NOTE: non-EXTERNAL type may be part of closed beta feature and not available for public use.
    projectId String
    The ID of the project that the load balancer is associated with. If no ID is provided at creation, the load balancer associates with the user's default project.
    redirectHttpToHttps Boolean
    A boolean value indicating whether HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443. Default value is false.
    region String | Region
    The region to start in
    size String
    The size of the Load Balancer. It must be either lb-small, lb-medium, or lb-large. Defaults to lb-small. Only one of size or size_unit may be provided.
    sizeUnit Integer
    The size of the Load Balancer. It must be in the range (1, 100). Defaults to 1. Only one of size or size_unit may be provided.
    status String
    stickySessions LoadBalancerStickySessions
    A sticky_sessions block to be assigned to the Load Balancer. The sticky_sessions block is documented below. Only 1 sticky_sessions block is allowed.
    targetLoadBalancerIds List<String>
    A list of Load Balancer IDs to be attached behind a Global Load Balancer.
    type String
    The type of the Load Balancer. It must be either of REGIONAL or GLOBAL. Defaults to REGIONAL. NOTE: non-REGIONAL/GLOBAL type may be part of closed beta feature and not available for public use.
    vpcUuid String
    The ID of the VPC where the load balancer will be located.
    algorithm string | Algorithm
    Deprecated This field has been deprecated. You can no longer specify an algorithm for load balancers. or least_connections. The default value is round_robin.

    Deprecated: This field has been deprecated. You can no longer specify an algorithm for load balancers.

    disableLetsEncryptDnsRecords boolean
    A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer. Default value is false.
    domains LoadBalancerDomain[]
    A list of domains required to ingress traffic to a Global Load Balancer. The domains block is documented below.
    dropletIds number[]
    A list of the IDs of each droplet to be attached to the Load Balancer.
    dropletTag string
    The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.
    enableBackendKeepalive boolean
    A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets. Default value is false.
    enableProxyProtocol boolean
    A boolean value indicating whether PROXY Protocol should be used to pass information from connecting client requests to the backend service. Default value is false.
    firewall LoadBalancerFirewall
    A block containing rules for allowing/denying traffic to the Load Balancer. The firewall block is documented below. Only 1 firewall is allowed.
    forwardingRules LoadBalancerForwardingRule[]
    A list of forwarding_rule to be assigned to the Load Balancer. The forwarding_rule block is documented below.
    glbSettings LoadBalancerGlbSettings
    A block containing glb_settings required to define target rules for a Global Load Balancer. The glb_settings block is documented below.
    healthcheck LoadBalancerHealthcheck
    A healthcheck block to be assigned to the Load Balancer. The healthcheck block is documented below. Only 1 healthcheck is allowed.
    httpIdleTimeoutSeconds number
    Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
    ip string
    The ip of the Load Balancer
    loadBalancerUrn string
    The uniform resource name for the Load Balancer
    name string
    The Load Balancer name
    network string
    The type of network the Load Balancer is accessible from. It must be either of INTERNAL or EXTERNAL. Defaults to EXTERNAL. NOTE: non-EXTERNAL type may be part of closed beta feature and not available for public use.
    projectId string
    The ID of the project that the load balancer is associated with. If no ID is provided at creation, the load balancer associates with the user's default project.
    redirectHttpToHttps boolean
    A boolean value indicating whether HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443. Default value is false.
    region string | Region
    The region to start in
    size string
    The size of the Load Balancer. It must be either lb-small, lb-medium, or lb-large. Defaults to lb-small. Only one of size or size_unit may be provided.
    sizeUnit number
    The size of the Load Balancer. It must be in the range (1, 100). Defaults to 1. Only one of size or size_unit may be provided.
    status string
    stickySessions LoadBalancerStickySessions
    A sticky_sessions block to be assigned to the Load Balancer. The sticky_sessions block is documented below. Only 1 sticky_sessions block is allowed.
    targetLoadBalancerIds string[]
    A list of Load Balancer IDs to be attached behind a Global Load Balancer.
    type string
    The type of the Load Balancer. It must be either of REGIONAL or GLOBAL. Defaults to REGIONAL. NOTE: non-REGIONAL/GLOBAL type may be part of closed beta feature and not available for public use.
    vpcUuid string
    The ID of the VPC where the load balancer will be located.
    algorithm str | Algorithm
    Deprecated This field has been deprecated. You can no longer specify an algorithm for load balancers. or least_connections. The default value is round_robin.

    Deprecated: This field has been deprecated. You can no longer specify an algorithm for load balancers.

    disable_lets_encrypt_dns_records bool
    A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer. Default value is false.
    domains Sequence[LoadBalancerDomainArgs]
    A list of domains required to ingress traffic to a Global Load Balancer. The domains block is documented below.
    droplet_ids Sequence[int]
    A list of the IDs of each droplet to be attached to the Load Balancer.
    droplet_tag str
    The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.
    enable_backend_keepalive bool
    A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets. Default value is false.
    enable_proxy_protocol bool
    A boolean value indicating whether PROXY Protocol should be used to pass information from connecting client requests to the backend service. Default value is false.
    firewall LoadBalancerFirewallArgs
    A block containing rules for allowing/denying traffic to the Load Balancer. The firewall block is documented below. Only 1 firewall is allowed.
    forwarding_rules Sequence[LoadBalancerForwardingRuleArgs]
    A list of forwarding_rule to be assigned to the Load Balancer. The forwarding_rule block is documented below.
    glb_settings LoadBalancerGlbSettingsArgs
    A block containing glb_settings required to define target rules for a Global Load Balancer. The glb_settings block is documented below.
    healthcheck LoadBalancerHealthcheckArgs
    A healthcheck block to be assigned to the Load Balancer. The healthcheck block is documented below. Only 1 healthcheck is allowed.
    http_idle_timeout_seconds int
    Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
    ip str
    The ip of the Load Balancer
    load_balancer_urn str
    The uniform resource name for the Load Balancer
    name str
    The Load Balancer name
    network str
    The type of network the Load Balancer is accessible from. It must be either of INTERNAL or EXTERNAL. Defaults to EXTERNAL. NOTE: non-EXTERNAL type may be part of closed beta feature and not available for public use.
    project_id str
    The ID of the project that the load balancer is associated with. If no ID is provided at creation, the load balancer associates with the user's default project.
    redirect_http_to_https bool
    A boolean value indicating whether HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443. Default value is false.
    region str | Region
    The region to start in
    size str
    The size of the Load Balancer. It must be either lb-small, lb-medium, or lb-large. Defaults to lb-small. Only one of size or size_unit may be provided.
    size_unit int
    The size of the Load Balancer. It must be in the range (1, 100). Defaults to 1. Only one of size or size_unit may be provided.
    status str
    sticky_sessions LoadBalancerStickySessionsArgs
    A sticky_sessions block to be assigned to the Load Balancer. The sticky_sessions block is documented below. Only 1 sticky_sessions block is allowed.
    target_load_balancer_ids Sequence[str]
    A list of Load Balancer IDs to be attached behind a Global Load Balancer.
    type str
    The type of the Load Balancer. It must be either of REGIONAL or GLOBAL. Defaults to REGIONAL. NOTE: non-REGIONAL/GLOBAL type may be part of closed beta feature and not available for public use.
    vpc_uuid str
    The ID of the VPC where the load balancer will be located.
    algorithm String | "round_robin" | "least_connections"
    Deprecated This field has been deprecated. You can no longer specify an algorithm for load balancers. or least_connections. The default value is round_robin.

    Deprecated: This field has been deprecated. You can no longer specify an algorithm for load balancers.

    disableLetsEncryptDnsRecords Boolean
    A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer. Default value is false.
    domains List<Property Map>
    A list of domains required to ingress traffic to a Global Load Balancer. The domains block is documented below.
    dropletIds List<Number>
    A list of the IDs of each droplet to be attached to the Load Balancer.
    dropletTag String
    The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.
    enableBackendKeepalive Boolean
    A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets. Default value is false.
    enableProxyProtocol Boolean
    A boolean value indicating whether PROXY Protocol should be used to pass information from connecting client requests to the backend service. Default value is false.
    firewall Property Map
    A block containing rules for allowing/denying traffic to the Load Balancer. The firewall block is documented below. Only 1 firewall is allowed.
    forwardingRules List<Property Map>
    A list of forwarding_rule to be assigned to the Load Balancer. The forwarding_rule block is documented below.
    glbSettings Property Map
    A block containing glb_settings required to define target rules for a Global Load Balancer. The glb_settings block is documented below.
    healthcheck Property Map
    A healthcheck block to be assigned to the Load Balancer. The healthcheck block is documented below. Only 1 healthcheck is allowed.
    httpIdleTimeoutSeconds Number
    Specifies the idle timeout for HTTPS connections on the load balancer in seconds.
    ip String
    The ip of the Load Balancer
    loadBalancerUrn String
    The uniform resource name for the Load Balancer
    name String
    The Load Balancer name
    network String
    The type of network the Load Balancer is accessible from. It must be either of INTERNAL or EXTERNAL. Defaults to EXTERNAL. NOTE: non-EXTERNAL type may be part of closed beta feature and not available for public use.
    projectId String
    The ID of the project that the load balancer is associated with. If no ID is provided at creation, the load balancer associates with the user's default project.
    redirectHttpToHttps Boolean
    A boolean value indicating whether HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443. Default value is false.
    region String | "nyc1" | "nyc2" | "nyc3" | "sgp1" | "lon1" | "ams2" | "ams3" | "fra1" | "tor1" | "sfo1" | "sfo2" | "sfo3" | "blr1" | "syd1"
    The region to start in
    size String
    The size of the Load Balancer. It must be either lb-small, lb-medium, or lb-large. Defaults to lb-small. Only one of size or size_unit may be provided.
    sizeUnit Number
    The size of the Load Balancer. It must be in the range (1, 100). Defaults to 1. Only one of size or size_unit may be provided.
    status String
    stickySessions Property Map
    A sticky_sessions block to be assigned to the Load Balancer. The sticky_sessions block is documented below. Only 1 sticky_sessions block is allowed.
    targetLoadBalancerIds List<String>
    A list of Load Balancer IDs to be attached behind a Global Load Balancer.
    type String
    The type of the Load Balancer. It must be either of REGIONAL or GLOBAL. Defaults to REGIONAL. NOTE: non-REGIONAL/GLOBAL type may be part of closed beta feature and not available for public use.
    vpcUuid String
    The ID of the VPC where the load balancer will be located.

    Supporting Types

    Algorithm, AlgorithmArgs

    RoundRobin
    round_robin
    LeastConnections
    least_connections
    AlgorithmRoundRobin
    round_robin
    AlgorithmLeastConnections
    least_connections
    RoundRobin
    round_robin
    LeastConnections
    least_connections
    RoundRobin
    round_robin
    LeastConnections
    least_connections
    ROUND_ROBIN
    round_robin
    LEAST_CONNECTIONS
    least_connections
    "round_robin"
    round_robin
    "least_connections"
    least_connections

    LoadBalancerDomain, LoadBalancerDomainArgs

    Name string
    The domain name to be used for ingressing traffic to a Global Load Balancer.
    CertificateName string
    name of certificate required for TLS handshaking
    IsManaged bool
    Control flag to specify whether the domain is managed by DigitalOcean.
    SslValidationErrorReasons List<string>
    list of domain SSL validation errors
    VerificationErrorReasons List<string>
    list of domain verification errors
    Name string
    The domain name to be used for ingressing traffic to a Global Load Balancer.
    CertificateName string
    name of certificate required for TLS handshaking
    IsManaged bool
    Control flag to specify whether the domain is managed by DigitalOcean.
    SslValidationErrorReasons []string
    list of domain SSL validation errors
    VerificationErrorReasons []string
    list of domain verification errors
    name String
    The domain name to be used for ingressing traffic to a Global Load Balancer.
    certificateName String
    name of certificate required for TLS handshaking
    isManaged Boolean
    Control flag to specify whether the domain is managed by DigitalOcean.
    sslValidationErrorReasons List<String>
    list of domain SSL validation errors
    verificationErrorReasons List<String>
    list of domain verification errors
    name string
    The domain name to be used for ingressing traffic to a Global Load Balancer.
    certificateName string
    name of certificate required for TLS handshaking
    isManaged boolean
    Control flag to specify whether the domain is managed by DigitalOcean.
    sslValidationErrorReasons string[]
    list of domain SSL validation errors
    verificationErrorReasons string[]
    list of domain verification errors
    name str
    The domain name to be used for ingressing traffic to a Global Load Balancer.
    certificate_name str
    name of certificate required for TLS handshaking
    is_managed bool
    Control flag to specify whether the domain is managed by DigitalOcean.
    ssl_validation_error_reasons Sequence[str]
    list of domain SSL validation errors
    verification_error_reasons Sequence[str]
    list of domain verification errors
    name String
    The domain name to be used for ingressing traffic to a Global Load Balancer.
    certificateName String
    name of certificate required for TLS handshaking
    isManaged Boolean
    Control flag to specify whether the domain is managed by DigitalOcean.
    sslValidationErrorReasons List<String>
    list of domain SSL validation errors
    verificationErrorReasons List<String>
    list of domain verification errors

    LoadBalancerFirewall, LoadBalancerFirewallArgs

    Allows List<string>
    A list of strings describing allow rules. Must be colon delimited strings of the form {type}:{source}

    • Ex. deny = ["cidr:1.2.0.0/16", "ip:2.3.4.5"] or allow = ["ip:1.2.3.4", "cidr:2.3.4.0/24"]
    Denies List<string>
    A list of strings describing deny rules. Must be colon delimited strings of the form {type}:{source}
    Allows []string
    A list of strings describing allow rules. Must be colon delimited strings of the form {type}:{source}

    • Ex. deny = ["cidr:1.2.0.0/16", "ip:2.3.4.5"] or allow = ["ip:1.2.3.4", "cidr:2.3.4.0/24"]
    Denies []string
    A list of strings describing deny rules. Must be colon delimited strings of the form {type}:{source}
    allows List<String>
    A list of strings describing allow rules. Must be colon delimited strings of the form {type}:{source}

    • Ex. deny = ["cidr:1.2.0.0/16", "ip:2.3.4.5"] or allow = ["ip:1.2.3.4", "cidr:2.3.4.0/24"]
    denies List<String>
    A list of strings describing deny rules. Must be colon delimited strings of the form {type}:{source}
    allows string[]
    A list of strings describing allow rules. Must be colon delimited strings of the form {type}:{source}

    • Ex. deny = ["cidr:1.2.0.0/16", "ip:2.3.4.5"] or allow = ["ip:1.2.3.4", "cidr:2.3.4.0/24"]
    denies string[]
    A list of strings describing deny rules. Must be colon delimited strings of the form {type}:{source}
    allows Sequence[str]
    A list of strings describing allow rules. Must be colon delimited strings of the form {type}:{source}

    • Ex. deny = ["cidr:1.2.0.0/16", "ip:2.3.4.5"] or allow = ["ip:1.2.3.4", "cidr:2.3.4.0/24"]
    denies Sequence[str]
    A list of strings describing deny rules. Must be colon delimited strings of the form {type}:{source}
    allows List<String>
    A list of strings describing allow rules. Must be colon delimited strings of the form {type}:{source}

    • Ex. deny = ["cidr:1.2.0.0/16", "ip:2.3.4.5"] or allow = ["ip:1.2.3.4", "cidr:2.3.4.0/24"]
    denies List<String>
    A list of strings describing deny rules. Must be colon delimited strings of the form {type}:{source}

    LoadBalancerForwardingRule, LoadBalancerForwardingRuleArgs

    EntryPort int
    An integer representing the port on which the Load Balancer instance will listen.
    EntryProtocol string
    The protocol used for traffic to the Load Balancer. The possible values are: http, https, http2, http3, tcp, or udp.
    TargetPort int
    An integer representing the port on the backend Droplets to which the Load Balancer will send traffic.
    TargetProtocol string
    The protocol used for traffic from the Load Balancer to the backend Droplets. The possible values are: http, https, http2, tcp, or udp.
    CertificateId string
    Deprecated The ID of the TLS certificate to be used for SSL termination.

    Deprecated: Certificate IDs may change, for example when a Let's Encrypt certificate is auto-renewed. Please specify 'certificate_name' instead.

    CertificateName string
    The unique name of the TLS certificate to be used for SSL termination.
    TlsPassthrough bool
    A boolean value indicating whether SSL encrypted traffic will be passed through to the backend Droplets. The default value is false.
    EntryPort int
    An integer representing the port on which the Load Balancer instance will listen.
    EntryProtocol string
    The protocol used for traffic to the Load Balancer. The possible values are: http, https, http2, http3, tcp, or udp.
    TargetPort int
    An integer representing the port on the backend Droplets to which the Load Balancer will send traffic.
    TargetProtocol string
    The protocol used for traffic from the Load Balancer to the backend Droplets. The possible values are: http, https, http2, tcp, or udp.
    CertificateId string
    Deprecated The ID of the TLS certificate to be used for SSL termination.

    Deprecated: Certificate IDs may change, for example when a Let's Encrypt certificate is auto-renewed. Please specify 'certificate_name' instead.

    CertificateName string
    The unique name of the TLS certificate to be used for SSL termination.
    TlsPassthrough bool
    A boolean value indicating whether SSL encrypted traffic will be passed through to the backend Droplets. The default value is false.
    entryPort Integer
    An integer representing the port on which the Load Balancer instance will listen.
    entryProtocol String
    The protocol used for traffic to the Load Balancer. The possible values are: http, https, http2, http3, tcp, or udp.
    targetPort Integer
    An integer representing the port on the backend Droplets to which the Load Balancer will send traffic.
    targetProtocol String
    The protocol used for traffic from the Load Balancer to the backend Droplets. The possible values are: http, https, http2, tcp, or udp.
    certificateId String
    Deprecated The ID of the TLS certificate to be used for SSL termination.

    Deprecated: Certificate IDs may change, for example when a Let's Encrypt certificate is auto-renewed. Please specify 'certificate_name' instead.

    certificateName String
    The unique name of the TLS certificate to be used for SSL termination.
    tlsPassthrough Boolean
    A boolean value indicating whether SSL encrypted traffic will be passed through to the backend Droplets. The default value is false.
    entryPort number
    An integer representing the port on which the Load Balancer instance will listen.
    entryProtocol string
    The protocol used for traffic to the Load Balancer. The possible values are: http, https, http2, http3, tcp, or udp.
    targetPort number
    An integer representing the port on the backend Droplets to which the Load Balancer will send traffic.
    targetProtocol string
    The protocol used for traffic from the Load Balancer to the backend Droplets. The possible values are: http, https, http2, tcp, or udp.
    certificateId string
    Deprecated The ID of the TLS certificate to be used for SSL termination.

    Deprecated: Certificate IDs may change, for example when a Let's Encrypt certificate is auto-renewed. Please specify 'certificate_name' instead.

    certificateName string
    The unique name of the TLS certificate to be used for SSL termination.
    tlsPassthrough boolean
    A boolean value indicating whether SSL encrypted traffic will be passed through to the backend Droplets. The default value is false.
    entry_port int
    An integer representing the port on which the Load Balancer instance will listen.
    entry_protocol str
    The protocol used for traffic to the Load Balancer. The possible values are: http, https, http2, http3, tcp, or udp.
    target_port int
    An integer representing the port on the backend Droplets to which the Load Balancer will send traffic.
    target_protocol str
    The protocol used for traffic from the Load Balancer to the backend Droplets. The possible values are: http, https, http2, tcp, or udp.
    certificate_id str
    Deprecated The ID of the TLS certificate to be used for SSL termination.

    Deprecated: Certificate IDs may change, for example when a Let's Encrypt certificate is auto-renewed. Please specify 'certificate_name' instead.

    certificate_name str
    The unique name of the TLS certificate to be used for SSL termination.
    tls_passthrough bool
    A boolean value indicating whether SSL encrypted traffic will be passed through to the backend Droplets. The default value is false.
    entryPort Number
    An integer representing the port on which the Load Balancer instance will listen.
    entryProtocol String
    The protocol used for traffic to the Load Balancer. The possible values are: http, https, http2, http3, tcp, or udp.
    targetPort Number
    An integer representing the port on the backend Droplets to which the Load Balancer will send traffic.
    targetProtocol String
    The protocol used for traffic from the Load Balancer to the backend Droplets. The possible values are: http, https, http2, tcp, or udp.
    certificateId String
    Deprecated The ID of the TLS certificate to be used for SSL termination.

    Deprecated: Certificate IDs may change, for example when a Let's Encrypt certificate is auto-renewed. Please specify 'certificate_name' instead.

    certificateName String
    The unique name of the TLS certificate to be used for SSL termination.
    tlsPassthrough Boolean
    A boolean value indicating whether SSL encrypted traffic will be passed through to the backend Droplets. The default value is false.

    LoadBalancerGlbSettings, LoadBalancerGlbSettingsArgs

    TargetPort int
    An integer representing the port on the backend Droplets to which the Load Balancer will send traffic. The possible values are: 80 for http and 443 for https.
    TargetProtocol string
    The protocol used for traffic from the Load Balancer to the backend Droplets. The possible values are: http and https.
    Cdn Pulumi.DigitalOcean.Inputs.LoadBalancerGlbSettingsCdn
    CDN configuration supporting the following:
    FailoverThreshold int
    fail-over threshold
    RegionPriorities Dictionary<string, int>
    region priority map
    TargetPort int
    An integer representing the port on the backend Droplets to which the Load Balancer will send traffic. The possible values are: 80 for http and 443 for https.
    TargetProtocol string
    The protocol used for traffic from the Load Balancer to the backend Droplets. The possible values are: http and https.
    Cdn LoadBalancerGlbSettingsCdn
    CDN configuration supporting the following:
    FailoverThreshold int
    fail-over threshold
    RegionPriorities map[string]int
    region priority map
    targetPort Integer
    An integer representing the port on the backend Droplets to which the Load Balancer will send traffic. The possible values are: 80 for http and 443 for https.
    targetProtocol String
    The protocol used for traffic from the Load Balancer to the backend Droplets. The possible values are: http and https.
    cdn LoadBalancerGlbSettingsCdn
    CDN configuration supporting the following:
    failoverThreshold Integer
    fail-over threshold
    regionPriorities Map<String,Integer>
    region priority map
    targetPort number
    An integer representing the port on the backend Droplets to which the Load Balancer will send traffic. The possible values are: 80 for http and 443 for https.
    targetProtocol string
    The protocol used for traffic from the Load Balancer to the backend Droplets. The possible values are: http and https.
    cdn LoadBalancerGlbSettingsCdn
    CDN configuration supporting the following:
    failoverThreshold number
    fail-over threshold
    regionPriorities {[key: string]: number}
    region priority map
    target_port int
    An integer representing the port on the backend Droplets to which the Load Balancer will send traffic. The possible values are: 80 for http and 443 for https.
    target_protocol str
    The protocol used for traffic from the Load Balancer to the backend Droplets. The possible values are: http and https.
    cdn LoadBalancerGlbSettingsCdn
    CDN configuration supporting the following:
    failover_threshold int
    fail-over threshold
    region_priorities Mapping[str, int]
    region priority map
    targetPort Number
    An integer representing the port on the backend Droplets to which the Load Balancer will send traffic. The possible values are: 80 for http and 443 for https.
    targetProtocol String
    The protocol used for traffic from the Load Balancer to the backend Droplets. The possible values are: http and https.
    cdn Property Map
    CDN configuration supporting the following:
    failoverThreshold Number
    fail-over threshold
    regionPriorities Map<Number>
    region priority map

    LoadBalancerGlbSettingsCdn, LoadBalancerGlbSettingsCdnArgs

    IsEnabled bool
    Control flag to specify if caching is enabled.
    IsEnabled bool
    Control flag to specify if caching is enabled.
    isEnabled Boolean
    Control flag to specify if caching is enabled.
    isEnabled boolean
    Control flag to specify if caching is enabled.
    is_enabled bool
    Control flag to specify if caching is enabled.
    isEnabled Boolean
    Control flag to specify if caching is enabled.

    LoadBalancerHealthcheck, LoadBalancerHealthcheckArgs

    Port int
    An integer representing the port on the backend Droplets on which the health check will attempt a connection.
    Protocol string
    The protocol used for health checks sent to the backend Droplets. The possible values are http, https or tcp.
    CheckIntervalSeconds int
    The number of seconds between two consecutive health checks. If not specified, the default value is 10.
    HealthyThreshold int
    The number of times a health check must pass for a backend Droplet to be marked "healthy" and be re-added to the pool. If not specified, the default value is 5.
    Path string
    The path on the backend Droplets to which the Load Balancer instance will send a request.
    ResponseTimeoutSeconds int
    The number of seconds the Load Balancer instance will wait for a response until marking a health check as failed. If not specified, the default value is 5.
    UnhealthyThreshold int
    The number of times a health check must fail for a backend Droplet to be marked "unhealthy" and be removed from the pool. If not specified, the default value is 3.
    Port int
    An integer representing the port on the backend Droplets on which the health check will attempt a connection.
    Protocol string
    The protocol used for health checks sent to the backend Droplets. The possible values are http, https or tcp.
    CheckIntervalSeconds int
    The number of seconds between two consecutive health checks. If not specified, the default value is 10.
    HealthyThreshold int
    The number of times a health check must pass for a backend Droplet to be marked "healthy" and be re-added to the pool. If not specified, the default value is 5.
    Path string
    The path on the backend Droplets to which the Load Balancer instance will send a request.
    ResponseTimeoutSeconds int
    The number of seconds the Load Balancer instance will wait for a response until marking a health check as failed. If not specified, the default value is 5.
    UnhealthyThreshold int
    The number of times a health check must fail for a backend Droplet to be marked "unhealthy" and be removed from the pool. If not specified, the default value is 3.
    port Integer
    An integer representing the port on the backend Droplets on which the health check will attempt a connection.
    protocol String
    The protocol used for health checks sent to the backend Droplets. The possible values are http, https or tcp.
    checkIntervalSeconds Integer
    The number of seconds between two consecutive health checks. If not specified, the default value is 10.
    healthyThreshold Integer
    The number of times a health check must pass for a backend Droplet to be marked "healthy" and be re-added to the pool. If not specified, the default value is 5.
    path String
    The path on the backend Droplets to which the Load Balancer instance will send a request.
    responseTimeoutSeconds Integer
    The number of seconds the Load Balancer instance will wait for a response until marking a health check as failed. If not specified, the default value is 5.
    unhealthyThreshold Integer
    The number of times a health check must fail for a backend Droplet to be marked "unhealthy" and be removed from the pool. If not specified, the default value is 3.
    port number
    An integer representing the port on the backend Droplets on which the health check will attempt a connection.
    protocol string
    The protocol used for health checks sent to the backend Droplets. The possible values are http, https or tcp.
    checkIntervalSeconds number
    The number of seconds between two consecutive health checks. If not specified, the default value is 10.
    healthyThreshold number
    The number of times a health check must pass for a backend Droplet to be marked "healthy" and be re-added to the pool. If not specified, the default value is 5.
    path string
    The path on the backend Droplets to which the Load Balancer instance will send a request.
    responseTimeoutSeconds number
    The number of seconds the Load Balancer instance will wait for a response until marking a health check as failed. If not specified, the default value is 5.
    unhealthyThreshold number
    The number of times a health check must fail for a backend Droplet to be marked "unhealthy" and be removed from the pool. If not specified, the default value is 3.
    port int
    An integer representing the port on the backend Droplets on which the health check will attempt a connection.
    protocol str
    The protocol used for health checks sent to the backend Droplets. The possible values are http, https or tcp.
    check_interval_seconds int
    The number of seconds between two consecutive health checks. If not specified, the default value is 10.
    healthy_threshold int
    The number of times a health check must pass for a backend Droplet to be marked "healthy" and be re-added to the pool. If not specified, the default value is 5.
    path str
    The path on the backend Droplets to which the Load Balancer instance will send a request.
    response_timeout_seconds int
    The number of seconds the Load Balancer instance will wait for a response until marking a health check as failed. If not specified, the default value is 5.
    unhealthy_threshold int
    The number of times a health check must fail for a backend Droplet to be marked "unhealthy" and be removed from the pool. If not specified, the default value is 3.
    port Number
    An integer representing the port on the backend Droplets on which the health check will attempt a connection.
    protocol String
    The protocol used for health checks sent to the backend Droplets. The possible values are http, https or tcp.
    checkIntervalSeconds Number
    The number of seconds between two consecutive health checks. If not specified, the default value is 10.
    healthyThreshold Number
    The number of times a health check must pass for a backend Droplet to be marked "healthy" and be re-added to the pool. If not specified, the default value is 5.
    path String
    The path on the backend Droplets to which the Load Balancer instance will send a request.
    responseTimeoutSeconds Number
    The number of seconds the Load Balancer instance will wait for a response until marking a health check as failed. If not specified, the default value is 5.
    unhealthyThreshold Number
    The number of times a health check must fail for a backend Droplet to be marked "unhealthy" and be removed from the pool. If not specified, the default value is 3.

    LoadBalancerStickySessions, LoadBalancerStickySessionsArgs

    CookieName string
    The name to be used for the cookie sent to the client. This attribute is required when using cookies for the sticky sessions type.
    CookieTtlSeconds int
    The number of seconds until the cookie set by the Load Balancer expires. This attribute is required when using cookies for the sticky sessions type.
    Type string
    An attribute indicating how and if requests from a client will be persistently served by the same backend Droplet. The possible values are cookies or none. If not specified, the default value is none.
    CookieName string
    The name to be used for the cookie sent to the client. This attribute is required when using cookies for the sticky sessions type.
    CookieTtlSeconds int
    The number of seconds until the cookie set by the Load Balancer expires. This attribute is required when using cookies for the sticky sessions type.
    Type string
    An attribute indicating how and if requests from a client will be persistently served by the same backend Droplet. The possible values are cookies or none. If not specified, the default value is none.
    cookieName String
    The name to be used for the cookie sent to the client. This attribute is required when using cookies for the sticky sessions type.
    cookieTtlSeconds Integer
    The number of seconds until the cookie set by the Load Balancer expires. This attribute is required when using cookies for the sticky sessions type.
    type String
    An attribute indicating how and if requests from a client will be persistently served by the same backend Droplet. The possible values are cookies or none. If not specified, the default value is none.
    cookieName string
    The name to be used for the cookie sent to the client. This attribute is required when using cookies for the sticky sessions type.
    cookieTtlSeconds number
    The number of seconds until the cookie set by the Load Balancer expires. This attribute is required when using cookies for the sticky sessions type.
    type string
    An attribute indicating how and if requests from a client will be persistently served by the same backend Droplet. The possible values are cookies or none. If not specified, the default value is none.
    cookie_name str
    The name to be used for the cookie sent to the client. This attribute is required when using cookies for the sticky sessions type.
    cookie_ttl_seconds int
    The number of seconds until the cookie set by the Load Balancer expires. This attribute is required when using cookies for the sticky sessions type.
    type str
    An attribute indicating how and if requests from a client will be persistently served by the same backend Droplet. The possible values are cookies or none. If not specified, the default value is none.
    cookieName String
    The name to be used for the cookie sent to the client. This attribute is required when using cookies for the sticky sessions type.
    cookieTtlSeconds Number
    The number of seconds until the cookie set by the Load Balancer expires. This attribute is required when using cookies for the sticky sessions type.
    type String
    An attribute indicating how and if requests from a client will be persistently served by the same backend Droplet. The possible values are cookies or none. If not specified, the default value is none.

    Region, RegionArgs

    NYC1
    nyc1
    NYC2
    nyc2
    NYC3
    nyc3
    SGP1
    sgp1
    LON1
    lon1
    AMS2
    ams2
    AMS3
    ams3
    FRA1
    fra1
    TOR1
    tor1
    SFO1
    sfo1
    SFO2
    sfo2
    SFO3
    sfo3
    BLR1
    blr1
    SYD1
    syd1
    RegionNYC1
    nyc1
    RegionNYC2
    nyc2
    RegionNYC3
    nyc3
    RegionSGP1
    sgp1
    RegionLON1
    lon1
    RegionAMS2
    ams2
    RegionAMS3
    ams3
    RegionFRA1
    fra1
    RegionTOR1
    tor1
    RegionSFO1
    sfo1
    RegionSFO2
    sfo2
    RegionSFO3
    sfo3
    RegionBLR1
    blr1
    RegionSYD1
    syd1
    NYC1
    nyc1
    NYC2
    nyc2
    NYC3
    nyc3
    SGP1
    sgp1
    LON1
    lon1
    AMS2
    ams2
    AMS3
    ams3
    FRA1
    fra1
    TOR1
    tor1
    SFO1
    sfo1
    SFO2
    sfo2
    SFO3
    sfo3
    BLR1
    blr1
    SYD1
    syd1
    NYC1
    nyc1
    NYC2
    nyc2
    NYC3
    nyc3
    SGP1
    sgp1
    LON1
    lon1
    AMS2
    ams2
    AMS3
    ams3
    FRA1
    fra1
    TOR1
    tor1
    SFO1
    sfo1
    SFO2
    sfo2
    SFO3
    sfo3
    BLR1
    blr1
    SYD1
    syd1
    NYC1
    nyc1
    NYC2
    nyc2
    NYC3
    nyc3
    SGP1
    sgp1
    LON1
    lon1
    AMS2
    ams2
    AMS3
    ams3
    FRA1
    fra1
    TOR1
    tor1
    SFO1
    sfo1
    SFO2
    sfo2
    SFO3
    sfo3
    BLR1
    blr1
    SYD1
    syd1
    "nyc1"
    nyc1
    "nyc2"
    nyc2
    "nyc3"
    nyc3
    "sgp1"
    sgp1
    "lon1"
    lon1
    "ams2"
    ams2
    "ams3"
    ams3
    "fra1"
    fra1
    "tor1"
    tor1
    "sfo1"
    sfo1
    "sfo2"
    sfo2
    "sfo3"
    sfo3
    "blr1"
    blr1
    "syd1"
    syd1

    Import

    Load Balancers can be imported using the id, e.g.

    $ pulumi import digitalocean:index/loadBalancer:LoadBalancer myloadbalancer 4de7ac8b-495b-4884-9a69-1050c6793cd6
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    DigitalOcean pulumi/pulumi-digitalocean
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the digitalocean Terraform Provider.
    digitalocean logo
    DigitalOcean v4.35.0 published on Tuesday, Nov 19, 2024 by Pulumi