import * as core from "@terrascript/core"; export interface FunctionArgs extends core.ResourceArgs { /** * (Required) Source code of the function */ code: string | core.StringOut; /** * (Optional) Comment. */ comment?: string | core.StringOut; /** * (Required) Unique name for your CloudFront Function. */ name: string | core.StringOut; /** * (Optional) Whether to publish creation/change as Live CloudFront Function Version. Defaults to `true * . */ publish?: boolean | core.BooleanOut; /** * (Required) Identifier of the function's runtime. Currently only `cloudfront-js-1.0` is valid. */ runtime: string | core.StringOut; } export declare class Function extends core.Resource { /** * Amazon Resource Name (ARN) identifying your CloudFront Function. */ arn: string | core.StringOut; /** * (Required) Source code of the function */ code: string | core.StringOut; /** * (Optional) Comment. */ comment?: string | core.StringOut; /** * ETag hash of the function. This is the value for the `DEVELOPMENT` stage of the function. */ etag: string | core.StringOut; id: string | core.StringOut; /** * ETag hash of any `LIVE` stage of the function. */ liveStageEtag: string | core.StringOut; /** * (Required) Unique name for your CloudFront Function. */ name: string | core.StringOut; /** * (Optional) Whether to publish creation/change as Live CloudFront Function Version. Defaults to `true * . */ publish?: boolean | core.BooleanOut; /** * (Required) Identifier of the function's runtime. Currently only `cloudfront-js-1.0` is valid. */ runtime: string | core.StringOut; /** * Status of the function. Can be `UNPUBLISHED`, `UNASSOCIATED` or `ASSOCIATED`. */ status: string | core.StringOut; constructor(name: string, args?: FunctionArgs); getNamespace(): string; } //# sourceMappingURL=function.d.ts.map