public static interface WebhookDefinition.Builder extends SdkPojo, CopyableBuilder<WebhookDefinition.Builder,WebhookDefinition>
Modifier and Type | Method and Description |
---|---|
WebhookDefinition.Builder |
authentication(String authentication)
Supported options are GITHUB_HMAC, IP and UNAUTHENTICATED.
|
WebhookDefinition.Builder |
authentication(WebhookAuthenticationType authentication)
Supported options are GITHUB_HMAC, IP and UNAUTHENTICATED.
|
default WebhookDefinition.Builder |
authenticationConfiguration(Consumer<WebhookAuthConfiguration.Builder> authenticationConfiguration)
Properties that configure the authentication applied to incoming webhook trigger requests.
|
WebhookDefinition.Builder |
authenticationConfiguration(WebhookAuthConfiguration authenticationConfiguration)
Properties that configure the authentication applied to incoming webhook trigger requests.
|
WebhookDefinition.Builder |
filters(Collection<WebhookFilterRule> filters)
A list of rules applied to the body/payload sent in the POST request to a webhook URL.
|
WebhookDefinition.Builder |
filters(Consumer<WebhookFilterRule.Builder>... filters)
A list of rules applied to the body/payload sent in the POST request to a webhook URL.
|
WebhookDefinition.Builder |
filters(WebhookFilterRule... filters)
A list of rules applied to the body/payload sent in the POST request to a webhook URL.
|
WebhookDefinition.Builder |
name(String name)
The name of the webhook.
|
WebhookDefinition.Builder |
targetAction(String targetAction)
The name of the action in a pipeline you want to connect to the webhook.
|
WebhookDefinition.Builder |
targetPipeline(String targetPipeline)
The name of the pipeline you want to connect to the webhook.
|
copy
applyMutation, build
WebhookDefinition.Builder name(String name)
The name of the webhook.
name
- The name of the webhook.WebhookDefinition.Builder targetPipeline(String targetPipeline)
The name of the pipeline you want to connect to the webhook.
targetPipeline
- The name of the pipeline you want to connect to the webhook.WebhookDefinition.Builder targetAction(String targetAction)
The name of the action in a pipeline you want to connect to the webhook. The action must be from the source (first) stage of the pipeline.
targetAction
- The name of the action in a pipeline you want to connect to the webhook. The action must be from the
source (first) stage of the pipeline.WebhookDefinition.Builder filters(Collection<WebhookFilterRule> filters)
A list of rules applied to the body/payload sent in the POST request to a webhook URL. All defined rules must pass for the request to be accepted and the pipeline started.
filters
- A list of rules applied to the body/payload sent in the POST request to a webhook URL. All defined
rules must pass for the request to be accepted and the pipeline started.WebhookDefinition.Builder filters(WebhookFilterRule... filters)
A list of rules applied to the body/payload sent in the POST request to a webhook URL. All defined rules must pass for the request to be accepted and the pipeline started.
filters
- A list of rules applied to the body/payload sent in the POST request to a webhook URL. All defined
rules must pass for the request to be accepted and the pipeline started.WebhookDefinition.Builder filters(Consumer<WebhookFilterRule.Builder>... filters)
A list of rules applied to the body/payload sent in the POST request to a webhook URL. All defined rules must pass for the request to be accepted and the pipeline started.
This is a convenience that creates an instance of theList.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately
and its result is passed to #filters(List)
.filters
- a consumer that will call methods on List.Builder
#filters(List)
WebhookDefinition.Builder authentication(String authentication)
Supported options are GITHUB_HMAC, IP and UNAUTHENTICATED.
GITHUB_HMAC implements the authentication scheme described here: https://developer.github.com/webhooks/securing/
IP will reject webhooks trigger requests unless they originate from an IP within the IP range whitelisted in the authentication configuration.
UNAUTHENTICATED will accept all webhook trigger requests regardless of origin.
authentication
- Supported options are GITHUB_HMAC, IP and UNAUTHENTICATED.
GITHUB_HMAC implements the authentication scheme described here: https://developer.github.com/webhooks/securing/
IP will reject webhooks trigger requests unless they originate from an IP within the IP range whitelisted in the authentication configuration.
UNAUTHENTICATED will accept all webhook trigger requests regardless of origin.
WebhookAuthenticationType
,
WebhookAuthenticationType
WebhookDefinition.Builder authentication(WebhookAuthenticationType authentication)
Supported options are GITHUB_HMAC, IP and UNAUTHENTICATED.
GITHUB_HMAC implements the authentication scheme described here: https://developer.github.com/webhooks/securing/
IP will reject webhooks trigger requests unless they originate from an IP within the IP range whitelisted in the authentication configuration.
UNAUTHENTICATED will accept all webhook trigger requests regardless of origin.
authentication
- Supported options are GITHUB_HMAC, IP and UNAUTHENTICATED.
GITHUB_HMAC implements the authentication scheme described here: https://developer.github.com/webhooks/securing/
IP will reject webhooks trigger requests unless they originate from an IP within the IP range whitelisted in the authentication configuration.
UNAUTHENTICATED will accept all webhook trigger requests regardless of origin.
WebhookAuthenticationType
,
WebhookAuthenticationType
WebhookDefinition.Builder authenticationConfiguration(WebhookAuthConfiguration authenticationConfiguration)
Properties that configure the authentication applied to incoming webhook trigger requests. The required properties depend on the authentication type. For GITHUB_HMAC, only the SecretToken property must be set. For IP, only the AllowedIPRange property must be set to a valid CIDR range. For UNAUTHENTICATED, no properties can be set.
authenticationConfiguration
- Properties that configure the authentication applied to incoming webhook trigger requests. The
required properties depend on the authentication type. For GITHUB_HMAC, only the SecretToken property
must be set. For IP, only the AllowedIPRange property must be set to a valid CIDR range. For
UNAUTHENTICATED, no properties can be set.default WebhookDefinition.Builder authenticationConfiguration(Consumer<WebhookAuthConfiguration.Builder> authenticationConfiguration)
Properties that configure the authentication applied to incoming webhook trigger requests. The required properties depend on the authentication type. For GITHUB_HMAC, only the SecretToken property must be set. For IP, only the AllowedIPRange property must be set to a valid CIDR range. For UNAUTHENTICATED, no properties can be set.
This is a convenience that creates an instance of theWebhookAuthConfiguration.Builder
avoiding the
need to create one manually via WebhookAuthConfiguration.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to authenticationConfiguration(WebhookAuthConfiguration)
.authenticationConfiguration
- a consumer that will call methods on WebhookAuthConfiguration.Builder
authenticationConfiguration(WebhookAuthConfiguration)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.