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

com.pulumi.aws.s3.inputs.BucketNotificationState 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.s3.inputs;

import com.pulumi.aws.s3.inputs.BucketNotificationLambdaFunctionArgs;
import com.pulumi.aws.s3.inputs.BucketNotificationQueueArgs;
import com.pulumi.aws.s3.inputs.BucketNotificationTopicArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class BucketNotificationState extends com.pulumi.resources.ResourceArgs {

    public static final BucketNotificationState Empty = new BucketNotificationState();

    /**
     * Name of the bucket for notification configuration.
     * 
     * The following arguments are optional:
     * 
     */
    @Import(name="bucket")
    private @Nullable Output bucket;

    /**
     * @return Name of the bucket for notification configuration.
     * 
     * The following arguments are optional:
     * 
     */
    public Optional> bucket() {
        return Optional.ofNullable(this.bucket);
    }

    /**
     * Whether to enable Amazon EventBridge notifications. Defaults to `false`.
     * 
     */
    @Import(name="eventbridge")
    private @Nullable Output eventbridge;

    /**
     * @return Whether to enable Amazon EventBridge notifications. Defaults to `false`.
     * 
     */
    public Optional> eventbridge() {
        return Optional.ofNullable(this.eventbridge);
    }

    /**
     * Used to configure notifications to a Lambda Function. See below.
     * 
     */
    @Import(name="lambdaFunctions")
    private @Nullable Output> lambdaFunctions;

    /**
     * @return Used to configure notifications to a Lambda Function. See below.
     * 
     */
    public Optional>> lambdaFunctions() {
        return Optional.ofNullable(this.lambdaFunctions);
    }

    /**
     * Notification configuration to SQS Queue. See below.
     * 
     */
    @Import(name="queues")
    private @Nullable Output> queues;

    /**
     * @return Notification configuration to SQS Queue. See below.
     * 
     */
    public Optional>> queues() {
        return Optional.ofNullable(this.queues);
    }

    /**
     * Notification configuration to SNS Topic. See below.
     * 
     */
    @Import(name="topics")
    private @Nullable Output> topics;

    /**
     * @return Notification configuration to SNS Topic. See below.
     * 
     */
    public Optional>> topics() {
        return Optional.ofNullable(this.topics);
    }

    private BucketNotificationState() {}

    private BucketNotificationState(BucketNotificationState $) {
        this.bucket = $.bucket;
        this.eventbridge = $.eventbridge;
        this.lambdaFunctions = $.lambdaFunctions;
        this.queues = $.queues;
        this.topics = $.topics;
    }

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

    public static final class Builder {
        private BucketNotificationState $;

        public Builder() {
            $ = new BucketNotificationState();
        }

        public Builder(BucketNotificationState defaults) {
            $ = new BucketNotificationState(Objects.requireNonNull(defaults));
        }

        /**
         * @param bucket Name of the bucket for notification configuration.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder bucket(@Nullable Output bucket) {
            $.bucket = bucket;
            return this;
        }

        /**
         * @param bucket Name of the bucket for notification configuration.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder bucket(String bucket) {
            return bucket(Output.of(bucket));
        }

        /**
         * @param eventbridge Whether to enable Amazon EventBridge notifications. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder eventbridge(@Nullable Output eventbridge) {
            $.eventbridge = eventbridge;
            return this;
        }

        /**
         * @param eventbridge Whether to enable Amazon EventBridge notifications. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder eventbridge(Boolean eventbridge) {
            return eventbridge(Output.of(eventbridge));
        }

        /**
         * @param lambdaFunctions Used to configure notifications to a Lambda Function. See below.
         * 
         * @return builder
         * 
         */
        public Builder lambdaFunctions(@Nullable Output> lambdaFunctions) {
            $.lambdaFunctions = lambdaFunctions;
            return this;
        }

        /**
         * @param lambdaFunctions Used to configure notifications to a Lambda Function. See below.
         * 
         * @return builder
         * 
         */
        public Builder lambdaFunctions(List lambdaFunctions) {
            return lambdaFunctions(Output.of(lambdaFunctions));
        }

        /**
         * @param lambdaFunctions Used to configure notifications to a Lambda Function. See below.
         * 
         * @return builder
         * 
         */
        public Builder lambdaFunctions(BucketNotificationLambdaFunctionArgs... lambdaFunctions) {
            return lambdaFunctions(List.of(lambdaFunctions));
        }

        /**
         * @param queues Notification configuration to SQS Queue. See below.
         * 
         * @return builder
         * 
         */
        public Builder queues(@Nullable Output> queues) {
            $.queues = queues;
            return this;
        }

        /**
         * @param queues Notification configuration to SQS Queue. See below.
         * 
         * @return builder
         * 
         */
        public Builder queues(List queues) {
            return queues(Output.of(queues));
        }

        /**
         * @param queues Notification configuration to SQS Queue. See below.
         * 
         * @return builder
         * 
         */
        public Builder queues(BucketNotificationQueueArgs... queues) {
            return queues(List.of(queues));
        }

        /**
         * @param topics Notification configuration to SNS Topic. See below.
         * 
         * @return builder
         * 
         */
        public Builder topics(@Nullable Output> topics) {
            $.topics = topics;
            return this;
        }

        /**
         * @param topics Notification configuration to SNS Topic. See below.
         * 
         * @return builder
         * 
         */
        public Builder topics(List topics) {
            return topics(Output.of(topics));
        }

        /**
         * @param topics Notification configuration to SNS Topic. See below.
         * 
         * @return builder
         * 
         */
        public Builder topics(BucketNotificationTopicArgs... topics) {
            return topics(List.of(topics));
        }

        public BucketNotificationState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy