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::CodePipeline::Webhook WebhookFilterRule
The event criteria that specify when a webhook notification is sent to your URL.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "JsonPath" :String, "MatchEquals" :String}
YAML
JsonPath:StringMatchEquals:String
Properties
JsonPath-
A JsonPath expression that is applied to the body/payload of the webhook. The value selected by the JsonPath expression must match the value specified in the
MatchEqualsfield. Otherwise, the request is ignored. For more information, see Java JsonPath implementationin GitHub. Required: Yes
Type: String
Minimum:
1Maximum:
150Update requires: No interruption
MatchEquals-
The value selected by the
JsonPathexpression must match what is supplied in theMatchEqualsfield. Otherwise, the request is ignored. Properties from the target action configuration can be included as placeholders in this value by surrounding the action configuration key with curly brackets. For example, if the value supplied here is "refs/heads/{Branch}" and the target action has an action configuration property called "Branch" with a value of "main", theMatchEqualsvalue is evaluated as "refs/heads/main". For a list of action configuration properties for built-in action types, see Pipeline Structure Reference Action Requirements.Required: No
Type: String
Minimum:
1Maximum:
150Update requires: No interruption