Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Documentation
data WebhookFilterRule Source #
The event criteria that specify when a webhook notification is sent to your URL.
See: newWebhookFilterRule
smart constructor.
WebhookFilterRule' | |
|
Instances
Create a value of WebhookFilterRule
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:matchEquals:WebhookFilterRule'
, webhookFilterRule_matchEquals
- The value selected by the JsonPath
expression must match what is
supplied in the MatchEquals
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 "master", the
MatchEquals
value is evaluated as "refs/heads/master". For a list
of action configuration properties for built-in action types, see
Pipeline Structure Reference Action Requirements.
$sel:jsonPath:WebhookFilterRule'
, webhookFilterRule_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 MatchEquals
field. Otherwise, the request is
ignored. For more information, see
Java JsonPath implementation in
GitHub.
webhookFilterRule_matchEquals :: Lens' WebhookFilterRule (Maybe Text) Source #
The value selected by the JsonPath
expression must match what is
supplied in the MatchEquals
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 "master", the
MatchEquals
value is evaluated as "refs/heads/master". For a list
of action configuration properties for built-in action types, see
Pipeline Structure Reference Action Requirements.
webhookFilterRule_jsonPath :: Lens' WebhookFilterRule Text Source #
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 MatchEquals
field. Otherwise, the request is
ignored. For more information, see
Java JsonPath implementation in
GitHub.