Expand description
Provides a proxy protocol policy, which allows an ELB to carry a client connection information to a backend.
§Example Usage
ⓘ
use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
let lb = load_balancer::create(
"lb",
LoadBalancerArgs::builder()
.availability_zones(vec!["us-east-1a",])
.listeners(
vec![
LoadBalancerListener::builder().instancePort(25)
.instanceProtocol("tcp").lbPort(25).lbProtocol("tcp").build_struct(),
LoadBalancerListener::builder().instancePort(587)
.instanceProtocol("tcp").lbPort(587).lbProtocol("tcp")
.build_struct(),
],
)
.name("test-lb")
.build_struct(),
);
let smtp = proxy_protocol_policy::create(
"smtp",
ProxyProtocolPolicyArgs::builder()
.instance_ports(vec!["25", "587",])
.load_balancer("${lb.name}")
.build_struct(),
);
}
Structs§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments