pulumi-aws icon indicating copy to clipboard operation
pulumi-aws copied to clipboard

[aws/lb] stickiness.type comment is wrong

Open runlevel5 opened this issue 1 year ago • 1 comments

Describe what happened

const albTargetGroup = new aws.lb.TargetGroup(`blah`, {
  stickiness: {
    enabled: true,
    type: "appCookie",
  },
});

I got error that type is incorrect. The type source clearly states that it is CORRECT:

 /**
 * The type of sticky sessions. The only current possible values are `lbCookie`, `appCookie` for ALBs, `sourceIp` for NLBs, and `sourceIpDestIp`, `sourceIpDestIpProto` for GWLBs.
 */
type: pulumi.Input<string>;

It turns out the value follows snake_case instead of camelCase, that is app_cookie. Unsure why the documentation is not correct.

Sample program

N/A

Log output

N/A

Affected Resource(s)

No response

Output of pulumi about

I am using @pulumi/pulumi 3.113.3

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

runlevel5 avatar Jun 27 '24 00:06 runlevel5