Amazon CodePipeline · JSON Structure

Amazon Codepipeline Webhook Filter Rule Structure

The event criteria that specify when a webhook notification is sent to your URL.

Type: object Properties: 2 Required: 1
AmazonCI/CDContinuous DeliveryDevOpsPipelineRelease Automation

WebhookFilterRule is a JSON Structure definition published by Amazon CodePipeline, describing 2 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

jsonPath matchEquals

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-codepipeline/refs/heads/main/json-structure/amazon-codepipeline-webhook-filter-rule-structure.json",
  "name": "WebhookFilterRule",
  "description": "The event criteria that specify when a webhook notification is sent to your URL.",
  "type": "object",
  "properties": {
    "jsonPath": {
      "allOf": [
        {
          "$ref": "#/components/schemas/JsonPath"
        },
        {
          "description": "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 <code>MatchEquals</code> field. Otherwise, the request is ignored. For more information, see <a href=\"https://github.com/json-path/JsonPath\">Java JsonPath implementation</a> in GitHub."
        }
      ]
    },
    "matchEquals": {
      "allOf": [
        {
          "$ref": "#/components/schemas/MatchEquals"
        },
        {
          "description": "The value selected by the <code>JsonPath</code> expression must match what is supplied in the <code>MatchEquals</code> field. 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\", the <code>MatchEquals</code> value is evaluated as \"refs/heads/main\". For a list of action configuration properties for built-in action types, see <a href=\"https://docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.html#action-requirements\">Pipeline Structure Reference Action Requirements</a>."
        }
      ]
    }
  },
  "required": [
    "jsonPath"
  ]
}