Show / Hide Table of Contents

Class LoadBalancerCookieStickinessPolicy

Provides a load balancer cookie stickiness policy, which allows an ELB to control the sticky session lifetime of the browser.

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 = 8000,
                InstanceProtocol = "http",
                LbPort = 80,
                LbProtocol = "http",
            },
        },
    });
    var foo = new Aws.Elb.LoadBalancerCookieStickinessPolicy("foo", new Aws.Elb.LoadBalancerCookieStickinessPolicyArgs
    {
        CookieExpirationPeriod = 600,
        LbPort = 80,
        LoadBalancer = lb.Id,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
LoadBalancerCookieStickinessPolicy
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.ElasticLoadBalancing
Assembly: Pulumi.Aws.dll
Syntax
[Obsolete("aws.elasticloadbalancing.LoadBalancerCookieStickinessPolicy has been deprecated in favor of aws.elb.LoadBalancerCookieStickinessPolicy")]
public class LoadBalancerCookieStickinessPolicy : CustomResource

Constructors

View Source

LoadBalancerCookieStickinessPolicy(String, LoadBalancerCookieStickinessPolicyArgs, CustomResourceOptions)

Create a LoadBalancerCookieStickinessPolicy resource with the given unique name, arguments, and options.

Declaration
public LoadBalancerCookieStickinessPolicy(string name, LoadBalancerCookieStickinessPolicyArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

LoadBalancerCookieStickinessPolicyArgs 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

CookieExpirationPeriod

The time period after which the session cookie should be considered stale, expressed in seconds.

Declaration
public Output<int?> CookieExpirationPeriod { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

LbPort

The load balancer port to which the policy should be applied. This must be an active listener on the load balancer.

Declaration
public Output<int> LbPort { get; }
Property Value
Type Description
Output<System.Int32>
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>
View Source

Name

The name of the stickiness policy.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, LoadBalancerCookieStickinessPolicyState, CustomResourceOptions)

Get an existing LoadBalancerCookieStickinessPolicy resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static LoadBalancerCookieStickinessPolicy Get(string name, Input<string> id, LoadBalancerCookieStickinessPolicyState 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.

LoadBalancerCookieStickinessPolicyState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
LoadBalancerCookieStickinessPolicy
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.