Class: Aws::CodePipeline::Types::WebhookFilterRule

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-codepipeline/types.rb

Overview

Note:

When making an API call, you may pass WebhookFilterRule data as a hash:

{
  json_path: "JsonPath", # required
  match_equals: "MatchEquals",
}

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

Instance Attribute Summary collapse

Instance Attribute Details

#json_pathString

A JsonPath expression that will be applied to the body/payload of the webhook. The value selected by JsonPath expression must match the value specified in the matchEquals field, otherwise the request will be ignored. More information on JsonPath expressions can be found here: github.com/json-path/JsonPath.

Returns:

  • (String)


3383
3384
3385
3386
3387
# File 'lib/aws-sdk-codepipeline/types.rb', line 3383

class WebhookFilterRule < Struct.new(
  :json_path,
  :match_equals)
  include Aws::Structure
end

#match_equalsString

The value selected by the JsonPath expression must match what is supplied in the MatchEquals field, otherwise the request will be ignored. Properties from the target action configuration can be included as placeholders in this value by surrounding the action configuration key with curly braces. 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 “master”, the MatchEquals value will be evaluated as “refs/heads/master”. A list of action configuration properties for built-in action types can be found here: [Pipeline Structure Reference Action Requirements].

[1]: docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.html#action-requirements

Returns:

  • (String)


3383
3384
3385
3386
3387
# File 'lib/aws-sdk-codepipeline/types.rb', line 3383

class WebhookFilterRule < Struct.new(
  :json_path,
  :match_equals)
  include Aws::Structure
end