Class CfnWebhookPropsMixin
- All Implemented Interfaces:
IMixin,software.amazon.jsii.JsiiSerializable
AWS::CodePipeline::Webhook resource creates and registers your webhook.
After the webhook is created and registered, it triggers your pipeline to start every time an external event occurs. For more information, see Migrate polling pipelines to use event-based change detection in the AWS CodePipeline User Guide .
We strongly recommend that you use AWS Secrets Manager to store your credentials. If you use Secrets Manager, you must have already configured and stored your secret parameters in Secrets Manager. For more information, see Using Dynamic References to Specify Template Values .
When passing secret parameters, do not enter the value directly into the template. The value is rendered as plaintext and is therefore readable. For security reasons, do not use plaintext in your AWS CloudFormation template to store your credentials.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.mixins.preview.mixins.*;
import software.amazon.awscdk.mixins.preview.services.codepipeline.mixins.*;
CfnWebhookPropsMixin cfnWebhookPropsMixin = CfnWebhookPropsMixin.Builder.create(CfnWebhookMixinProps.builder()
.authentication("authentication")
.authenticationConfiguration(WebhookAuthConfigurationProperty.builder()
.allowedIpRange("allowedIpRange")
.secretToken("secretToken")
.build())
.filters(List.of(WebhookFilterRuleProperty.builder()
.jsonPath("jsonPath")
.matchEquals("matchEquals")
.build()))
.name("name")
.registerWithThirdParty(false)
.targetAction("targetAction")
.targetPipeline("targetPipeline")
.targetPipelineVersion(123)
.build())
.strategy(PropertyMergeStrategy.OVERRIDE)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnWebhookPropsMixin.static interfaceThe authentication applied to incoming webhook trigger requests.static interfaceThe event criteria that specify when a webhook notification is sent to your URL.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.mixins.preview.core.IMixin
IMixin.Jsii$Default, IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::CodePipeline::Webhook.CfnWebhookPropsMixin(CfnWebhookMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::CodePipeline::Webhook.protectedCfnWebhookPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnWebhookPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionsoftware.constructs.IConstructapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnWebhookMixinPropsgetProps()protected PropertyMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnWebhookPropsMixin
protected CfnWebhookPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnWebhookPropsMixin
protected CfnWebhookPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnWebhookPropsMixin
@Stability(Stable) public CfnWebhookPropsMixin(@NotNull CfnWebhookMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::CodePipeline::Webhook.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnWebhookPropsMixin
Create a mixin to apply properties toAWS::CodePipeline::Webhook.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) @NotNull public software.constructs.IConstruct applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-