View a markdown version of this page

AWS::Lambda::WebFunctionEndpoint RevisionWeight - AWS CloudFormation

This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.

AWS::Lambda::WebFunctionEndpoint RevisionWeight

Specifies a revision and its traffic weight for an endpoint. You can assign weights to up to two revisions to split traffic for canary or blue-green deployments.

Syntax

To declare this entity in your CloudFormation template, use the following syntax:

JSON

{ "RevisionId" : String, "Weight" : Integer }

YAML

RevisionId: String Weight: Integer

Properties

RevisionId

The identifier of the revision.

Required: Yes

Type: String

Minimum: 1

Maximum: 256

Update requires: No interruption

Weight

The percentage of traffic to route to this revision. Minimum value of 1, maximum value of 100.

Required: Yes

Type: Integer

Minimum: 1

Maximum: 100

Update requires: No interruption