Show / Hide Table of Contents

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,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
ProxyProtocolPolicy
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Ec2
Assembly: Pulumi.Aws.dll
Syntax
public class ProxyProtocolPolicy : CustomResource

Constructors

View Source

ProxyProtocolPolicy(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 Source

InstancePorts

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>>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.