View a markdown version of this page

AWS::Lambda::WebFunctionEndpoint RevisionWeight - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon 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 Amazon 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