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

io.github.jogold.cloudstructs.SlackEvents Maven / Gradle / Ivy

The newest version!
package io.github.jogold.cloudstructs;

/**
 * Send Slack events to Amazon EventBridge.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-23T12:43:48.171Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = io.github.jogold.cloudstructs.$Module.class, fqn = "cloudstructs.SlackEvents")
public class SlackEvents extends software.constructs.Construct {

    protected SlackEvents(final software.amazon.jsii.JsiiObjectRef objRef) {
        super(objRef);
    }

    protected SlackEvents(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
        super(initializationMode);
    }

    /**
     * @param scope This parameter is required.
     * @param id This parameter is required.
     * @param props This parameter is required.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public SlackEvents(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull io.github.jogold.cloudstructs.SlackEventsProps props) {
        super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
        software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") });
    }

    /**
     * The custom event bus where Slack events are sent.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.events.EventBus getEventBus() {
        return software.amazon.jsii.Kernel.get(this, "eventBus", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.events.EventBus.class));
    }

    /**
     * A fluent builder for {@link io.github.jogold.cloudstructs.SlackEvents}.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public static final class Builder implements software.amazon.jsii.Builder {
        /**
         * @return a new instance of {@link Builder}.
         * @param scope This parameter is required.
         * @param id This parameter is required.
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public static Builder create(final software.constructs.Construct scope, final java.lang.String id) {
            return new Builder(scope, id);
        }

        private final software.constructs.Construct scope;
        private final java.lang.String id;
        private final io.github.jogold.cloudstructs.SlackEventsProps.Builder props;

        private Builder(final software.constructs.Construct scope, final java.lang.String id) {
            this.scope = scope;
            this.id = id;
            this.props = new io.github.jogold.cloudstructs.SlackEventsProps.Builder();
        }

        /**
         * The signing secret of the Slack app.
         * 

* @return {@code this} * @param signingSecret The signing secret of the Slack app. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder signingSecret(final software.amazon.awscdk.SecretValue signingSecret) { this.props.signingSecret(signingSecret); return this; } /** * A name for the API Gateway resource. *

* Default: SlackEventsApi *

* @return {@code this} * @param apiName A name for the API Gateway resource. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder apiName(final java.lang.String apiName) { this.props.apiName(apiName); return this; } /** * Whether to use a custom event bus. *

* Default: false *

* @return {@code this} * @param customEventBus Whether to use a custom event bus. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder customEventBus(final java.lang.Boolean customEventBus) { this.props.customEventBus(customEventBus); return this; } /** * @return a newly built instance of {@link io.github.jogold.cloudstructs.SlackEvents}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public io.github.jogold.cloudstructs.SlackEvents build() { return new io.github.jogold.cloudstructs.SlackEvents( this.scope, this.id, this.props.build() ); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy