Class CfnWebhookPropsMixin.WebhookAuthConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.codepipeline.CfnWebhookPropsMixin.WebhookAuthConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebhookPropsMixin.WebhookAuthConfigurationProperty>
- Enclosing interface:
CfnWebhookPropsMixin.WebhookAuthConfigurationProperty
@Stability(Stable)
public static final class CfnWebhookPropsMixin.WebhookAuthConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebhookPropsMixin.WebhookAuthConfigurationProperty>
A builder for
CfnWebhookPropsMixin.WebhookAuthConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedIpRange(String allowedIpRange) build()Builds the configured instance.secretToken(String secretToken) Sets the value ofCfnWebhookPropsMixin.WebhookAuthConfigurationProperty.getSecretToken()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowedIpRange
@Stability(Stable) public CfnWebhookPropsMixin.WebhookAuthConfigurationProperty.Builder allowedIpRange(String allowedIpRange) - Parameters:
allowedIpRange- The property used to configure acceptance of webhooks in an IP address range. For IP, only theAllowedIPRangeproperty must be set. This property must be set to a valid CIDR range.- Returns:
this
-
secretToken
@Stability(Stable) public CfnWebhookPropsMixin.WebhookAuthConfigurationProperty.Builder secretToken(String secretToken) Sets the value ofCfnWebhookPropsMixin.WebhookAuthConfigurationProperty.getSecretToken()- Parameters:
secretToken- The property used to configure GitHub authentication. For GITHUB_HMAC, only theSecretTokenproperty must be set.When creating CodePipeline webhooks, do not use your own credentials or reuse the same secret token across multiple webhooks. For optimal security, generate a unique secret token for each webhook you create. The secret token is an arbitrary string that you provide, which GitHub uses to compute and sign the webhook payloads sent to CodePipeline, for protecting the integrity and authenticity of the webhook payloads. Using your own credentials or reusing the same token across multiple webhooks can lead to security vulnerabilities. > If a secret token was provided, it will be redacted in the response.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWebhookPropsMixin.WebhookAuthConfigurationProperty>- Returns:
- a new instance of
CfnWebhookPropsMixin.WebhookAuthConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-