UNPKG

@altostra/core

Version:

Core library for shared types and logic

25 lines (24 loc) 813 B
import type { NaturalNumberOrZero } from "../../../common/CustomTypes/Numerics"; import type { AwsResourceCommon } from "../common"; import type { CloudFormationValue } from "../IntrinsicFunctions"; import type { AuthType } from "./common"; export declare type LambdaUrlType = 'AWS::Lambda::Url'; export interface LambdaUrl extends AwsResourceCommon { Type: LambdaUrlType; Properties: LambdaUrlProperties; } export interface LambdaUrlProperties { AuthType: AuthType; Cors?: Cors; InvokeMode?: string; Qualifier?: CloudFormationValue; TargetFunctionArn: CloudFormationValue; } export interface Cors { AllowCredentials?: boolean; AllowHeaders?: string[]; AllowMethods?: string[]; AllowOrigins?: string[]; ExposeHeaders?: string[]; MaxAge?: NaturalNumberOrZero; }