/* eslint-disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ /** * Represents a collection of allowed headers. * * @minItems 1 * @maxItems 100 */ export type AllowHeaders = [string, ...string[]]; /** * Represents a collection of allowed HTTP methods. * * @minItems 1 * @maxItems 6 */ export type AllowMethods = | ["GET" | "PUT" | "HEAD" | "POST" | "PATCH" | "DELETE" | "*"] | [ "GET" | "PUT" | "HEAD" | "POST" | "PATCH" | "DELETE" | "*", "GET" | "PUT" | "HEAD" | "POST" | "PATCH" | "DELETE" | "*" ] | [ "GET" | "PUT" | "HEAD" | "POST" | "PATCH" | "DELETE" | "*", "GET" | "PUT" | "HEAD" | "POST" | "PATCH" | "DELETE" | "*", "GET" | "PUT" | "HEAD" | "POST" | "PATCH" | "DELETE" | "*" ] | [ "GET" | "PUT" | "HEAD" | "POST" | "PATCH" | "DELETE" | "*", "GET" | "PUT" | "HEAD" | "POST" | "PATCH" | "DELETE" | "*", "GET" | "PUT" | "HEAD" | "POST" | "PATCH" | "DELETE" | "*", "GET" | "PUT" | "HEAD" | "POST" | "PATCH" | "DELETE" | "*" ] | [ "GET" | "PUT" | "HEAD" | "POST" | "PATCH" | "DELETE" | "*", "GET" | "PUT" | "HEAD" | "POST" | "PATCH" | "DELETE" | "*", "GET" | "PUT" | "HEAD" | "POST" | "PATCH" | "DELETE" | "*", "GET" | "PUT" | "HEAD" | "POST" | "PATCH" | "DELETE" | "*", "GET" | "PUT" | "HEAD" | "POST" | "PATCH" | "DELETE" | "*" ] | [ "GET" | "PUT" | "HEAD" | "POST" | "PATCH" | "DELETE" | "*", "GET" | "PUT" | "HEAD" | "POST" | "PATCH" | "DELETE" | "*", "GET" | "PUT" | "HEAD" | "POST" | "PATCH" | "DELETE" | "*", "GET" | "PUT" | "HEAD" | "POST" | "PATCH" | "DELETE" | "*", "GET" | "PUT" | "HEAD" | "POST" | "PATCH" | "DELETE" | "*", "GET" | "PUT" | "HEAD" | "POST" | "PATCH" | "DELETE" | "*" ]; /** * Represents a collection of allowed origins. * * @minItems 1 * @maxItems 100 */ export type AllowOrigins = [string, ...string[]]; /** * Represents a collection of exposed headers. * * @minItems 1 * @maxItems 100 */ export type ExposeHeaders = [string, ...string[]]; /** * Resource Type definition for AWS::Lambda::Url */ export interface AwsLambdaUrl { /** * The Amazon Resource Name (ARN) of the function associated with the Function URL. */ TargetFunctionArn: string; /** * The alias qualifier for the target function. If TargetFunctionArn is unqualified then Qualifier must be passed. */ Qualifier?: string; /** * Can be either AWS_IAM if the requests are authorized via IAM, or NONE if no authorization is configured on the Function URL. */ AuthType: "AWS_IAM" | "NONE"; /** * The invocation mode for the function’s URL. Set to BUFFERED if you want to buffer responses before returning them to the client. Set to RESPONSE_STREAM if you want to stream responses, allowing faster time to first byte and larger response payload sizes. If not set, defaults to BUFFERED. */ InvokeMode?: "BUFFERED" | "RESPONSE_STREAM"; /** * The full Amazon Resource Name (ARN) of the function associated with the Function URL. */ FunctionArn?: string; /** * The generated url for this resource. */ FunctionUrl?: string; Cors?: Cors; } export interface Cors { /** * Specifies whether credentials are included in the CORS request. */ AllowCredentials?: boolean; AllowHeaders?: AllowHeaders; AllowMethods?: AllowMethods; AllowOrigins?: AllowOrigins; ExposeHeaders?: ExposeHeaders; MaxAge?: number; }