All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.codepipeline.outputs.WebhookAuthenticationConfiguration Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.codepipeline.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class WebhookAuthenticationConfiguration {
    /**
     * @return A valid CIDR block for `IP` filtering. Required for `IP`.
     * 
     */
    private @Nullable String allowedIpRange;
    /**
     * @return The shared secret for the GitHub repository webhook. Set this as `secret` in your `github_repository_webhook`'s `configuration` block. Required for `GITHUB_HMAC`.
     * 
     */
    private @Nullable String secretToken;

    private WebhookAuthenticationConfiguration() {}
    /**
     * @return A valid CIDR block for `IP` filtering. Required for `IP`.
     * 
     */
    public Optional allowedIpRange() {
        return Optional.ofNullable(this.allowedIpRange);
    }
    /**
     * @return The shared secret for the GitHub repository webhook. Set this as `secret` in your `github_repository_webhook`'s `configuration` block. Required for `GITHUB_HMAC`.
     * 
     */
    public Optional secretToken() {
        return Optional.ofNullable(this.secretToken);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(WebhookAuthenticationConfiguration defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String allowedIpRange;
        private @Nullable String secretToken;
        public Builder() {}
        public Builder(WebhookAuthenticationConfiguration defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.allowedIpRange = defaults.allowedIpRange;
    	      this.secretToken = defaults.secretToken;
        }

        @CustomType.Setter
        public Builder allowedIpRange(@Nullable String allowedIpRange) {

            this.allowedIpRange = allowedIpRange;
            return this;
        }
        @CustomType.Setter
        public Builder secretToken(@Nullable String secretToken) {

            this.secretToken = secretToken;
            return this;
        }
        public WebhookAuthenticationConfiguration build() {
            final var _resultValue = new WebhookAuthenticationConfiguration();
            _resultValue.allowedIpRange = allowedIpRange;
            _resultValue.secretToken = secretToken;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy