AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

CreateLBCookieStickinessPolicyInput

import "github.com/aws/aws-sdk-go/service/elb"

type CreateLBCookieStickinessPolicyInput struct { CookieExpirationPeriod *int64 `type:"long"` LoadBalancerName *string `type:"string" required:"true"` PolicyName *string `type:"string" required:"true"` }

Contains the parameters for CreateLBCookieStickinessPolicy.

CookieExpirationPeriod

Type: *int64

The time period, in seconds, after which the cookie should be considered stale. If you do not specify this parameter, the default value is 0, which indicates that the sticky session should last for the duration of the browser session.

LoadBalancerName

Type: *string

The name of the load balancer.

LoadBalancerName is a required field

PolicyName

Type: *string

The name of the policy being created. Policy names must consist of alphanumeric characters and dashes (-). This name must be unique within the set of policies for this load balancer.

PolicyName is a required field

Method

GoString

func (s CreateLBCookieStickinessPolicyInput) GoString() string

GoString returns the string representation

SetCookieExpirationPeriod

func (s *CreateLBCookieStickinessPolicyInput) SetCookieExpirationPeriod(v int64) *CreateLBCookieStickinessPolicyInput

SetCookieExpirationPeriod sets the CookieExpirationPeriod field's value.

SetLoadBalancerName

func (s *CreateLBCookieStickinessPolicyInput) SetLoadBalancerName(v string) *CreateLBCookieStickinessPolicyInput

SetLoadBalancerName sets the LoadBalancerName field's value.

SetPolicyName

func (s *CreateLBCookieStickinessPolicyInput) SetPolicyName(v string) *CreateLBCookieStickinessPolicyInput

SetPolicyName sets the PolicyName field's value.

String

func (s CreateLBCookieStickinessPolicyInput) String() string

String returns the string representation

Validate

func (s *CreateLBCookieStickinessPolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: