Show / Hide Table of Contents

Class AppCookieStickinessPolicy

Provides an application cookie stickiness policy, which allows an ELB to wed its sticky cookie's expiration to a cookie generated by your application.

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.AppCookieStickinessPolicy("foo", new Aws.Elb.AppCookieStickinessPolicyArgs
    {
        CookieName = "MyAppCookie",
        LbPort = 80,
        LoadBalancer = lb.Name,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
AppCookieStickinessPolicy
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.AppCookieStickinessPolicy has been deprecated in favor of aws.elb.AppCookieStickinessPolicy")]
public class AppCookieStickinessPolicy : CustomResource

Constructors

View Source

AppCookieStickinessPolicy(String, AppCookieStickinessPolicyArgs, CustomResourceOptions)

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

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

The unique name of the resource

AppCookieStickinessPolicyArgs 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

CookieName

The application cookie whose lifetime the ELB's cookie should follow.

Declaration
public Output<string> CookieName { get; }
Property Value
Type Description
Output<System.String>
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 name of 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>, AppCookieStickinessPolicyState, CustomResourceOptions)

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

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

AppCookieStickinessPolicyState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

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