1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. LbListenerV2
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.LbListenerV2

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Manages an enhanced lb listener resource within FlexibleEngine.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const lb1 = new flexibleengine.LbLoadbalancerV2("lb1", {
        vipSubnetId: flexibleengine_vpc_subnet_v1.example_subnet.ipv4_subnet_id,
        tags: {
            key: "value",
        },
    });
    const listener1 = new flexibleengine.LbListenerV2("listener1", {
        protocol: "HTTP",
        protocolPort: 8080,
        loadbalancerId: lb1.lbLoadbalancerV2Id,
        tags: {
            key: "value",
        },
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    lb1 = flexibleengine.LbLoadbalancerV2("lb1",
        vip_subnet_id=flexibleengine_vpc_subnet_v1["example_subnet"]["ipv4_subnet_id"],
        tags={
            "key": "value",
        })
    listener1 = flexibleengine.LbListenerV2("listener1",
        protocol="HTTP",
        protocol_port=8080,
        loadbalancer_id=lb1.lb_loadbalancer_v2_id,
        tags={
            "key": "value",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		lb1, err := flexibleengine.NewLbLoadbalancerV2(ctx, "lb1", &flexibleengine.LbLoadbalancerV2Args{
    			VipSubnetId: pulumi.Any(flexibleengine_vpc_subnet_v1.Example_subnet.Ipv4_subnet_id),
    			Tags: pulumi.StringMap{
    				"key": pulumi.String("value"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = flexibleengine.NewLbListenerV2(ctx, "listener1", &flexibleengine.LbListenerV2Args{
    			Protocol:       pulumi.String("HTTP"),
    			ProtocolPort:   pulumi.Float64(8080),
    			LoadbalancerId: lb1.LbLoadbalancerV2Id,
    			Tags: pulumi.StringMap{
    				"key": pulumi.String("value"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var lb1 = new Flexibleengine.LbLoadbalancerV2("lb1", new()
        {
            VipSubnetId = flexibleengine_vpc_subnet_v1.Example_subnet.Ipv4_subnet_id,
            Tags = 
            {
                { "key", "value" },
            },
        });
    
        var listener1 = new Flexibleengine.LbListenerV2("listener1", new()
        {
            Protocol = "HTTP",
            ProtocolPort = 8080,
            LoadbalancerId = lb1.LbLoadbalancerV2Id,
            Tags = 
            {
                { "key", "value" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.LbLoadbalancerV2;
    import com.pulumi.flexibleengine.LbLoadbalancerV2Args;
    import com.pulumi.flexibleengine.LbListenerV2;
    import com.pulumi.flexibleengine.LbListenerV2Args;
    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 lb1 = new LbLoadbalancerV2("lb1", LbLoadbalancerV2Args.builder()
                .vipSubnetId(flexibleengine_vpc_subnet_v1.example_subnet().ipv4_subnet_id())
                .tags(Map.of("key", "value"))
                .build());
    
            var listener1 = new LbListenerV2("listener1", LbListenerV2Args.builder()
                .protocol("HTTP")
                .protocolPort(8080)
                .loadbalancerId(lb1.lbLoadbalancerV2Id())
                .tags(Map.of("key", "value"))
                .build());
    
        }
    }
    
    resources:
      lb1:
        type: flexibleengine:LbLoadbalancerV2
        properties:
          vipSubnetId: ${flexibleengine_vpc_subnet_v1.example_subnet.ipv4_subnet_id}
          tags:
            key: value
      listener1:
        type: flexibleengine:LbListenerV2
        properties:
          protocol: HTTP
          protocolPort: 8080
          loadbalancerId: ${lb1.lbLoadbalancerV2Id}
          tags:
            key: value
    

    TERMINATED_HTTPS Protocol

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const loadbalancer1 = new flexibleengine.LbLoadbalancerV2("loadbalancer1", {vipSubnetId: flexibleengine_vpc_subnet_v1.example_subnet.ipv4_subnet_id});
    const certificate1 = new flexibleengine.ElbCertificate("certificate1", {
        domain: "www.elb.com",
        privateKey: `-----BEGIN RSA PRIVATE KEY-----
    MIIEowIBAAKCAQEAwZ5UJULAjWr7p6FVwGRQRjFN2s8tZ/6LC3X82fajpVsYqF1x
    qEuUDndDXVD09E4u83MS6HO6a3bIVQDp6/klnYldiE6Vp8HH5BSKaCWKVg8lGWg1
    UM9wZFnlryi14KgmpIFmcu9nA8yV/6MZAe6RSDmb3iyNBmiZ8aZhGw2pI1YwR+15
    MVqFFGB+7ExkziROi7L8CFCyCezK2/oOOvQsH1dzQ8z1JXWdg8/9Zx7Ktvgwu5PQ
    M3cJtSHX6iBPOkMU8Z8TugLlTqQXKZOEgwajwvQ5mf2DPkVgM08XAgaLJcLigwD5
    13koAdtJd5v+9irw+5LAuO3JclqwTvwy7u/YwwIDAQABAoIBACU9S5fjD9/jTMXA
    DRs08A+gGgZUxLn0xk+NAPX3LyB1tfdkCaFB8BccLzO6h3KZuwQOBPv6jkdvEDbx
    Nwyw3eA/9GJsIvKiHc0rejdvyPymaw9I8MA7NbXHaJrY7KpqDQyk6sx+aUTcy5jg
    iMXLWdwXYHhJ/1HVOo603oZyiS6HZeYU089NDUcX+1SJi3e5Ke0gPVXEqCq1O11/
    rh24bMxnwZo4PKBWdcMBN5Zf/4ij9vrZE+fFzW7vGBO48A5lvZxWU2U5t/OZQRtN
    1uLOHmMFa0FIF2aWbTVfwdUWAFsvAOkHj9VV8BXOUwKOUuEktdkfAlvrxmsFrO/H
    yDeYYPkCgYEA/S55CBbR0sMXpSZ56uRn8JHApZJhgkgvYr+FqDlJq/e92nAzf01P
    RoEBUajwrnf1ycevN/SDfbtWzq2XJGqhWdJmtpO16b7KBsC6BdRcH6dnOYh31jgA
    vABMIP3wzI4zSVTyxRE8LDuboytF1mSCeV5tHYPQTZNwrplDnLQhywcCgYEAw8Yc
    Uk/eiFr3hfH/ZohMfV5p82Qp7DNIGRzw8YtVG/3+vNXrAXW1VhugNhQY6L+zLtJC
    aKn84ooup0m3YCg0hvINqJuvzfsuzQgtjTXyaE0cEwsjUusOmiuj09vVx/3U7siK
    Hdjd2ICPCvQ6Q8tdi8jV320gMs05AtaBkZdsiWUCgYEAtLw4Kk4f+xTKDFsrLUNf
    75wcqhWVBiwBp7yQ7UX4EYsJPKZcHMRTk0EEcAbpyaJZE3I44vjp5ReXIHNLMfPs
    uvI34J4Rfot0LN3n7cFrAi2+wpNo+MOBwrNzpRmijGP2uKKrq4JiMjFbKV/6utGF
    Up7VxfwS904JYpqGaZctiIECgYA1A6nZtF0riY6ry/uAdXpZHL8ONNqRZtWoT0kD
    79otSVu5ISiRbaGcXsDExC52oKrSDAgFtbqQUiEOFg09UcXfoR6HwRkba2CiDwve
    yHQLQI5Qrdxz8Mk0gIrNrSM4FAmcW9vi9z4kCbQyoC5C+4gqeUlJRpDIkQBWP2Y4
    2ct/bQKBgHv8qCsQTZphOxc31BJPa2xVhuv18cEU3XLUrVfUZ/1f43JhLp7gynS2
    ep++LKUi9D0VGXY8bqvfJjbECoCeu85vl8NpCXwe/LoVoIn+7KaVIZMwqoGMfgNl
    nEqm7HWkNxHhf8A6En/IjleuddS1sf9e/x+TJN1Xhnt9W6pe7Fk1
    -----END RSA PRIVATE KEY-----
    `,
        certificate: `-----BEGIN CERTIFICATE-----
    MIIDpTCCAo2gAwIBAgIJAKdmmOBYnFvoMA0GCSqGSIb3DQEBCwUAMGkxCzAJBgN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
    c8Tdr8lDDNqoUtMD8BrUCJi+7lmMXRcC3Qi3oZJW76ja+kZA5mKVFPd1ATih8TbA
    i34R7EQDtFeiSvBdeKRsPp8c0KT8H1B4lXNkkCQs2WX5p4lm99+ZtLD4glw8x6Ic
    i1YhgnQbn5E0hz55OLu5jvOkKQjPCW+9Aa==
    -----END CERTIFICATE-----
    `,
    });
    const listener1 = new flexibleengine.LbListenerV2("listener1", {
        protocol: "TERMINATED_HTTPS",
        protocolPort: 8080,
        loadbalancerId: loadbalancer1.lbLoadbalancerV2Id,
        defaultTlsContainerRef: certificate1.elbCertificateId,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    loadbalancer1 = flexibleengine.LbLoadbalancerV2("loadbalancer1", vip_subnet_id=flexibleengine_vpc_subnet_v1["example_subnet"]["ipv4_subnet_id"])
    certificate1 = flexibleengine.ElbCertificate("certificate1",
        domain="www.elb.com",
        private_key="""-----BEGIN RSA PRIVATE KEY-----
    MIIEowIBAAKCAQEAwZ5UJULAjWr7p6FVwGRQRjFN2s8tZ/6LC3X82fajpVsYqF1x
    qEuUDndDXVD09E4u83MS6HO6a3bIVQDp6/klnYldiE6Vp8HH5BSKaCWKVg8lGWg1
    UM9wZFnlryi14KgmpIFmcu9nA8yV/6MZAe6RSDmb3iyNBmiZ8aZhGw2pI1YwR+15
    MVqFFGB+7ExkziROi7L8CFCyCezK2/oOOvQsH1dzQ8z1JXWdg8/9Zx7Ktvgwu5PQ
    M3cJtSHX6iBPOkMU8Z8TugLlTqQXKZOEgwajwvQ5mf2DPkVgM08XAgaLJcLigwD5
    13koAdtJd5v+9irw+5LAuO3JclqwTvwy7u/YwwIDAQABAoIBACU9S5fjD9/jTMXA
    DRs08A+gGgZUxLn0xk+NAPX3LyB1tfdkCaFB8BccLzO6h3KZuwQOBPv6jkdvEDbx
    Nwyw3eA/9GJsIvKiHc0rejdvyPymaw9I8MA7NbXHaJrY7KpqDQyk6sx+aUTcy5jg
    iMXLWdwXYHhJ/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1sf9e/x+TJN1Xhnt9W6pe7Fk1
    -----END RSA PRIVATE KEY-----
    """,
        certificate="""-----BEGIN CERTIFICATE-----
    MIIDpTCCAo2gAwIBAgIJAKdmmOBYnFvoMA0GCSqGSIb3DQEBCwUAMGkxCzAJBgNV
    BAYTAnh4MQswCQYDVQQIDAJ4eDELMAkGA1UEBwwCeHgxCzAJBgNVBAoMAnh4MQsw
    CQYDVQQLDAJ4eDELMAkGA1UEAwwCeHgxGTAXBgkqhkiG9w0BCQEWCnh4QDE2My5j
    b20wHhcNMTcxMjA0MDM0MjQ5WhcNMjAxMjAzMDM0MjQ5WjBpMQswCQYDVQQGEwJ4
    eDELMAkGA1UECAwCeHgxCzAJBgNVBAcMAnh4MQswCQYDVQQKDAJ4eDELMAkGA1UE
    CwwCeHgxCzAJBgNVBAMMAnh4MRkwFwYJKoZIhvcNAQkBFgp4eEAxNjMuY29tMIIB
    IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwZ5UJULAjWr7p6FVwGRQRjFN
    2s8tZ/6LC3X82fajpVsYqF1xqEuUDndDXVD09E4u83MS6HO6a3bIVQDp6/klnYld
    iE6Vp8HH5BSKaCWKVg8lGWg1UM9wZFnlryi14KgmpIFmcu9nA8yV/6MZAe6RSDmb
    3iyNBmiZ8aZhGw2pI1YwR+15MVqFFGB+7ExkziROi7L8CFCyCezK2/oOOvQsH1dz
    Q8z1JXWdg8/9Zx7Ktvgwu5PQM3cJtSHX6iBPOkMU8Z8TugLlTqQXKZOEgwajwvQ5
    mf2DPkVgM08XAgaLJcLigwD513koAdtJd5v+9irw+5LAuO3JclqwTvwy7u/YwwID
    AQABo1AwTjAdBgNVHQ4EFgQUo5A2tIu+bcUfvGTD7wmEkhXKFjcwHwYDVR0jBBgw
    FoAUo5A2tIu+bcUfvGTD7wmEkhXKFjcwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0B
    AQsFAAOCAQEAWJ2rS6Mvlqk3GfEpboezx2J3X7l1z8Sxoqg6ntwB+rezvK3mc9H0
    83qcVeUcoH+0A0lSHyFN4FvRQL6X1hEheHarYwJK4agb231vb5erasuGO463eYEG
    r4SfTuOm7SyiV2xxbaBKrXJtpBp4WLL/s+LF+nklKjaOxkmxUX0sM4CTA7uFJypY
    c8Tdr8lDDNqoUtMD8BrUCJi+7lmMXRcC3Qi3oZJW76ja+kZA5mKVFPd1ATih8TbA
    i34R7EQDtFeiSvBdeKRsPp8c0KT8H1B4lXNkkCQs2WX5p4lm99+ZtLD4glw8x6Ic
    i1YhgnQbn5E0hz55OLu5jvOkKQjPCW+9Aa==
    -----END CERTIFICATE-----
    """)
    listener1 = flexibleengine.LbListenerV2("listener1",
        protocol="TERMINATED_HTTPS",
        protocol_port=8080,
        loadbalancer_id=loadbalancer1.lb_loadbalancer_v2_id,
        default_tls_container_ref=certificate1.elb_certificate_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		loadbalancer1, err := flexibleengine.NewLbLoadbalancerV2(ctx, "loadbalancer1", &flexibleengine.LbLoadbalancerV2Args{
    			VipSubnetId: pulumi.Any(flexibleengine_vpc_subnet_v1.Example_subnet.Ipv4_subnet_id),
    		})
    		if err != nil {
    			return err
    		}
    		certificate1, err := flexibleengine.NewElbCertificate(ctx, "certificate1", &flexibleengine.ElbCertificateArgs{
    			Domain: pulumi.String("www.elb.com"),
    			PrivateKey: pulumi.String(`-----BEGIN RSA PRIVATE KEY-----
    MIIEowIBAAKCAQEAwZ5UJULAjWr7p6FVwGRQRjFN2s8tZ/6LC3X82fajpVsYqF1x
    qEuUDndDXVD09E4u83MS6HO6a3bIVQDp6/klnYldiE6Vp8HH5BSKaCWKVg8lGWg1
    UM9wZFnlryi14KgmpIFmcu9nA8yV/6MZAe6RSDmb3iyNBmiZ8aZhGw2pI1YwR+15
    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xfwS904JYpqGaZctiIECgYA1A6nZtF0riY6ry/uAdXpZHL8ONNqRZtWoT0kD
    79otSVu5ISiRbaGcXsDExC52oKrSDAgFtbqQUiEOFg09UcXfoR6HwRkba2CiDwve
    yHQLQI5Qrdxz8Mk0gIrNrSM4FAmcW9vi9z4kCbQyoC5C+4gqeUlJRpDIkQBWP2Y4
    2ct/bQKBgHv8qCsQTZphOxc31BJPa2xVhuv18cEU3XLUrVfUZ/1f43JhLp7gynS2
    ep++LKUi9D0VGXY8bqvfJjbECoCeu85vl8NpCXwe/LoVoIn+7KaVIZMwqoGMfgNl
    nEqm7HWkNxHhf8A6En/IjleuddS1sf9e/x+TJN1Xhnt9W6pe7Fk1
    -----END RSA PRIVATE KEY-----
    `),
    			Certificate: pulumi.String(`-----BEGIN CERTIFICATE-----
    MIIDpTCCAo2gAwIBAgIJAKdmmOBYnFvoMA0GCSqGSIb3DQEBCwUAMGkxCzAJBgNV
    BAYTAnh4MQswCQYDVQQIDAJ4eDELMAkGA1UEBwwCeHgxCzAJBgNVBAoMAnh4MQsw
    CQYDVQQLDAJ4eDELMAkGA1UEAwwCeHgxGTAXBgkqhkiG9w0BCQEWCnh4QDE2My5j
    b20wHhcNMTcxMjA0MDM0MjQ5WhcNMjAxMjAzMDM0MjQ5WjBpMQswCQYDVQQGEwJ4
    eDELMAkGA1UECAwCeHgxCzAJBgNVBAcMAnh4MQswCQYDVQQKDAJ4eDELMAkGA1UE
    CwwCeHgxCzAJBgNVBAMMAnh4MRkwFwYJKoZIhvcNAQkBFgp4eEAxNjMuY29tMIIB
    IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwZ5UJULAjWr7p6FVwGRQRjFN
    2s8tZ/6LC3X82fajpVsYqF1xqEuUDndDXVD09E4u83MS6HO6a3bIVQDp6/klnYld
    iE6Vp8HH5BSKaCWKVg8lGWg1UM9wZFnlryi14KgmpIFmcu9nA8yV/6MZAe6RSDmb
    3iyNBmiZ8aZhGw2pI1YwR+15MVqFFGB+7ExkziROi7L8CFCyCezK2/oOOvQsH1dz
    Q8z1JXWdg8/9Zx7Ktvgwu5PQM3cJtSHX6iBPOkMU8Z8TugLlTqQXKZOEgwajwvQ5
    mf2DPkVgM08XAgaLJcLigwD513koAdtJd5v+9irw+5LAuO3JclqwTvwy7u/YwwID
    AQABo1AwTjAdBgNVHQ4EFgQUo5A2tIu+bcUfvGTD7wmEkhXKFjcwHwYDVR0jBBgw
    FoAUo5A2tIu+bcUfvGTD7wmEkhXKFjcwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0B
    AQsFAAOCAQEAWJ2rS6Mvlqk3GfEpboezx2J3X7l1z8Sxoqg6ntwB+rezvK3mc9H0
    83qcVeUcoH+0A0lSHyFN4FvRQL6X1hEheHarYwJK4agb231vb5erasuGO463eYEG
    r4SfTuOm7SyiV2xxbaBKrXJtpBp4WLL/s+LF+nklKjaOxkmxUX0sM4CTA7uFJypY
    c8Tdr8lDDNqoUtMD8BrUCJi+7lmMXRcC3Qi3oZJW76ja+kZA5mKVFPd1ATih8TbA
    i34R7EQDtFeiSvBdeKRsPp8c0KT8H1B4lXNkkCQs2WX5p4lm99+ZtLD4glw8x6Ic
    i1YhgnQbn5E0hz55OLu5jvOkKQjPCW+9Aa==
    -----END CERTIFICATE-----
    `),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = flexibleengine.NewLbListenerV2(ctx, "listener1", &flexibleengine.LbListenerV2Args{
    			Protocol:               pulumi.String("TERMINATED_HTTPS"),
    			ProtocolPort:           pulumi.Float64(8080),
    			LoadbalancerId:         loadbalancer1.LbLoadbalancerV2Id,
    			DefaultTlsContainerRef: certificate1.ElbCertificateId,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var loadbalancer1 = new Flexibleengine.LbLoadbalancerV2("loadbalancer1", new()
        {
            VipSubnetId = flexibleengine_vpc_subnet_v1.Example_subnet.Ipv4_subnet_id,
        });
    
        var certificate1 = new Flexibleengine.ElbCertificate("certificate1", new()
        {
            Domain = "www.elb.com",
            PrivateKey = @"-----BEGIN RSA PRIVATE KEY-----
    MIIEowIBAAKCAQEAwZ5UJULAjWr7p6FVwGRQRjFN2s8tZ/6LC3X82fajpVsYqF1x
    qEuUDndDXVD09E4u83MS6HO6a3bIVQDp6/klnYldiE6Vp8HH5BSKaCWKVg8lGWg1
    UM9wZFnlryi14KgmpIFmcu9nA8yV/6MZAe6RSDmb3iyNBmiZ8aZhGw2pI1YwR+15
    MVqFFGB+7ExkziROi7L8CFCyCezK2/oOOvQsH1dzQ8z1JXWdg8/9Zx7Ktvgwu5PQ
    M3cJtSHX6iBPOkMU8Z8TugLlTqQXKZOEgwajwvQ5mf2DPkVgM08XAgaLJcLigwD5
    13koAdtJd5v+9irw+5LAuO3JclqwTvwy7u/YwwIDAQABAoIBACU9S5fjD9/jTMXA
    DRs08A+gGgZUxLn0xk+NAPX3LyB1tfdkCaFB8BccLzO6h3KZuwQOBPv6jkdvEDbx
    Nwyw3eA/9GJsIvKiHc0rejdvyPymaw9I8MA7NbXHaJrY7KpqDQyk6sx+aUTcy5jg
    iMXLWdwXYHhJ/1HVOo603oZyiS6HZeYU089NDUcX+1SJi3e5Ke0gPVXEqCq1O11/
    rh24bMxnwZo4PKBWdcMBN5Zf/4ij9vrZE+fFzW7vGBO48A5lvZxWU2U5t/OZQRtN
    1uLOHmMFa0FIF2aWbTVfwdUWAFsvAOkHj9VV8BXOUwKOUuEktdkfAlvrxmsFrO/H
    yDeYYPkCgYEA/S55CBbR0sMXpSZ56uRn8JHApZJhgkgvYr+FqDlJq/e92nAzf01P
    RoEBUajwrnf1ycevN/SDfbtWzq2XJGqhWdJmtpO16b7KBsC6BdRcH6dnOYh31jgA
    vABMIP3wzI4zSVTyxRE8LDuboytF1mSCeV5tHYPQTZNwrplDnLQhywcCgYEAw8Yc
    Uk/eiFr3hfH/ZohMfV5p82Qp7DNIGRzw8YtVG/3+vNXrAXW1VhugNhQY6L+zLtJC
    aKn84ooup0m3YCg0hvINqJuvzfsuzQgtjTXyaE0cEwsjUusOmiuj09vVx/3U7siK
    Hdjd2ICPCvQ6Q8tdi8jV320gMs05AtaBkZdsiWUCgYEAtLw4Kk4f+xTKDFsrLUNf
    75wcqhWVBiwBp7yQ7UX4EYsJPKZcHMRTk0EEcAbpyaJZE3I44vjp5ReXIHNLMfPs
    uvI34J4Rfot0LN3n7cFrAi2+wpNo+MOBwrNzpRmijGP2uKKrq4JiMjFbKV/6utGF
    Up7VxfwS904JYpqGaZctiIECgYA1A6nZtF0riY6ry/uAdXpZHL8ONNqRZtWoT0kD
    79otSVu5ISiRbaGcXsDExC52oKrSDAgFtbqQUiEOFg09UcXfoR6HwRkba2CiDwve
    yHQLQI5Qrdxz8Mk0gIrNrSM4FAmcW9vi9z4kCbQyoC5C+4gqeUlJRpDIkQBWP2Y4
    2ct/bQKBgHv8qCsQTZphOxc31BJPa2xVhuv18cEU3XLUrVfUZ/1f43JhLp7gynS2
    ep++LKUi9D0VGXY8bqvfJjbECoCeu85vl8NpCXwe/LoVoIn+7KaVIZMwqoGMfgNl
    nEqm7HWkNxHhf8A6En/IjleuddS1sf9e/x+TJN1Xhnt9W6pe7Fk1
    -----END RSA PRIVATE KEY-----
    ",
            Certificate = @"-----BEGIN CERTIFICATE-----
    MIIDpTCCAo2gAwIBAgIJAKdmmOBYnFvoMA0GCSqGSIb3DQEBCwUAMGkxCzAJBgNV
    BAYTAnh4MQswCQYDVQQIDAJ4eDELMAkGA1UEBwwCeHgxCzAJBgNVBAoMAnh4MQsw
    CQYDVQQLDAJ4eDELMAkGA1UEAwwCeHgxGTAXBgkqhkiG9w0BCQEWCnh4QDE2My5j
    b20wHhcNMTcxMjA0MDM0MjQ5WhcNMjAxMjAzMDM0MjQ5WjBpMQswCQYDVQQGEwJ4
    eDELMAkGA1UECAwCeHgxCzAJBgNVBAcMAnh4MQswCQYDVQQKDAJ4eDELMAkGA1UE
    CwwCeHgxCzAJBgNVBAMMAnh4MRkwFwYJKoZIhvcNAQkBFgp4eEAxNjMuY29tMIIB
    IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwZ5UJULAjWr7p6FVwGRQRjFN
    2s8tZ/6LC3X82fajpVsYqF1xqEuUDndDXVD09E4u83MS6HO6a3bIVQDp6/klnYld
    iE6Vp8HH5BSKaCWKVg8lGWg1UM9wZFnlryi14KgmpIFmcu9nA8yV/6MZAe6RSDmb
    3iyNBmiZ8aZhGw2pI1YwR+15MVqFFGB+7ExkziROi7L8CFCyCezK2/oOOvQsH1dz
    Q8z1JXWdg8/9Zx7Ktvgwu5PQM3cJtSHX6iBPOkMU8Z8TugLlTqQXKZOEgwajwvQ5
    mf2DPkVgM08XAgaLJcLigwD513koAdtJd5v+9irw+5LAuO3JclqwTvwy7u/YwwID
    AQABo1AwTjAdBgNVHQ4EFgQUo5A2tIu+bcUfvGTD7wmEkhXKFjcwHwYDVR0jBBgw
    FoAUo5A2tIu+bcUfvGTD7wmEkhXKFjcwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0B
    AQsFAAOCAQEAWJ2rS6Mvlqk3GfEpboezx2J3X7l1z8Sxoqg6ntwB+rezvK3mc9H0
    83qcVeUcoH+0A0lSHyFN4FvRQL6X1hEheHarYwJK4agb231vb5erasuGO463eYEG
    r4SfTuOm7SyiV2xxbaBKrXJtpBp4WLL/s+LF+nklKjaOxkmxUX0sM4CTA7uFJypY
    c8Tdr8lDDNqoUtMD8BrUCJi+7lmMXRcC3Qi3oZJW76ja+kZA5mKVFPd1ATih8TbA
    i34R7EQDtFeiSvBdeKRsPp8c0KT8H1B4lXNkkCQs2WX5p4lm99+ZtLD4glw8x6Ic
    i1YhgnQbn5E0hz55OLu5jvOkKQjPCW+9Aa==
    -----END CERTIFICATE-----
    ",
        });
    
        var listener1 = new Flexibleengine.LbListenerV2("listener1", new()
        {
            Protocol = "TERMINATED_HTTPS",
            ProtocolPort = 8080,
            LoadbalancerId = loadbalancer1.LbLoadbalancerV2Id,
            DefaultTlsContainerRef = certificate1.ElbCertificateId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.LbLoadbalancerV2;
    import com.pulumi.flexibleengine.LbLoadbalancerV2Args;
    import com.pulumi.flexibleengine.ElbCertificate;
    import com.pulumi.flexibleengine.ElbCertificateArgs;
    import com.pulumi.flexibleengine.LbListenerV2;
    import com.pulumi.flexibleengine.LbListenerV2Args;
    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 loadbalancer1 = new LbLoadbalancerV2("loadbalancer1", LbLoadbalancerV2Args.builder()
                .vipSubnetId(flexibleengine_vpc_subnet_v1.example_subnet().ipv4_subnet_id())
                .build());
    
            var certificate1 = new ElbCertificate("certificate1", ElbCertificateArgs.builder()
                .domain("www.elb.com")
                .privateKey("""
    -----BEGIN RSA PRIVATE KEY-----
    MIIEowIBAAKCAQEAwZ5UJULAjWr7p6FVwGRQRjFN2s8tZ/6LC3X82fajpVsYqF1x
    qEuUDndDXVD09E4u83MS6HO6a3bIVQDp6/klnYldiE6Vp8HH5BSKaCWKVg8lGWg1
    UM9wZFnlryi14KgmpIFmcu9nA8yV/6MZAe6RSDmb3iyNBmiZ8aZhGw2pI1YwR+15
    MVqFFGB+7ExkziROi7L8CFCyCezK2/oOOvQsH1dzQ8z1JXWdg8/9Zx7Ktvgwu5PQ
    M3cJtSHX6iBPOkMU8Z8TugLlTqQXKZOEgwajwvQ5mf2DPkVgM08XAgaLJcLigwD5
    13koAdtJd5v+9irw+5LAuO3JclqwTvwy7u/YwwIDAQABAoIBACU9S5fjD9/jTMXA
    DRs08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v8qCsQTZphOxc31BJPa2xVhuv18cEU3XLUrVfUZ/1f43JhLp7gynS2
    ep++LKUi9D0VGXY8bqvfJjbECoCeu85vl8NpCXwe/LoVoIn+7KaVIZMwqoGMfgNl
    nEqm7HWkNxHhf8A6En/IjleuddS1sf9e/x+TJN1Xhnt9W6pe7Fk1
    -----END RSA PRIVATE KEY-----
                """)
                .certificate("""
    -----BEGIN CERTIFICATE-----
    MIIDpTCCAo2gAwIBAgIJAKdmmOBYnFvoMA0GCSqGSIb3DQEBCwUAMGkxCzAJBgNV
    BAYTAnh4MQswCQYDVQQIDAJ4eDELMAkGA1UEBwwCeHgxCzAJBgNVBAoMAnh4MQsw
    CQYDVQQLDAJ4eDELMAkGA1UEAwwCeHgxGTAXBgkqhkiG9w0BCQEWCnh4QDE2My5j
    b20wHhcNMTcxMjA0MDM0MjQ5WhcNMjAxMjAzMDM0MjQ5WjBpMQswCQYDVQQGEwJ4
    eDELMAkGA1UECAwCeHgxCzAJBgNVBAcMAnh4MQswCQYDVQQKDAJ4eDELMAkGA1UE
    CwwCeHgxCzAJBgNVBAMMAnh4MRkwFwYJKoZIhvcNAQkBFgp4eEAxNjMuY29tMIIB
    IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwZ5UJULAjWr7p6FVwGRQRjFN
    2s8tZ/6LC3X82fajpVsYqF1xqEuUDndDXVD09E4u83MS6HO6a3bIVQDp6/klnYld
    iE6Vp8HH5BSKaCWKVg8lGWg1UM9wZFnlryi14KgmpIFmcu9nA8yV/6MZAe6RSDmb
    3iyNBmiZ8aZhGw2pI1YwR+15MVqFFGB+7ExkziROi7L8CFCyCezK2/oOOvQsH1dz
    Q8z1JXWdg8/9Zx7Ktvgwu5PQM3cJtSHX6iBPOkMU8Z8TugLlTqQXKZOEgwajwvQ5
    mf2DPkVgM08XAgaLJcLigwD513koAdtJd5v+9irw+5LAuO3JclqwTvwy7u/YwwID
    AQABo1AwTjAdBgNVHQ4EFgQUo5A2tIu+bcUfvGTD7wmEkhXKFjcwHwYDVR0jBBgw
    FoAUo5A2tIu+bcUfvGTD7wmEkhXKFjcwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0B
    AQsFAAOCAQEAWJ2rS6Mvlqk3GfEpboezx2J3X7l1z8Sxoqg6ntwB+rezvK3mc9H0
    83qcVeUcoH+0A0lSHyFN4FvRQL6X1hEheHarYwJK4agb231vb5erasuGO463eYEG
    r4SfTuOm7SyiV2xxbaBKrXJtpBp4WLL/s+LF+nklKjaOxkmxUX0sM4CTA7uFJypY
    c8Tdr8lDDNqoUtMD8BrUCJi+7lmMXRcC3Qi3oZJW76ja+kZA5mKVFPd1ATih8TbA
    i34R7EQDtFeiSvBdeKRsPp8c0KT8H1B4lXNkkCQs2WX5p4lm99+ZtLD4glw8x6Ic
    i1YhgnQbn5E0hz55OLu5jvOkKQjPCW+9Aa==
    -----END CERTIFICATE-----
                """)
                .build());
    
            var listener1 = new LbListenerV2("listener1", LbListenerV2Args.builder()
                .protocol("TERMINATED_HTTPS")
                .protocolPort(8080)
                .loadbalancerId(loadbalancer1.lbLoadbalancerV2Id())
                .defaultTlsContainerRef(certificate1.elbCertificateId())
                .build());
    
        }
    }
    
    resources:
      loadbalancer1:
        type: flexibleengine:LbLoadbalancerV2
        properties:
          vipSubnetId: ${flexibleengine_vpc_subnet_v1.example_subnet.ipv4_subnet_id}
      certificate1:
        type: flexibleengine:ElbCertificate
        properties:
          domain: www.elb.com
          privateKey: |
            -----BEGIN RSA PRIVATE KEY-----
            MIIEowIBAAKCAQEAwZ5UJULAjWr7p6FVwGRQRjFN2s8tZ/6LC3X82fajpVsYqF1x
            qEuUDndDXVD09E4u83MS6HO6a3bIVQDp6/klnYldiE6Vp8HH5BSKaCWKVg8lGWg1
            UM9wZFnlryi14KgmpIFmcu9nA8yV/6MZAe6RSDmb3iyNBmiZ8aZhGw2pI1YwR+15
            MVqFFGB+7ExkziROi7L8CFCyCezK2/oOOvQsH1dzQ8z1JXWdg8/9Zx7Ktvgwu5PQ
            M3cJtSHX6iBPOkMU8Z8TugLlTqQXKZOEgwajwvQ5mf2DPkVgM08XAgaLJcLigwD5
            13koAdtJd5v+9irw+5LAuO3JclqwTvwy7u/YwwIDAQABAoIBACU9S5fjD9/jTMXA
            DRs08A+gGgZUxLn0xk+NAPX3LyB1tfdkCaFB8BccLzO6h3KZuwQOBPv6jkdvEDbx
            Nwyw3eA/9GJsIvKiHc0rejdvyPymaw9I8MA7NbXHaJrY7KpqDQyk6sx+aUTcy5jg
            iMXLWdwXYHhJ/1HVOo603oZyiS6HZeYU089NDUcX+1SJi3e5Ke0gPVXEqCq1O11/
            rh24bMxnwZo4PKBWdcMBN5Zf/4ij9vrZE+fFzW7vGBO48A5lvZxWU2U5t/OZQRtN
            1uLOHmMFa0FIF2aWbTVfwdUWAFsvAOkHj9VV8BXOUwKOUuEktdkfAlvrxmsFrO/H
            yDeYYPkCgYEA/S55CBbR0sMXpSZ56uRn8JHApZJhgkgvYr+FqDlJq/e92nAzf01P
            RoEBUajwrnf1ycevN/SDfbtWzq2XJGqhWdJmtpO16b7KBsC6BdRcH6dnOYh31jgA
            vABMIP3wzI4zSVTyxRE8LDuboytF1mSCeV5tHYPQTZNwrplDnLQhywcCgYEAw8Yc
            Uk/eiFr3hfH/ZohMfV5p82Qp7DNIGRzw8YtVG/3+vNXrAXW1VhugNhQY6L+zLtJC
            aKn84ooup0m3YCg0hvINqJuvzfsuzQgtjTXyaE0cEwsjUusOmiuj09vVx/3U7siK
            Hdjd2ICPCvQ6Q8tdi8jV320gMs05AtaBkZdsiWUCgYEAtLw4Kk4f+xTKDFsrLUNf
            75wcqhWVBiwBp7yQ7UX4EYsJPKZcHMRTk0EEcAbpyaJZE3I44vjp5ReXIHNLMfPs
            uvI34J4Rfot0LN3n7cFrAi2+wpNo+MOBwrNzpRmijGP2uKKrq4JiMjFbKV/6utGF
            Up7VxfwS904JYpqGaZctiIECgYA1A6nZtF0riY6ry/uAdXpZHL8ONNqRZtWoT0kD
            79otSVu5ISiRbaGcXsDExC52oKrSDAgFtbqQUiEOFg09UcXfoR6HwRkba2CiDwve
            yHQLQI5Qrdxz8Mk0gIrNrSM4FAmcW9vi9z4kCbQyoC5C+4gqeUlJRpDIkQBWP2Y4
            2ct/bQKBgHv8qCsQTZphOxc31BJPa2xVhuv18cEU3XLUrVfUZ/1f43JhLp7gynS2
            ep++LKUi9D0VGXY8bqvfJjbECoCeu85vl8NpCXwe/LoVoIn+7KaVIZMwqoGMfgNl
            nEqm7HWkNxHhf8A6En/IjleuddS1sf9e/x+TJN1Xhnt9W6pe7Fk1
            -----END RSA PRIVATE KEY-----        
          certificate: |
            -----BEGIN CERTIFICATE-----
            MIIDpTCCAo2gAwIBAgIJAKdmmOBYnFvoMA0GCSqGSIb3DQEBCwUAMGkxCzAJBgNV
            BAYTAnh4MQswCQYDVQQIDAJ4eDELMAkGA1UEBwwCeHgxCzAJBgNVBAoMAnh4MQsw
            CQYDVQQLDAJ4eDELMAkGA1UEAwwCeHgxGTAXBgkqhkiG9w0BCQEWCnh4QDE2My5j
            b20wHhcNMTcxMjA0MDM0MjQ5WhcNMjAxMjAzMDM0MjQ5WjBpMQswCQYDVQQGEwJ4
            eDELMAkGA1UECAwCeHgxCzAJBgNVBAcMAnh4MQswCQYDVQQKDAJ4eDELMAkGA1UE
            CwwCeHgxCzAJBgNVBAMMAnh4MRkwFwYJKoZIhvcNAQkBFgp4eEAxNjMuY29tMIIB
            IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwZ5UJULAjWr7p6FVwGRQRjFN
            2s8tZ/6LC3X82fajpVsYqF1xqEuUDndDXVD09E4u83MS6HO6a3bIVQDp6/klnYld
            iE6Vp8HH5BSKaCWKVg8lGWg1UM9wZFnlryi14KgmpIFmcu9nA8yV/6MZAe6RSDmb
            3iyNBmiZ8aZhGw2pI1YwR+15MVqFFGB+7ExkziROi7L8CFCyCezK2/oOOvQsH1dz
            Q8z1JXWdg8/9Zx7Ktvgwu5PQM3cJtSHX6iBPOkMU8Z8TugLlTqQXKZOEgwajwvQ5
            mf2DPkVgM08XAgaLJcLigwD513koAdtJd5v+9irw+5LAuO3JclqwTvwy7u/YwwID
            AQABo1AwTjAdBgNVHQ4EFgQUo5A2tIu+bcUfvGTD7wmEkhXKFjcwHwYDVR0jBBgw
            FoAUo5A2tIu+bcUfvGTD7wmEkhXKFjcwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0B
            AQsFAAOCAQEAWJ2rS6Mvlqk3GfEpboezx2J3X7l1z8Sxoqg6ntwB+rezvK3mc9H0
            83qcVeUcoH+0A0lSHyFN4FvRQL6X1hEheHarYwJK4agb231vb5erasuGO463eYEG
            r4SfTuOm7SyiV2xxbaBKrXJtpBp4WLL/s+LF+nklKjaOxkmxUX0sM4CTA7uFJypY
            c8Tdr8lDDNqoUtMD8BrUCJi+7lmMXRcC3Qi3oZJW76ja+kZA5mKVFPd1ATih8TbA
            i34R7EQDtFeiSvBdeKRsPp8c0KT8H1B4lXNkkCQs2WX5p4lm99+ZtLD4glw8x6Ic
            i1YhgnQbn5E0hz55OLu5jvOkKQjPCW+9Aa==
            -----END CERTIFICATE-----        
      listener1:
        type: flexibleengine:LbListenerV2
        properties:
          protocol: TERMINATED_HTTPS
          protocolPort: 8080
          loadbalancerId: ${loadbalancer1.lbLoadbalancerV2Id}
          defaultTlsContainerRef: ${certificate1.elbCertificateId}
    

    Create LbListenerV2 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LbListenerV2(name: string, args: LbListenerV2Args, opts?: CustomResourceOptions);
    @overload
    def LbListenerV2(resource_name: str,
                     args: LbListenerV2Args,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def LbListenerV2(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     loadbalancer_id: Optional[str] = None,
                     protocol_port: Optional[float] = None,
                     protocol: Optional[str] = None,
                     idle_timeout: Optional[float] = None,
                     request_timeout: Optional[float] = None,
                     admin_state_up: Optional[bool] = None,
                     lb_listener_v2_id: Optional[str] = None,
                     description: Optional[str] = None,
                     name: Optional[str] = None,
                     default_tls_container_ref: Optional[str] = None,
                     default_pool_id: Optional[str] = None,
                     region: Optional[str] = None,
                     http2_enable: Optional[bool] = None,
                     response_timeout: Optional[float] = None,
                     sni_container_refs: Optional[Sequence[str]] = None,
                     tags: Optional[Mapping[str, str]] = None,
                     tenant_id: Optional[str] = None,
                     timeouts: Optional[LbListenerV2TimeoutsArgs] = None,
                     tls_ciphers_policy: Optional[str] = None,
                     transparent_client_ip_enable: Optional[bool] = None)
    func NewLbListenerV2(ctx *Context, name string, args LbListenerV2Args, opts ...ResourceOption) (*LbListenerV2, error)
    public LbListenerV2(string name, LbListenerV2Args args, CustomResourceOptions? opts = null)
    public LbListenerV2(String name, LbListenerV2Args args)
    public LbListenerV2(String name, LbListenerV2Args args, CustomResourceOptions options)
    
    type: flexibleengine:LbListenerV2
    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 LbListenerV2Args
    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 LbListenerV2Args
    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 LbListenerV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LbListenerV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LbListenerV2Args
    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 lbListenerV2Resource = new Flexibleengine.LbListenerV2("lbListenerV2Resource", new()
    {
        LoadbalancerId = "string",
        ProtocolPort = 0,
        Protocol = "string",
        IdleTimeout = 0,
        RequestTimeout = 0,
        LbListenerV2Id = "string",
        Description = "string",
        Name = "string",
        DefaultTlsContainerRef = "string",
        DefaultPoolId = "string",
        Region = "string",
        Http2Enable = false,
        ResponseTimeout = 0,
        SniContainerRefs = new[]
        {
            "string",
        },
        Tags = 
        {
            { "string", "string" },
        },
        Timeouts = new Flexibleengine.Inputs.LbListenerV2TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        TlsCiphersPolicy = "string",
        TransparentClientIpEnable = false,
    });
    
    example, err := flexibleengine.NewLbListenerV2(ctx, "lbListenerV2Resource", &flexibleengine.LbListenerV2Args{
    	LoadbalancerId:         pulumi.String("string"),
    	ProtocolPort:           pulumi.Float64(0),
    	Protocol:               pulumi.String("string"),
    	IdleTimeout:            pulumi.Float64(0),
    	RequestTimeout:         pulumi.Float64(0),
    	LbListenerV2Id:         pulumi.String("string"),
    	Description:            pulumi.String("string"),
    	Name:                   pulumi.String("string"),
    	DefaultTlsContainerRef: pulumi.String("string"),
    	DefaultPoolId:          pulumi.String("string"),
    	Region:                 pulumi.String("string"),
    	Http2Enable:            pulumi.Bool(false),
    	ResponseTimeout:        pulumi.Float64(0),
    	SniContainerRefs: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Timeouts: &flexibleengine.LbListenerV2TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	TlsCiphersPolicy:          pulumi.String("string"),
    	TransparentClientIpEnable: pulumi.Bool(false),
    })
    
    var lbListenerV2Resource = new LbListenerV2("lbListenerV2Resource", LbListenerV2Args.builder()
        .loadbalancerId("string")
        .protocolPort(0)
        .protocol("string")
        .idleTimeout(0)
        .requestTimeout(0)
        .lbListenerV2Id("string")
        .description("string")
        .name("string")
        .defaultTlsContainerRef("string")
        .defaultPoolId("string")
        .region("string")
        .http2Enable(false)
        .responseTimeout(0)
        .sniContainerRefs("string")
        .tags(Map.of("string", "string"))
        .timeouts(LbListenerV2TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .tlsCiphersPolicy("string")
        .transparentClientIpEnable(false)
        .build());
    
    lb_listener_v2_resource = flexibleengine.LbListenerV2("lbListenerV2Resource",
        loadbalancer_id="string",
        protocol_port=0,
        protocol="string",
        idle_timeout=0,
        request_timeout=0,
        lb_listener_v2_id="string",
        description="string",
        name="string",
        default_tls_container_ref="string",
        default_pool_id="string",
        region="string",
        http2_enable=False,
        response_timeout=0,
        sni_container_refs=["string"],
        tags={
            "string": "string",
        },
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        tls_ciphers_policy="string",
        transparent_client_ip_enable=False)
    
    const lbListenerV2Resource = new flexibleengine.LbListenerV2("lbListenerV2Resource", {
        loadbalancerId: "string",
        protocolPort: 0,
        protocol: "string",
        idleTimeout: 0,
        requestTimeout: 0,
        lbListenerV2Id: "string",
        description: "string",
        name: "string",
        defaultTlsContainerRef: "string",
        defaultPoolId: "string",
        region: "string",
        http2Enable: false,
        responseTimeout: 0,
        sniContainerRefs: ["string"],
        tags: {
            string: "string",
        },
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        tlsCiphersPolicy: "string",
        transparentClientIpEnable: false,
    });
    
    type: flexibleengine:LbListenerV2
    properties:
        defaultPoolId: string
        defaultTlsContainerRef: string
        description: string
        http2Enable: false
        idleTimeout: 0
        lbListenerV2Id: string
        loadbalancerId: string
        name: string
        protocol: string
        protocolPort: 0
        region: string
        requestTimeout: 0
        responseTimeout: 0
        sniContainerRefs:
            - string
        tags:
            string: string
        timeouts:
            create: string
            delete: string
            update: string
        tlsCiphersPolicy: string
        transparentClientIpEnable: false
    

    LbListenerV2 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 LbListenerV2 resource accepts the following input properties:

    LoadbalancerId string
    The load balancer on which to provision this listener. Changing this creates a new listener.
    Protocol string
    The protocol - can either be TCP, UDP, HTTP or TERMINATED_HTTPS. Changing this creates a new listener.
    ProtocolPort double
    The port on which to listen for client traffic. Changing this creates a new listener.
    AdminStateUp bool

    Deprecated: Deprecated

    DefaultPoolId string
    The ID of the default pool with which the listener is associated. Changing this creates a new listener.
    DefaultTlsContainerRef string
    A reference to a Barbican Secrets container which stores TLS information. This is required if the protocol is TERMINATED_HTTPS. See here for more information.
    Description string
    Human-readable description for the listener.
    Http2Enable bool
    Specifies whether to use HTTP/2. The default value is false. This parameter is valid only when the protocol is set to TERMINATED_HTTPS.
    IdleTimeout double
    Specifies the idle timeout duration, in seconds.

    • For TCP listeners, the value ranges from 10 to 4000, and the default value is 300.
    • For HTTP and HTTPS listeners, the value ranges from 1 to 300, and the default value is 60.
    • For UDP listeners, this parameter does not take effect.
    LbListenerV2Id string
    The unique ID for the listener.
    Name string
    Human-readable name for the listener. Does not have to be unique.
    Region string
    The region in which to create the listener resource. If omitted, the region argument of the provider is used. Changing this creates a new listener.
    RequestTimeout double
    Specifies the timeout duration for waiting for a request from a client, in seconds. This parameter is available only for HTTP and HTTPS listeners. The value ranges from 1 to 300, and the default value is 60.
    ResponseTimeout double
    Specifies the timeout duration for waiting for a request from a backend server, in seconds. This parameter is available only for HTTP and HTTPS listeners. The value ranges from 1 to 300, and the default value is 60.
    SniContainerRefs List<string>
    A list of references to Barbican Secrets containers which store SNI information. See here for more information.
    Tags Dictionary<string, string>
    The key/value pairs to associate with the listener.
    TenantId string

    Deprecated: Deprecated

    Timeouts LbListenerV2Timeouts
    TlsCiphersPolicy string
    Specifies the security policy used by the listener. This parameter is valid only when the load balancer protocol is set to TERMINATED_HTTPS. The value can be tls-1-0, tls-1-1, tls-1-2, or tls-1-2-strict, and the default value is tls-1-0. For details of cipher suites for each security policy, see the table below.

    TransparentClientIpEnable bool
    Specifies whether to pass source IP addresses of the clients to backend servers.

    • For TCP and UDP listeners, the value can be true or false, and the default value is false.
    • For HTTP and HTTPS listeners, the value can only be true.
    LoadbalancerId string
    The load balancer on which to provision this listener. Changing this creates a new listener.
    Protocol string
    The protocol - can either be TCP, UDP, HTTP or TERMINATED_HTTPS. Changing this creates a new listener.
    ProtocolPort float64
    The port on which to listen for client traffic. Changing this creates a new listener.
    AdminStateUp bool

    Deprecated: Deprecated

    DefaultPoolId string
    The ID of the default pool with which the listener is associated. Changing this creates a new listener.
    DefaultTlsContainerRef string
    A reference to a Barbican Secrets container which stores TLS information. This is required if the protocol is TERMINATED_HTTPS. See here for more information.
    Description string
    Human-readable description for the listener.
    Http2Enable bool
    Specifies whether to use HTTP/2. The default value is false. This parameter is valid only when the protocol is set to TERMINATED_HTTPS.
    IdleTimeout float64
    Specifies the idle timeout duration, in seconds.

    • For TCP listeners, the value ranges from 10 to 4000, and the default value is 300.
    • For HTTP and HTTPS listeners, the value ranges from 1 to 300, and the default value is 60.
    • For UDP listeners, this parameter does not take effect.
    LbListenerV2Id string
    The unique ID for the listener.
    Name string
    Human-readable name for the listener. Does not have to be unique.
    Region string
    The region in which to create the listener resource. If omitted, the region argument of the provider is used. Changing this creates a new listener.
    RequestTimeout float64
    Specifies the timeout duration for waiting for a request from a client, in seconds. This parameter is available only for HTTP and HTTPS listeners. The value ranges from 1 to 300, and the default value is 60.
    ResponseTimeout float64
    Specifies the timeout duration for waiting for a request from a backend server, in seconds. This parameter is available only for HTTP and HTTPS listeners. The value ranges from 1 to 300, and the default value is 60.
    SniContainerRefs []string
    A list of references to Barbican Secrets containers which store SNI information. See here for more information.
    Tags map[string]string
    The key/value pairs to associate with the listener.
    TenantId string

    Deprecated: Deprecated

    Timeouts LbListenerV2TimeoutsArgs
    TlsCiphersPolicy string
    Specifies the security policy used by the listener. This parameter is valid only when the load balancer protocol is set to TERMINATED_HTTPS. The value can be tls-1-0, tls-1-1, tls-1-2, or tls-1-2-strict, and the default value is tls-1-0. For details of cipher suites for each security policy, see the table below.

    TransparentClientIpEnable bool
    Specifies whether to pass source IP addresses of the clients to backend servers.

    • For TCP and UDP listeners, the value can be true or false, and the default value is false.
    • For HTTP and HTTPS listeners, the value can only be true.
    loadbalancerId String
    The load balancer on which to provision this listener. Changing this creates a new listener.
    protocol String
    The protocol - can either be TCP, UDP, HTTP or TERMINATED_HTTPS. Changing this creates a new listener.
    protocolPort Double
    The port on which to listen for client traffic. Changing this creates a new listener.
    adminStateUp Boolean

    Deprecated: Deprecated

    defaultPoolId String
    The ID of the default pool with which the listener is associated. Changing this creates a new listener.
    defaultTlsContainerRef String
    A reference to a Barbican Secrets container which stores TLS information. This is required if the protocol is TERMINATED_HTTPS. See here for more information.
    description String
    Human-readable description for the listener.
    http2Enable Boolean
    Specifies whether to use HTTP/2. The default value is false. This parameter is valid only when the protocol is set to TERMINATED_HTTPS.
    idleTimeout Double
    Specifies the idle timeout duration, in seconds.

    • For TCP listeners, the value ranges from 10 to 4000, and the default value is 300.
    • For HTTP and HTTPS listeners, the value ranges from 1 to 300, and the default value is 60.
    • For UDP listeners, this parameter does not take effect.
    lbListenerV2Id String
    The unique ID for the listener.
    name String
    Human-readable name for the listener. Does not have to be unique.
    region String
    The region in which to create the listener resource. If omitted, the region argument of the provider is used. Changing this creates a new listener.
    requestTimeout Double
    Specifies the timeout duration for waiting for a request from a client, in seconds. This parameter is available only for HTTP and HTTPS listeners. The value ranges from 1 to 300, and the default value is 60.
    responseTimeout Double
    Specifies the timeout duration for waiting for a request from a backend server, in seconds. This parameter is available only for HTTP and HTTPS listeners. The value ranges from 1 to 300, and the default value is 60.
    sniContainerRefs List<String>
    A list of references to Barbican Secrets containers which store SNI information. See here for more information.
    tags Map<String,String>
    The key/value pairs to associate with the listener.
    tenantId String

    Deprecated: Deprecated

    timeouts LbListenerV2Timeouts
    tlsCiphersPolicy String
    Specifies the security policy used by the listener. This parameter is valid only when the load balancer protocol is set to TERMINATED_HTTPS. The value can be tls-1-0, tls-1-1, tls-1-2, or tls-1-2-strict, and the default value is tls-1-0. For details of cipher suites for each security policy, see the table below.

    transparentClientIpEnable Boolean
    Specifies whether to pass source IP addresses of the clients to backend servers.

    • For TCP and UDP listeners, the value can be true or false, and the default value is false.
    • For HTTP and HTTPS listeners, the value can only be true.
    loadbalancerId string
    The load balancer on which to provision this listener. Changing this creates a new listener.
    protocol string
    The protocol - can either be TCP, UDP, HTTP or TERMINATED_HTTPS. Changing this creates a new listener.
    protocolPort number
    The port on which to listen for client traffic. Changing this creates a new listener.
    adminStateUp boolean

    Deprecated: Deprecated

    defaultPoolId string
    The ID of the default pool with which the listener is associated. Changing this creates a new listener.
    defaultTlsContainerRef string
    A reference to a Barbican Secrets container which stores TLS information. This is required if the protocol is TERMINATED_HTTPS. See here for more information.
    description string
    Human-readable description for the listener.
    http2Enable boolean
    Specifies whether to use HTTP/2. The default value is false. This parameter is valid only when the protocol is set to TERMINATED_HTTPS.
    idleTimeout number
    Specifies the idle timeout duration, in seconds.

    • For TCP listeners, the value ranges from 10 to 4000, and the default value is 300.
    • For HTTP and HTTPS listeners, the value ranges from 1 to 300, and the default value is 60.
    • For UDP listeners, this parameter does not take effect.
    lbListenerV2Id string
    The unique ID for the listener.
    name string
    Human-readable name for the listener. Does not have to be unique.
    region string
    The region in which to create the listener resource. If omitted, the region argument of the provider is used. Changing this creates a new listener.
    requestTimeout number
    Specifies the timeout duration for waiting for a request from a client, in seconds. This parameter is available only for HTTP and HTTPS listeners. The value ranges from 1 to 300, and the default value is 60.
    responseTimeout number
    Specifies the timeout duration for waiting for a request from a backend server, in seconds. This parameter is available only for HTTP and HTTPS listeners. The value ranges from 1 to 300, and the default value is 60.
    sniContainerRefs string[]
    A list of references to Barbican Secrets containers which store SNI information. See here for more information.
    tags {[key: string]: string}
    The key/value pairs to associate with the listener.
    tenantId string

    Deprecated: Deprecated

    timeouts LbListenerV2Timeouts
    tlsCiphersPolicy string
    Specifies the security policy used by the listener. This parameter is valid only when the load balancer protocol is set to TERMINATED_HTTPS. The value can be tls-1-0, tls-1-1, tls-1-2, or tls-1-2-strict, and the default value is tls-1-0. For details of cipher suites for each security policy, see the table below.

    transparentClientIpEnable boolean
    Specifies whether to pass source IP addresses of the clients to backend servers.

    • For TCP and UDP listeners, the value can be true or false, and the default value is false.
    • For HTTP and HTTPS listeners, the value can only be true.
    loadbalancer_id str
    The load balancer on which to provision this listener. Changing this creates a new listener.
    protocol str
    The protocol - can either be TCP, UDP, HTTP or TERMINATED_HTTPS. Changing this creates a new listener.
    protocol_port float
    The port on which to listen for client traffic. Changing this creates a new listener.
    admin_state_up bool

    Deprecated: Deprecated

    default_pool_id str
    The ID of the default pool with which the listener is associated. Changing this creates a new listener.
    default_tls_container_ref str
    A reference to a Barbican Secrets container which stores TLS information. This is required if the protocol is TERMINATED_HTTPS. See here for more information.
    description str
    Human-readable description for the listener.
    http2_enable bool
    Specifies whether to use HTTP/2. The default value is false. This parameter is valid only when the protocol is set to TERMINATED_HTTPS.
    idle_timeout float
    Specifies the idle timeout duration, in seconds.

    • For TCP listeners, the value ranges from 10 to 4000, and the default value is 300.
    • For HTTP and HTTPS listeners, the value ranges from 1 to 300, and the default value is 60.
    • For UDP listeners, this parameter does not take effect.
    lb_listener_v2_id str
    The unique ID for the listener.
    name str
    Human-readable name for the listener. Does not have to be unique.
    region str
    The region in which to create the listener resource. If omitted, the region argument of the provider is used. Changing this creates a new listener.
    request_timeout float
    Specifies the timeout duration for waiting for a request from a client, in seconds. This parameter is available only for HTTP and HTTPS listeners. The value ranges from 1 to 300, and the default value is 60.
    response_timeout float
    Specifies the timeout duration for waiting for a request from a backend server, in seconds. This parameter is available only for HTTP and HTTPS listeners. The value ranges from 1 to 300, and the default value is 60.
    sni_container_refs Sequence[str]
    A list of references to Barbican Secrets containers which store SNI information. See here for more information.
    tags Mapping[str, str]
    The key/value pairs to associate with the listener.
    tenant_id str

    Deprecated: Deprecated

    timeouts LbListenerV2TimeoutsArgs
    tls_ciphers_policy str
    Specifies the security policy used by the listener. This parameter is valid only when the load balancer protocol is set to TERMINATED_HTTPS. The value can be tls-1-0, tls-1-1, tls-1-2, or tls-1-2-strict, and the default value is tls-1-0. For details of cipher suites for each security policy, see the table below.

    transparent_client_ip_enable bool
    Specifies whether to pass source IP addresses of the clients to backend servers.

    • For TCP and UDP listeners, the value can be true or false, and the default value is false.
    • For HTTP and HTTPS listeners, the value can only be true.
    loadbalancerId String
    The load balancer on which to provision this listener. Changing this creates a new listener.
    protocol String
    The protocol - can either be TCP, UDP, HTTP or TERMINATED_HTTPS. Changing this creates a new listener.
    protocolPort Number
    The port on which to listen for client traffic. Changing this creates a new listener.
    adminStateUp Boolean

    Deprecated: Deprecated

    defaultPoolId String
    The ID of the default pool with which the listener is associated. Changing this creates a new listener.
    defaultTlsContainerRef String
    A reference to a Barbican Secrets container which stores TLS information. This is required if the protocol is TERMINATED_HTTPS. See here for more information.
    description String
    Human-readable description for the listener.
    http2Enable Boolean
    Specifies whether to use HTTP/2. The default value is false. This parameter is valid only when the protocol is set to TERMINATED_HTTPS.
    idleTimeout Number
    Specifies the idle timeout duration, in seconds.

    • For TCP listeners, the value ranges from 10 to 4000, and the default value is 300.
    • For HTTP and HTTPS listeners, the value ranges from 1 to 300, and the default value is 60.
    • For UDP listeners, this parameter does not take effect.
    lbListenerV2Id String
    The unique ID for the listener.
    name String
    Human-readable name for the listener. Does not have to be unique.
    region String
    The region in which to create the listener resource. If omitted, the region argument of the provider is used. Changing this creates a new listener.
    requestTimeout Number
    Specifies the timeout duration for waiting for a request from a client, in seconds. This parameter is available only for HTTP and HTTPS listeners. The value ranges from 1 to 300, and the default value is 60.
    responseTimeout Number
    Specifies the timeout duration for waiting for a request from a backend server, in seconds. This parameter is available only for HTTP and HTTPS listeners. The value ranges from 1 to 300, and the default value is 60.
    sniContainerRefs List<String>
    A list of references to Barbican Secrets containers which store SNI information. See here for more information.
    tags Map<String>
    The key/value pairs to associate with the listener.
    tenantId String

    Deprecated: Deprecated

    timeouts Property Map
    tlsCiphersPolicy String
    Specifies the security policy used by the listener. This parameter is valid only when the load balancer protocol is set to TERMINATED_HTTPS. The value can be tls-1-0, tls-1-1, tls-1-2, or tls-1-2-strict, and the default value is tls-1-0. For details of cipher suites for each security policy, see the table below.

    transparentClientIpEnable Boolean
    Specifies whether to pass source IP addresses of the clients to backend servers.

    • For TCP and UDP listeners, the value can be true or false, and the default value is false.
    • For HTTP and HTTPS listeners, the value can only be true.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing LbListenerV2 Resource

    Get an existing LbListenerV2 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?: LbListenerV2State, opts?: CustomResourceOptions): LbListenerV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            admin_state_up: Optional[bool] = None,
            default_pool_id: Optional[str] = None,
            default_tls_container_ref: Optional[str] = None,
            description: Optional[str] = None,
            http2_enable: Optional[bool] = None,
            idle_timeout: Optional[float] = None,
            lb_listener_v2_id: Optional[str] = None,
            loadbalancer_id: Optional[str] = None,
            name: Optional[str] = None,
            protocol: Optional[str] = None,
            protocol_port: Optional[float] = None,
            region: Optional[str] = None,
            request_timeout: Optional[float] = None,
            response_timeout: Optional[float] = None,
            sni_container_refs: Optional[Sequence[str]] = None,
            tags: Optional[Mapping[str, str]] = None,
            tenant_id: Optional[str] = None,
            timeouts: Optional[LbListenerV2TimeoutsArgs] = None,
            tls_ciphers_policy: Optional[str] = None,
            transparent_client_ip_enable: Optional[bool] = None) -> LbListenerV2
    func GetLbListenerV2(ctx *Context, name string, id IDInput, state *LbListenerV2State, opts ...ResourceOption) (*LbListenerV2, error)
    public static LbListenerV2 Get(string name, Input<string> id, LbListenerV2State? state, CustomResourceOptions? opts = null)
    public static LbListenerV2 get(String name, Output<String> id, LbListenerV2State state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:LbListenerV2    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AdminStateUp bool

    Deprecated: Deprecated

    DefaultPoolId string
    The ID of the default pool with which the listener is associated. Changing this creates a new listener.
    DefaultTlsContainerRef string
    A reference to a Barbican Secrets container which stores TLS information. This is required if the protocol is TERMINATED_HTTPS. See here for more information.
    Description string
    Human-readable description for the listener.
    Http2Enable bool
    Specifies whether to use HTTP/2. The default value is false. This parameter is valid only when the protocol is set to TERMINATED_HTTPS.
    IdleTimeout double
    Specifies the idle timeout duration, in seconds.

    • For TCP listeners, the value ranges from 10 to 4000, and the default value is 300.
    • For HTTP and HTTPS listeners, the value ranges from 1 to 300, and the default value is 60.
    • For UDP listeners, this parameter does not take effect.
    LbListenerV2Id string
    The unique ID for the listener.
    LoadbalancerId string
    The load balancer on which to provision this listener. Changing this creates a new listener.
    Name string
    Human-readable name for the listener. Does not have to be unique.
    Protocol string
    The protocol - can either be TCP, UDP, HTTP or TERMINATED_HTTPS. Changing this creates a new listener.
    ProtocolPort double
    The port on which to listen for client traffic. Changing this creates a new listener.
    Region string
    The region in which to create the listener resource. If omitted, the region argument of the provider is used. Changing this creates a new listener.
    RequestTimeout double
    Specifies the timeout duration for waiting for a request from a client, in seconds. This parameter is available only for HTTP and HTTPS listeners. The value ranges from 1 to 300, and the default value is 60.
    ResponseTimeout double
    Specifies the timeout duration for waiting for a request from a backend server, in seconds. This parameter is available only for HTTP and HTTPS listeners. The value ranges from 1 to 300, and the default value is 60.
    SniContainerRefs List<string>
    A list of references to Barbican Secrets containers which store SNI information. See here for more information.
    Tags Dictionary<string, string>
    The key/value pairs to associate with the listener.
    TenantId string

    Deprecated: Deprecated

    Timeouts LbListenerV2Timeouts
    TlsCiphersPolicy string
    Specifies the security policy used by the listener. This parameter is valid only when the load balancer protocol is set to TERMINATED_HTTPS. The value can be tls-1-0, tls-1-1, tls-1-2, or tls-1-2-strict, and the default value is tls-1-0. For details of cipher suites for each security policy, see the table below.

    TransparentClientIpEnable bool
    Specifies whether to pass source IP addresses of the clients to backend servers.

    • For TCP and UDP listeners, the value can be true or false, and the default value is false.
    • For HTTP and HTTPS listeners, the value can only be true.
    AdminStateUp bool

    Deprecated: Deprecated

    DefaultPoolId string
    The ID of the default pool with which the listener is associated. Changing this creates a new listener.
    DefaultTlsContainerRef string
    A reference to a Barbican Secrets container which stores TLS information. This is required if the protocol is TERMINATED_HTTPS. See here for more information.
    Description string
    Human-readable description for the listener.
    Http2Enable bool
    Specifies whether to use HTTP/2. The default value is false. This parameter is valid only when the protocol is set to TERMINATED_HTTPS.
    IdleTimeout float64
    Specifies the idle timeout duration, in seconds.

    • For TCP listeners, the value ranges from 10 to 4000, and the default value is 300.
    • For HTTP and HTTPS listeners, the value ranges from 1 to 300, and the default value is 60.
    • For UDP listeners, this parameter does not take effect.
    LbListenerV2Id string
    The unique ID for the listener.
    LoadbalancerId string
    The load balancer on which to provision this listener. Changing this creates a new listener.
    Name string
    Human-readable name for the listener. Does not have to be unique.
    Protocol string
    The protocol - can either be TCP, UDP, HTTP or TERMINATED_HTTPS. Changing this creates a new listener.
    ProtocolPort float64
    The port on which to listen for client traffic. Changing this creates a new listener.
    Region string
    The region in which to create the listener resource. If omitted, the region argument of the provider is used. Changing this creates a new listener.
    RequestTimeout float64
    Specifies the timeout duration for waiting for a request from a client, in seconds. This parameter is available only for HTTP and HTTPS listeners. The value ranges from 1 to 300, and the default value is 60.
    ResponseTimeout float64
    Specifies the timeout duration for waiting for a request from a backend server, in seconds. This parameter is available only for HTTP and HTTPS listeners. The value ranges from 1 to 300, and the default value is 60.
    SniContainerRefs []string
    A list of references to Barbican Secrets containers which store SNI information. See here for more information.
    Tags map[string]string
    The key/value pairs to associate with the listener.
    TenantId string

    Deprecated: Deprecated

    Timeouts LbListenerV2TimeoutsArgs
    TlsCiphersPolicy string
    Specifies the security policy used by the listener. This parameter is valid only when the load balancer protocol is set to TERMINATED_HTTPS. The value can be tls-1-0, tls-1-1, tls-1-2, or tls-1-2-strict, and the default value is tls-1-0. For details of cipher suites for each security policy, see the table below.

    TransparentClientIpEnable bool
    Specifies whether to pass source IP addresses of the clients to backend servers.

    • For TCP and UDP listeners, the value can be true or false, and the default value is false.
    • For HTTP and HTTPS listeners, the value can only be true.
    adminStateUp Boolean

    Deprecated: Deprecated

    defaultPoolId String
    The ID of the default pool with which the listener is associated. Changing this creates a new listener.
    defaultTlsContainerRef String
    A reference to a Barbican Secrets container which stores TLS information. This is required if the protocol is TERMINATED_HTTPS. See here for more information.
    description String
    Human-readable description for the listener.
    http2Enable Boolean
    Specifies whether to use HTTP/2. The default value is false. This parameter is valid only when the protocol is set to TERMINATED_HTTPS.
    idleTimeout Double
    Specifies the idle timeout duration, in seconds.

    • For TCP listeners, the value ranges from 10 to 4000, and the default value is 300.
    • For HTTP and HTTPS listeners, the value ranges from 1 to 300, and the default value is 60.
    • For UDP listeners, this parameter does not take effect.
    lbListenerV2Id String
    The unique ID for the listener.
    loadbalancerId String
    The load balancer on which to provision this listener. Changing this creates a new listener.
    name String
    Human-readable name for the listener. Does not have to be unique.
    protocol String
    The protocol - can either be TCP, UDP, HTTP or TERMINATED_HTTPS. Changing this creates a new listener.
    protocolPort Double
    The port on which to listen for client traffic. Changing this creates a new listener.
    region String
    The region in which to create the listener resource. If omitted, the region argument of the provider is used. Changing this creates a new listener.
    requestTimeout Double
    Specifies the timeout duration for waiting for a request from a client, in seconds. This parameter is available only for HTTP and HTTPS listeners. The value ranges from 1 to 300, and the default value is 60.
    responseTimeout Double
    Specifies the timeout duration for waiting for a request from a backend server, in seconds. This parameter is available only for HTTP and HTTPS listeners. The value ranges from 1 to 300, and the default value is 60.
    sniContainerRefs List<String>
    A list of references to Barbican Secrets containers which store SNI information. See here for more information.
    tags Map<String,String>
    The key/value pairs to associate with the listener.
    tenantId String

    Deprecated: Deprecated

    timeouts LbListenerV2Timeouts
    tlsCiphersPolicy String
    Specifies the security policy used by the listener. This parameter is valid only when the load balancer protocol is set to TERMINATED_HTTPS. The value can be tls-1-0, tls-1-1, tls-1-2, or tls-1-2-strict, and the default value is tls-1-0. For details of cipher suites for each security policy, see the table below.

    transparentClientIpEnable Boolean
    Specifies whether to pass source IP addresses of the clients to backend servers.

    • For TCP and UDP listeners, the value can be true or false, and the default value is false.
    • For HTTP and HTTPS listeners, the value can only be true.
    adminStateUp boolean

    Deprecated: Deprecated

    defaultPoolId string
    The ID of the default pool with which the listener is associated. Changing this creates a new listener.
    defaultTlsContainerRef string
    A reference to a Barbican Secrets container which stores TLS information. This is required if the protocol is TERMINATED_HTTPS. See here for more information.
    description string
    Human-readable description for the listener.
    http2Enable boolean
    Specifies whether to use HTTP/2. The default value is false. This parameter is valid only when the protocol is set to TERMINATED_HTTPS.
    idleTimeout number
    Specifies the idle timeout duration, in seconds.

    • For TCP listeners, the value ranges from 10 to 4000, and the default value is 300.
    • For HTTP and HTTPS listeners, the value ranges from 1 to 300, and the default value is 60.
    • For UDP listeners, this parameter does not take effect.
    lbListenerV2Id string
    The unique ID for the listener.
    loadbalancerId string
    The load balancer on which to provision this listener. Changing this creates a new listener.
    name string
    Human-readable name for the listener. Does not have to be unique.
    protocol string
    The protocol - can either be TCP, UDP, HTTP or TERMINATED_HTTPS. Changing this creates a new listener.
    protocolPort number
    The port on which to listen for client traffic. Changing this creates a new listener.
    region string
    The region in which to create the listener resource. If omitted, the region argument of the provider is used. Changing this creates a new listener.
    requestTimeout number
    Specifies the timeout duration for waiting for a request from a client, in seconds. This parameter is available only for HTTP and HTTPS listeners. The value ranges from 1 to 300, and the default value is 60.
    responseTimeout number
    Specifies the timeout duration for waiting for a request from a backend server, in seconds. This parameter is available only for HTTP and HTTPS listeners. The value ranges from 1 to 300, and the default value is 60.
    sniContainerRefs string[]
    A list of references to Barbican Secrets containers which store SNI information. See here for more information.
    tags {[key: string]: string}
    The key/value pairs to associate with the listener.
    tenantId string

    Deprecated: Deprecated

    timeouts LbListenerV2Timeouts
    tlsCiphersPolicy string
    Specifies the security policy used by the listener. This parameter is valid only when the load balancer protocol is set to TERMINATED_HTTPS. The value can be tls-1-0, tls-1-1, tls-1-2, or tls-1-2-strict, and the default value is tls-1-0. For details of cipher suites for each security policy, see the table below.

    transparentClientIpEnable boolean
    Specifies whether to pass source IP addresses of the clients to backend servers.

    • For TCP and UDP listeners, the value can be true or false, and the default value is false.
    • For HTTP and HTTPS listeners, the value can only be true.
    admin_state_up bool

    Deprecated: Deprecated

    default_pool_id str
    The ID of the default pool with which the listener is associated. Changing this creates a new listener.
    default_tls_container_ref str
    A reference to a Barbican Secrets container which stores TLS information. This is required if the protocol is TERMINATED_HTTPS. See here for more information.
    description str
    Human-readable description for the listener.
    http2_enable bool
    Specifies whether to use HTTP/2. The default value is false. This parameter is valid only when the protocol is set to TERMINATED_HTTPS.
    idle_timeout float
    Specifies the idle timeout duration, in seconds.

    • For TCP listeners, the value ranges from 10 to 4000, and the default value is 300.
    • For HTTP and HTTPS listeners, the value ranges from 1 to 300, and the default value is 60.
    • For UDP listeners, this parameter does not take effect.
    lb_listener_v2_id str
    The unique ID for the listener.
    loadbalancer_id str
    The load balancer on which to provision this listener. Changing this creates a new listener.
    name str
    Human-readable name for the listener. Does not have to be unique.
    protocol str
    The protocol - can either be TCP, UDP, HTTP or TERMINATED_HTTPS. Changing this creates a new listener.
    protocol_port float
    The port on which to listen for client traffic. Changing this creates a new listener.
    region str
    The region in which to create the listener resource. If omitted, the region argument of the provider is used. Changing this creates a new listener.
    request_timeout float
    Specifies the timeout duration for waiting for a request from a client, in seconds. This parameter is available only for HTTP and HTTPS listeners. The value ranges from 1 to 300, and the default value is 60.
    response_timeout float
    Specifies the timeout duration for waiting for a request from a backend server, in seconds. This parameter is available only for HTTP and HTTPS listeners. The value ranges from 1 to 300, and the default value is 60.
    sni_container_refs Sequence[str]
    A list of references to Barbican Secrets containers which store SNI information. See here for more information.
    tags Mapping[str, str]
    The key/value pairs to associate with the listener.
    tenant_id str

    Deprecated: Deprecated

    timeouts LbListenerV2TimeoutsArgs
    tls_ciphers_policy str
    Specifies the security policy used by the listener. This parameter is valid only when the load balancer protocol is set to TERMINATED_HTTPS. The value can be tls-1-0, tls-1-1, tls-1-2, or tls-1-2-strict, and the default value is tls-1-0. For details of cipher suites for each security policy, see the table below.

    transparent_client_ip_enable bool
    Specifies whether to pass source IP addresses of the clients to backend servers.

    • For TCP and UDP listeners, the value can be true or false, and the default value is false.
    • For HTTP and HTTPS listeners, the value can only be true.
    adminStateUp Boolean

    Deprecated: Deprecated

    defaultPoolId String
    The ID of the default pool with which the listener is associated. Changing this creates a new listener.
    defaultTlsContainerRef String
    A reference to a Barbican Secrets container which stores TLS information. This is required if the protocol is TERMINATED_HTTPS. See here for more information.
    description String
    Human-readable description for the listener.
    http2Enable Boolean
    Specifies whether to use HTTP/2. The default value is false. This parameter is valid only when the protocol is set to TERMINATED_HTTPS.
    idleTimeout Number
    Specifies the idle timeout duration, in seconds.

    • For TCP listeners, the value ranges from 10 to 4000, and the default value is 300.
    • For HTTP and HTTPS listeners, the value ranges from 1 to 300, and the default value is 60.
    • For UDP listeners, this parameter does not take effect.
    lbListenerV2Id String
    The unique ID for the listener.
    loadbalancerId String
    The load balancer on which to provision this listener. Changing this creates a new listener.
    name String
    Human-readable name for the listener. Does not have to be unique.
    protocol String
    The protocol - can either be TCP, UDP, HTTP or TERMINATED_HTTPS. Changing this creates a new listener.
    protocolPort Number
    The port on which to listen for client traffic. Changing this creates a new listener.
    region String
    The region in which to create the listener resource. If omitted, the region argument of the provider is used. Changing this creates a new listener.
    requestTimeout Number
    Specifies the timeout duration for waiting for a request from a client, in seconds. This parameter is available only for HTTP and HTTPS listeners. The value ranges from 1 to 300, and the default value is 60.
    responseTimeout Number
    Specifies the timeout duration for waiting for a request from a backend server, in seconds. This parameter is available only for HTTP and HTTPS listeners. The value ranges from 1 to 300, and the default value is 60.
    sniContainerRefs List<String>
    A list of references to Barbican Secrets containers which store SNI information. See here for more information.
    tags Map<String>
    The key/value pairs to associate with the listener.
    tenantId String

    Deprecated: Deprecated

    timeouts Property Map
    tlsCiphersPolicy String
    Specifies the security policy used by the listener. This parameter is valid only when the load balancer protocol is set to TERMINATED_HTTPS. The value can be tls-1-0, tls-1-1, tls-1-2, or tls-1-2-strict, and the default value is tls-1-0. For details of cipher suites for each security policy, see the table below.

    transparentClientIpEnable Boolean
    Specifies whether to pass source IP addresses of the clients to backend servers.

    • For TCP and UDP listeners, the value can be true or false, and the default value is false.
    • For HTTP and HTTPS listeners, the value can only be true.

    Supporting Types

    LbListenerV2Timeouts, LbListenerV2TimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud