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

com.pulumi.aws.budgets.inputs.BudgetActionSubscriberArgs 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.72.0
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.budgets.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


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

    public static final BudgetActionSubscriberArgs Empty = new BudgetActionSubscriberArgs();

    /**
     * The address that AWS sends budget notifications to, either an SNS topic or an email.
     * 
     */
    @Import(name="address", required=true)
    private Output address;

    /**
     * @return The address that AWS sends budget notifications to, either an SNS topic or an email.
     * 
     */
    public Output address() {
        return this.address;
    }

    /**
     * The type of notification that AWS sends to a subscriber. Valid values are `SNS` or `EMAIL`.
     * 
     */
    @Import(name="subscriptionType", required=true)
    private Output subscriptionType;

    /**
     * @return The type of notification that AWS sends to a subscriber. Valid values are `SNS` or `EMAIL`.
     * 
     */
    public Output subscriptionType() {
        return this.subscriptionType;
    }

    private BudgetActionSubscriberArgs() {}

    private BudgetActionSubscriberArgs(BudgetActionSubscriberArgs $) {
        this.address = $.address;
        this.subscriptionType = $.subscriptionType;
    }

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

    public static final class Builder {
        private BudgetActionSubscriberArgs $;

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

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

        /**
         * @param address The address that AWS sends budget notifications to, either an SNS topic or an email.
         * 
         * @return builder
         * 
         */
        public Builder address(Output address) {
            $.address = address;
            return this;
        }

        /**
         * @param address The address that AWS sends budget notifications to, either an SNS topic or an email.
         * 
         * @return builder
         * 
         */
        public Builder address(String address) {
            return address(Output.of(address));
        }

        /**
         * @param subscriptionType The type of notification that AWS sends to a subscriber. Valid values are `SNS` or `EMAIL`.
         * 
         * @return builder
         * 
         */
        public Builder subscriptionType(Output subscriptionType) {
            $.subscriptionType = subscriptionType;
            return this;
        }

        /**
         * @param subscriptionType The type of notification that AWS sends to a subscriber. Valid values are `SNS` or `EMAIL`.
         * 
         * @return builder
         * 
         */
        public Builder subscriptionType(String subscriptionType) {
            return subscriptionType(Output.of(subscriptionType));
        }

        public BudgetActionSubscriberArgs build() {
            if ($.address == null) {
                throw new MissingRequiredPropertyException("BudgetActionSubscriberArgs", "address");
            }
            if ($.subscriptionType == null) {
                throw new MissingRequiredPropertyException("BudgetActionSubscriberArgs", "subscriptionType");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy