Skip to content
v2.276.0

WebFunctionTraffic Class Added in v2.276.0 ​

How a WebFunction endpoint splits its traffic between revisions.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const webFunctionTraffic = lambda.WebFunctionTraffic.single('revisionId');

Methods ​

single(revisionId: string): WebFunctionTraffic // chainable@staticmethod def single(revision_id: str) -> WebFunctionTrafficpublic static WebFunctionTraffic single(String revisionId)public static WebFunctionTraffic Single(string revisionId)func Single(RevisionId *string) WebFunctionTrafficstatic#
Send all of the endpoint's traffic to one revision.
1 parameter

Parameters

  • revisionIdrevision_idrevisionIdrevisionIdRevisionId — the ID of the revision.