@Generated(value="jsii-pacmak/1.72.0 (build 4b8828b)", date="2023-01-03T16:22:32.192Z") @Stability(value=Stable) public interface CfnWebhookProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codepipeline.*;
CfnWebhookProps cfnWebhookProps = CfnWebhookProps.builder()
.authentication("authentication")
.authenticationConfiguration(WebhookAuthConfigurationProperty.builder()
.allowedIpRange("allowedIpRange")
.secretToken("secretToken")
.build())
.filters(List.of(WebhookFilterRuleProperty.builder()
.jsonPath("jsonPath")
// the properties below are optional
.matchEquals("matchEquals")
.build()))
.targetAction("targetAction")
.targetPipeline("targetPipeline")
.targetPipelineVersion(123)
// the properties below are optional
.name("name")
.registerWithThirdParty(false)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnWebhookProps.Builder
A builder for
CfnWebhookProps |
static class |
CfnWebhookProps.Jsii$Proxy
An implementation for
CfnWebhookProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnWebhookProps.Builder |
builder() |
String |
getAuthentication()
Supported options are GITHUB_HMAC, IP, and UNAUTHENTICATED.
|
Object |
getAuthenticationConfiguration()
Properties that configure the authentication applied to incoming webhook trigger requests.
|
Object |
getFilters()
A list of rules applied to the body/payload sent in the POST request to a webhook URL.
|
default String |
getName()
The name of the webhook.
|
default Object |
getRegisterWithThirdParty()
Configures a connection between the webhook that was created and the external tool with events to be detected.
|
String |
getTargetAction()
The name of the action in a pipeline you want to connect to the webhook.
|
String |
getTargetPipeline()
The name of the pipeline you want to connect to the webhook.
|
Number |
getTargetPipelineVersion()
The version number of the pipeline to be connected to the trigger request.
|
@Stability(value=Stable) @NotNull String getAuthentication()
@Stability(value=Stable) @NotNull Object getAuthenticationConfiguration()
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.
@Stability(value=Stable) @NotNull Object getFilters()
All defined rules must pass for the request to be accepted and the pipeline started.
@Stability(value=Stable) @NotNull String getTargetAction()
The action must be from the source (first) stage of the pipeline.
@Stability(value=Stable) @NotNull String getTargetPipeline()
@Stability(value=Stable) @NotNull Number getTargetPipelineVersion()
Required: Yes
Type: Integer
Update requires: No interruption
@Stability(value=Stable) @Nullable default String getName()
@Stability(value=Stable) @Nullable default Object getRegisterWithThirdParty()
@Stability(value=Stable) static CfnWebhookProps.Builder builder()
CfnWebhookProps.Builder of CfnWebhookPropsCopyright © 2023. All rights reserved.