import * as core from "@terrascript/core"; export interface LbCookieStickinessPolicyArgs extends core.ResourceArgs { /** * (Optional) The time period after which */ cookieExpirationPeriod?: number | core.NumberOut; /** * (Required) The load balancer port to which the policy */ lbPort: number | core.NumberOut; /** * (Required) The load balancer to which the policy */ loadBalancer: string | core.StringOut; /** * (Required) The name of the stickiness policy. */ name: string | core.StringOut; } export class LbCookieStickinessPolicy extends core.Resource { /** * (Optional) The time period after which */ @core.attr(Number) public cookieExpirationPeriod?: number | core.NumberOut; /** * The ID of the policy. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The load balancer port to which the policy */ @core.attr(Number) public lbPort!: number | core.NumberOut; /** * (Required) The load balancer to which the policy */ @core.attr(String) public loadBalancer!: string | core.StringOut; /** * (Required) The name of the stickiness policy. */ @core.attr(String) public name!: string | core.StringOut; constructor(name: string, args?: LbCookieStickinessPolicyArgs) { super(name, "aws_lb_cookie_stickiness_policy", args); } public override getNamespace(): string { return "aws_elb_classic"; } }