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

com.pulumi.aws.s3.inputs.BucketNotificationTopicArgs Maven / Gradle / Ivy

Go to download

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

The 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.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final BucketNotificationTopicArgs Empty = new BucketNotificationTopicArgs();

    /**
     * [Event](http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#notification-how-to-event-types-and-destinations) for which to send notifications.
     * 
     */
    @Import(name="events", required=true)
    private Output> events;

    /**
     * @return [Event](http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#notification-how-to-event-types-and-destinations) for which to send notifications.
     * 
     */
    public Output> events() {
        return this.events;
    }

    /**
     * Object key name prefix.
     * 
     */
    @Import(name="filterPrefix")
    private @Nullable Output filterPrefix;

    /**
     * @return Object key name prefix.
     * 
     */
    public Optional> filterPrefix() {
        return Optional.ofNullable(this.filterPrefix);
    }

    /**
     * Object key name suffix.
     * 
     */
    @Import(name="filterSuffix")
    private @Nullable Output filterSuffix;

    /**
     * @return Object key name suffix.
     * 
     */
    public Optional> filterSuffix() {
        return Optional.ofNullable(this.filterSuffix);
    }

    /**
     * Unique identifier for each of the notification configurations.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return Unique identifier for each of the notification configurations.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * SNS topic ARN.
     * 
     */
    @Import(name="topicArn", required=true)
    private Output topicArn;

    /**
     * @return SNS topic ARN.
     * 
     */
    public Output topicArn() {
        return this.topicArn;
    }

    private BucketNotificationTopicArgs() {}

    private BucketNotificationTopicArgs(BucketNotificationTopicArgs $) {
        this.events = $.events;
        this.filterPrefix = $.filterPrefix;
        this.filterSuffix = $.filterSuffix;
        this.id = $.id;
        this.topicArn = $.topicArn;
    }

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

    public static final class Builder {
        private BucketNotificationTopicArgs $;

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

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

        /**
         * @param events [Event](http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#notification-how-to-event-types-and-destinations) for which to send notifications.
         * 
         * @return builder
         * 
         */
        public Builder events(Output> events) {
            $.events = events;
            return this;
        }

        /**
         * @param events [Event](http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#notification-how-to-event-types-and-destinations) for which to send notifications.
         * 
         * @return builder
         * 
         */
        public Builder events(List events) {
            return events(Output.of(events));
        }

        /**
         * @param events [Event](http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#notification-how-to-event-types-and-destinations) for which to send notifications.
         * 
         * @return builder
         * 
         */
        public Builder events(String... events) {
            return events(List.of(events));
        }

        /**
         * @param filterPrefix Object key name prefix.
         * 
         * @return builder
         * 
         */
        public Builder filterPrefix(@Nullable Output filterPrefix) {
            $.filterPrefix = filterPrefix;
            return this;
        }

        /**
         * @param filterPrefix Object key name prefix.
         * 
         * @return builder
         * 
         */
        public Builder filterPrefix(String filterPrefix) {
            return filterPrefix(Output.of(filterPrefix));
        }

        /**
         * @param filterSuffix Object key name suffix.
         * 
         * @return builder
         * 
         */
        public Builder filterSuffix(@Nullable Output filterSuffix) {
            $.filterSuffix = filterSuffix;
            return this;
        }

        /**
         * @param filterSuffix Object key name suffix.
         * 
         * @return builder
         * 
         */
        public Builder filterSuffix(String filterSuffix) {
            return filterSuffix(Output.of(filterSuffix));
        }

        /**
         * @param id Unique identifier for each of the notification configurations.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id Unique identifier for each of the notification configurations.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param topicArn SNS topic ARN.
         * 
         * @return builder
         * 
         */
        public Builder topicArn(Output topicArn) {
            $.topicArn = topicArn;
            return this;
        }

        /**
         * @param topicArn SNS topic ARN.
         * 
         * @return builder
         * 
         */
        public Builder topicArn(String topicArn) {
            return topicArn(Output.of(topicArn));
        }

        public BucketNotificationTopicArgs build() {
            if ($.events == null) {
                throw new MissingRequiredPropertyException("BucketNotificationTopicArgs", "events");
            }
            if ($.topicArn == null) {
                throw new MissingRequiredPropertyException("BucketNotificationTopicArgs", "topicArn");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy