Class ProxyProtocolPolicy
Provides a proxy protocol policy, which allows an ELB to carry a client connection information to a backend.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var lb = new Aws.Elb.LoadBalancer("lb", new Aws.Elb.LoadBalancerArgs
{
AvailabilityZones =
{
"us-east-1a",
},
Listeners =
{
new Aws.Elb.Inputs.LoadBalancerListenerArgs
{
InstancePort = 25,
InstanceProtocol = "tcp",
LbPort = 25,
LbProtocol = "tcp",
},
new Aws.Elb.Inputs.LoadBalancerListenerArgs
{
InstancePort = 587,
InstanceProtocol = "tcp",
LbPort = 587,
LbProtocol = "tcp",
},
},
});
var smtp = new Aws.Ec2.ProxyProtocolPolicy("smtp", new Aws.Ec2.ProxyProtocolPolicyArgs
{
InstancePorts =
{
"25",
"587",
},
LoadBalancer = lb.Name,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Ec2
Assembly: Pulumi.Aws.dll
Syntax
public class ProxyProtocolPolicy : CustomResource
Constructors
View SourceProxyProtocolPolicy(String, ProxyProtocolPolicyArgs, CustomResourceOptions)
Create a ProxyProtocolPolicy resource with the given unique name, arguments, and options.
Declaration
public ProxyProtocolPolicy(string name, ProxyProtocolPolicyArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ProxyProtocolPolicyArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceInstancePorts
List of instance ports to which the policy should be applied. This can be specified if the protocol is SSL or TCP.
Declaration
public Output<ImmutableArray<string>> InstancePorts { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
LoadBalancer
The load balancer to which the policy should be attached.
Declaration
public Output<string> LoadBalancer { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ProxyProtocolPolicyState, CustomResourceOptions)
Get an existing ProxyProtocolPolicy resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ProxyProtocolPolicy Get(string name, Input<string> id, ProxyProtocolPolicyState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ProxyProtocolPolicyState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ProxyProtocolPolicy |