UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

57 lines (56 loc) 2.37 kB
import * as cloudfront from '../../aws-cloudfront'; import * as lambda from '../../aws-lambda'; import * as cdk from '../../core'; /** * Properties for a Lambda Function URL Origin. */ export interface FunctionUrlOriginProps extends cloudfront.OriginProps { /** * Specifies how long, in seconds, CloudFront waits for a response from the origin. * The valid range is from 1 to 180 seconds, inclusive. * * Note that values over 60 seconds are possible only after a limit increase request for the origin response timeout quota * has been approved in the target account; otherwise, values over 60 seconds will produce an error at deploy time. * * @default Duration.seconds(30) */ readonly readTimeout?: cdk.Duration; /** * Specifies how long, in seconds, CloudFront persists its connection to the origin. * The valid range is from 1 to 180 seconds, inclusive. * * Note that values over 60 seconds are possible only after a limit increase request for the origin response timeout quota * has been approved in the target account; otherwise, values over 60 seconds will produce an error at deploy time. * * @default Duration.seconds(5) */ readonly keepaliveTimeout?: cdk.Duration; } /** * Properties for configuring a origin using a standard Lambda Functions URLs. */ export interface FunctionUrlOriginBaseProps extends cloudfront.OriginProps { } /** * Properties for configuring a Lambda Functions URLs with OAC. */ export interface FunctionUrlOriginWithOACProps extends FunctionUrlOriginProps { /** * An optional Origin Access Control * * @default - an Origin Access Control will be created. */ readonly originAccessControl?: cloudfront.IOriginAccessControl; } /** * An Origin for a Lambda Function URL. */ export declare class FunctionUrlOrigin extends cloudfront.OriginBase { private readonly props; /** * Create a Lambda Function URL Origin with Origin Access Control (OAC) configured */ static withOriginAccessControl(lambdaFunctionUrl: lambda.IFunctionUrl, props?: FunctionUrlOriginWithOACProps): cloudfront.IOrigin; constructor(lambdaFunctionUrl: lambda.IFunctionUrl, props?: FunctionUrlOriginProps); protected renderCustomOriginConfig(): cloudfront.CfnDistribution.CustomOriginConfigProperty | undefined; }