flexibleengine.LbListenerV2
Explore with Pulumi AI
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",
priv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wZ5UJULAjWr7p6FVwGRQRjFN
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-----
`,
});
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/1HVOo603oZyiS6HZeYU089NDUcX+1SJi3e5Ke0gPVXEqCq1O11/
rh24bMxnwZo4PKBWdcMBN5Zf/4ij9vrZE+fFzW7vGBO48A5lvZxWU2U5t/OZQRtN
1uLOHmMFa0FIF2aWbTVfwdUWAFsvAOkHj9VV8BXOUwKOUuEktdkfAlvrxmsFrO/H
yDeYYPkCgYEA/S55CBbR0sMXpSZ56uRn8JHApZJhgkgvYr+FqDlJq/e92nAzf01P
RoEBUajwrnf1ycevN/SDfbtWzq2XJGqhWdJmtpO16b7KBsC6BdRcH6dnOYh31jgA
vABMIP3wzI4zSVTyxRE8LDuboytF1mSCeV5tHYPQTZNwrplDnLQhywcCgYEAw8Yc
Uk/eiFr3hfH/ZohMfV5p82Qp7DNIGRzw8YtVG/3+vNXrAXW1V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KoZIhvcNAQkBFgp4eEAxNjMuY29tMIIB
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
MVqFFGB+7ExkziROi7L8CFCyCezK2/oOOvQsH1dzQ8z1JXWdg8/9Zx7Ktvgwu5PQ
M3cJtSHX6iBPOkMU8Z8TugLlTqQXKZOEgwajwvQ5mf2DPkVgM08XAgaLJcLigwD5
13koAdtJd5v+9irw+5LAuO3JclqwTvwy7u/YwwIDAQABAoIBACU9S5fjD9/jTMXA
DRs08A+gGgZUxLn0xk+NAPX3LyB1tfdkCaFB8BccLzO6h3KZuwQOBPv6jkdvEDbx
Nwyw3eA/9GJsIvKiHc0rejdvyPymaw9I8MA7NbXHaJrY7KpqDQyk6sx+aUTcy5jg
iMXLWdwXYHhJ/1HVOo603oZyiS6HZeYU089NDUcX+1SJi3e5Ke0gPVXEqCq1O11/
rh24bMxnwZo4PKBWdcMBN5Zf/4ij9vrZE+fFzW7vGBO48A5lvZxWU2U5t/OZQRtN
1uLOHmMFa0FIF2aWbTVfwdUWAFsvAOkHj9VV8BXOUwKOUuEktdkfA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VFPd1ATih8TbA
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/9GJsIvKiHc0rej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lqk3GfEpboezx2J3X7l1z8Sxoqg6ntwB+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/6LC3X82fajpVsYq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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 K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
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:
- Loadbalancer
Id 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.
- Protocol
Port double - The port on which to listen for client traffic. Changing this creates a new listener.
- Admin
State boolUp - Default
Pool stringId - The ID of the default pool with which the listener is associated. Changing this creates a new listener.
- Default
Tls stringContainer Ref - 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.
- Idle
Timeout 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.
- Lb
Listener stringV2Id - 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. - Request
Timeout 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.
- Response
Timeout 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.
- Sni
Container List<string>Refs - A list of references to Barbican Secrets containers which store SNI information. See here for more information.
- Dictionary<string, string>
- The key/value pairs to associate with the listener.
- Tenant
Id string - Timeouts
Lb
Listener V2Timeouts - Tls
Ciphers stringPolicy - 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 boolIp Enable - 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 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.
- Protocol
Port float64 - The port on which to listen for client traffic. Changing this creates a new listener.
- Admin
State boolUp - Default
Pool stringId - The ID of the default pool with which the listener is associated. Changing this creates a new listener.
- Default
Tls stringContainer Ref - 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.
- Idle
Timeout 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.
- Lb
Listener stringV2Id - 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. - Request
Timeout 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.
- Response
Timeout 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.
- Sni
Container []stringRefs - A list of references to Barbican Secrets containers which store SNI information. See here for more information.
- map[string]string
- The key/value pairs to associate with the listener.
- Tenant
Id string - Timeouts
Lb
Listener V2Timeouts Args - Tls
Ciphers stringPolicy - 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 boolIp Enable - 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 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.
- protocol
Port Double - The port on which to listen for client traffic. Changing this creates a new listener.
- admin
State BooleanUp - default
Pool StringId - The ID of the default pool with which the listener is associated. Changing this creates a new listener.
- default
Tls StringContainer Ref - 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.
- idle
Timeout 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.
- lb
Listener StringV2Id - 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. - request
Timeout 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.
- response
Timeout 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.
- sni
Container List<String>Refs - A list of references to Barbican Secrets containers which store SNI information. See here for more information.
- Map<String,String>
- The key/value pairs to associate with the listener.
- tenant
Id String - timeouts
Lb
Listener V2Timeouts - tls
Ciphers StringPolicy - 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 BooleanIp Enable - 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 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.
- protocol
Port number - The port on which to listen for client traffic. Changing this creates a new listener.
- admin
State booleanUp - default
Pool stringId - The ID of the default pool with which the listener is associated. Changing this creates a new listener.
- default
Tls stringContainer Ref - 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.
- idle
Timeout 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.
- lb
Listener stringV2Id - 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. - request
Timeout 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.
- response
Timeout 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.
- sni
Container string[]Refs - A list of references to Barbican Secrets containers which store SNI information. See here for more information.
- {[key: string]: string}
- The key/value pairs to associate with the listener.
- tenant
Id string - timeouts
Lb
Listener V2Timeouts - tls
Ciphers stringPolicy - 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 booleanIp Enable - 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_ boolup - default_
pool_ strid - The ID of the default pool with which the listener is associated. Changing this creates a new listener.
- default_
tls_ strcontainer_ ref - 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_ strv2_ id - 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_ Sequence[str]refs - A list of references to Barbican Secrets containers which store SNI information. See here for more information.
- Mapping[str, str]
- The key/value pairs to associate with the listener.
- tenant_
id str - timeouts
Lb
Listener V2Timeouts Args - tls_
ciphers_ strpolicy - 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_ boolip_ enable - 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 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.
- protocol
Port Number - The port on which to listen for client traffic. Changing this creates a new listener.
- admin
State BooleanUp - default
Pool StringId - The ID of the default pool with which the listener is associated. Changing this creates a new listener.
- default
Tls StringContainer Ref - 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.
- idle
Timeout 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.
- lb
Listener StringV2Id - 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. - request
Timeout 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.
- response
Timeout 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.
- sni
Container List<String>Refs - A list of references to Barbican Secrets containers which store SNI information. See here for more information.
- Map<String>
- The key/value pairs to associate with the listener.
- tenant
Id String - timeouts Property Map
- tls
Ciphers StringPolicy - 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 BooleanIp Enable - 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.
- Admin
State boolUp - Default
Pool stringId - The ID of the default pool with which the listener is associated. Changing this creates a new listener.
- Default
Tls stringContainer Ref - 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.
- Idle
Timeout 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.
- Lb
Listener stringV2Id - The unique ID for the listener.
- Loadbalancer
Id 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.
- Protocol
Port 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. - Request
Timeout 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.
- Response
Timeout 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.
- Sni
Container List<string>Refs - A list of references to Barbican Secrets containers which store SNI information. See here for more information.
- Dictionary<string, string>
- The key/value pairs to associate with the listener.
- Tenant
Id string - Timeouts
Lb
Listener V2Timeouts - Tls
Ciphers stringPolicy - 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 boolIp Enable - 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 boolUp - Default
Pool stringId - The ID of the default pool with which the listener is associated. Changing this creates a new listener.
- Default
Tls stringContainer Ref - 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.
- Idle
Timeout 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.
- Lb
Listener stringV2Id - The unique ID for the listener.
- Loadbalancer
Id 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.
- Protocol
Port 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. - Request
Timeout 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.
- Response
Timeout 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.
- Sni
Container []stringRefs - A list of references to Barbican Secrets containers which store SNI information. See here for more information.
- map[string]string
- The key/value pairs to associate with the listener.
- Tenant
Id string - Timeouts
Lb
Listener V2Timeouts Args - Tls
Ciphers stringPolicy - 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 boolIp Enable - 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 BooleanUp - default
Pool StringId - The ID of the default pool with which the listener is associated. Changing this creates a new listener.
- default
Tls StringContainer Ref - 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.
- idle
Timeout 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.
- lb
Listener StringV2Id - The unique ID for the listener.
- loadbalancer
Id 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.
- protocol
Port 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. - request
Timeout 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.
- response
Timeout 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.
- sni
Container List<String>Refs - A list of references to Barbican Secrets containers which store SNI information. See here for more information.
- Map<String,String>
- The key/value pairs to associate with the listener.
- tenant
Id String - timeouts
Lb
Listener V2Timeouts - tls
Ciphers StringPolicy - 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 BooleanIp Enable - 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 booleanUp - default
Pool stringId - The ID of the default pool with which the listener is associated. Changing this creates a new listener.
- default
Tls stringContainer Ref - 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.
- idle
Timeout 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.
- lb
Listener stringV2Id - The unique ID for the listener.
- loadbalancer
Id 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.
- protocol
Port 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. - request
Timeout 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.
- response
Timeout 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.
- sni
Container string[]Refs - A list of references to Barbican Secrets containers which store SNI information. See here for more information.
- {[key: string]: string}
- The key/value pairs to associate with the listener.
- tenant
Id string - timeouts
Lb
Listener V2Timeouts - tls
Ciphers stringPolicy - 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 booleanIp Enable - 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_ boolup - default_
pool_ strid - The ID of the default pool with which the listener is associated. Changing this creates a new listener.
- default_
tls_ strcontainer_ ref - 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_ strv2_ id - 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_ Sequence[str]refs - A list of references to Barbican Secrets containers which store SNI information. See here for more information.
- Mapping[str, str]
- The key/value pairs to associate with the listener.
- tenant_
id str - timeouts
Lb
Listener V2Timeouts Args - tls_
ciphers_ strpolicy - 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_ boolip_ enable - 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 BooleanUp - default
Pool StringId - The ID of the default pool with which the listener is associated. Changing this creates a new listener.
- default
Tls StringContainer Ref - 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.
- idle
Timeout 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.
- lb
Listener StringV2Id - The unique ID for the listener.
- loadbalancer
Id 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.
- protocol
Port 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. - request
Timeout 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.
- response
Timeout 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.
- sni
Container List<String>Refs - A list of references to Barbican Secrets containers which store SNI information. See here for more information.
- Map<String>
- The key/value pairs to associate with the listener.
- tenant
Id String - timeouts Property Map
- tls
Ciphers StringPolicy - 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 BooleanIp Enable - 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
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.