import * as core from "@terrascript/core"; export interface CorsArgs extends core.SchemaArgs { allowCredentials: boolean | core.BooleanOut; allowHeaders: core.Array | core.ArrayOut; allowMethods: core.Array | core.ArrayOut; allowOrigins: core.Array | core.ArrayOut; exposeHeaders: core.Array | core.ArrayOut; maxAge: number | core.NumberOut; } export class Cors extends core.Schema { @core.attr(Boolean, { computed: true }) public allowCredentials!: boolean | core.BooleanOut; @core.attr(String, { computed: true, kind: "array" }) public allowHeaders!: core.Array | core.ArrayOut; @core.attr(String, { computed: true, kind: "array" }) public allowMethods!: core.Array | core.ArrayOut; @core.attr(String, { computed: true, kind: "array" }) public allowOrigins!: core.Array | core.ArrayOut; @core.attr(String, { computed: true, kind: "array" }) public exposeHeaders!: core.Array | core.ArrayOut; @core.attr(Number, { computed: true }) public maxAge!: number | core.NumberOut; } export interface DsFunctionUrlArgs { /** * (Required) he name (or ARN) of the Lambda function. */ functionName: string | core.StringOut; /** * (Optional) The alias name or `"$LATEST"`. */ qualifier?: string | core.StringOut; } export class DsFunctionUrl extends core.Data { /** * The type of authentication that the function URL uses. */ @core.attr(String, { computed: true }) public authorizationType!: string | core.StringOut; /** * The [cross-origin resource sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) s * ettings for the function URL. See the [`aws_lambda_function_url` resource](/docs/providers/aws/r/lam * bda_function_url.html) documentation for more details. */ @core.attr(Cors, { computed: true, kind: "array" }) public cors!: core.Array | core.ArrayOut; /** * When the function URL was created, in [ISO-8601 format](https://www.w3.org/TR/NOTE-datetime). */ @core.attr(String, { computed: true }) public creationTime!: string | core.StringOut; /** * The Amazon Resource Name (ARN) of the function. */ @core.attr(String, { computed: true }) public functionArn!: string | core.StringOut; /** * (Required) he name (or ARN) of the Lambda function. */ @core.attr(String) public functionName!: string | core.StringOut; /** * The HTTP URL endpoint for the function in the format `https://.lambda-url..on.aws`. */ @core.attr(String, { computed: true }) public functionUrl!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * When the function URL configuration was last updated, in [ISO-8601 format](https://www.w3.org/TR/NOT * E-datetime). */ @core.attr(String, { computed: true }) public lastModifiedTime!: string | core.StringOut; /** * (Optional) The alias name or `"$LATEST"`. */ @core.attr(String) public qualifier?: string | core.StringOut; /** * A generated ID for the endpoint. */ @core.attr(String, { computed: true }) public urlId!: string | core.StringOut; constructor(name: string, args?: DsFunctionUrlArgs) { super(name, "aws_lambda_function_url", args); } public override getNamespace(): string { return "aws_lambda"; } }