@Stability(value=Stable) public static final class CfnWebhook.Builder extends Object implements software.amazon.jsii.Builder<CfnWebhook>
CfnWebhook.| Modifier and Type | Method and Description |
|---|---|
CfnWebhook.Builder |
authentication(String authentication)
Supported options are GITHUB_HMAC, IP, and UNAUTHENTICATED.
|
CfnWebhook.Builder |
authenticationConfiguration(CfnWebhook.WebhookAuthConfigurationProperty authenticationConfiguration)
Properties that configure the authentication applied to incoming webhook trigger requests.
|
CfnWebhook.Builder |
authenticationConfiguration(IResolvable authenticationConfiguration)
Properties that configure the authentication applied to incoming webhook trigger requests.
|
CfnWebhook |
build() |
static CfnWebhook.Builder |
create(software.constructs.Construct scope,
String id) |
CfnWebhook.Builder |
filters(IResolvable filters)
A list of rules applied to the body/payload sent in the POST request to a webhook URL.
|
CfnWebhook.Builder |
filters(List<? extends Object> filters)
A list of rules applied to the body/payload sent in the POST request to a webhook URL.
|
CfnWebhook.Builder |
name(String name)
The name of the webhook.
|
CfnWebhook.Builder |
registerWithThirdParty(Boolean registerWithThirdParty)
Configures a connection between the webhook that was created and the external tool with events to be detected.
|
CfnWebhook.Builder |
registerWithThirdParty(IResolvable registerWithThirdParty)
Configures a connection between the webhook that was created and the external tool with events to be detected.
|
CfnWebhook.Builder |
targetAction(String targetAction)
The name of the action in a pipeline you want to connect to the webhook.
|
CfnWebhook.Builder |
targetPipeline(String targetPipeline)
The name of the pipeline you want to connect to the webhook.
|
CfnWebhook.Builder |
targetPipelineVersion(Number targetPipelineVersion)
The version number of the pipeline to be connected to the trigger request.
|
@Stability(value=Stable) public static CfnWebhook.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnWebhook.WebhookAuthConfigurationProperty.Builder.@Stability(value=Stable) public CfnWebhook.Builder authentication(String authentication)
authentication - Supported options are GITHUB_HMAC, IP, and UNAUTHENTICATED. This parameter is required.this@Stability(value=Stable) public CfnWebhook.Builder authenticationConfiguration(CfnWebhook.WebhookAuthConfigurationProperty authenticationConfiguration)
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. This parameter is required.this@Stability(value=Stable) public CfnWebhook.Builder authenticationConfiguration(IResolvable authenticationConfiguration)
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. This parameter is required.this@Stability(value=Stable) public CfnWebhook.Builder filters(IResolvable filters)
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. This parameter is required.this@Stability(value=Stable) public CfnWebhook.Builder filters(List<? extends Object> filters)
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. This parameter is required.this@Stability(value=Stable) public CfnWebhook.Builder targetAction(String targetAction)
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. This parameter is required.this@Stability(value=Stable) public CfnWebhook.Builder targetPipeline(String targetPipeline)
targetPipeline - The name of the pipeline you want to connect to the webhook. This parameter is required.this@Stability(value=Stable) public CfnWebhook.Builder targetPipelineVersion(Number targetPipelineVersion)
Required: Yes
Type: Integer
Update requires: No interruption
targetPipelineVersion - The version number of the pipeline to be connected to the trigger request. This parameter is required.this@Stability(value=Stable) public CfnWebhook.Builder name(String name)
name - The name of the webhook. This parameter is required.this@Stability(value=Stable) public CfnWebhook.Builder registerWithThirdParty(Boolean registerWithThirdParty)
registerWithThirdParty - Configures a connection between the webhook that was created and the external tool with events to be detected. This parameter is required.this@Stability(value=Stable) public CfnWebhook.Builder registerWithThirdParty(IResolvable registerWithThirdParty)
registerWithThirdParty - Configures a connection between the webhook that was created and the external tool with events to be detected. This parameter is required.this@Stability(value=Stable) public CfnWebhook build()
build in interface software.amazon.jsii.Builder<CfnWebhook>Copyright © 2022. All rights reserved.