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

com.pulumi.azurenative.awsconnector.inputs.AutoScalingGroupNotificationConfigurationArgs Maven / Gradle / Ivy

There is a newer version: 2.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.azurenative.awsconnector.inputs;

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


/**
 * Definition of NotificationConfiguration
 * 
 */
public final class AutoScalingGroupNotificationConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final AutoScalingGroupNotificationConfigurationArgs Empty = new AutoScalingGroupNotificationConfigurationArgs();

    /**
     * A list of event types that send a notification. Event types can include any of the following types.  *Allowed values*:  +   ``autoscaling:EC2_INSTANCE_LAUNCH``   +   ``autoscaling:EC2_INSTANCE_LAUNCH_ERROR``   +   ``autoscaling:EC2_INSTANCE_TERMINATE``   +   ``autoscaling:EC2_INSTANCE_TERMINATE_ERROR``   +   ``autoscaling:TEST_NOTIFICATION``
     * 
     */
    @Import(name="notificationTypes")
    private @Nullable Output> notificationTypes;

    /**
     * @return A list of event types that send a notification. Event types can include any of the following types.  *Allowed values*:  +   ``autoscaling:EC2_INSTANCE_LAUNCH``   +   ``autoscaling:EC2_INSTANCE_LAUNCH_ERROR``   +   ``autoscaling:EC2_INSTANCE_TERMINATE``   +   ``autoscaling:EC2_INSTANCE_TERMINATE_ERROR``   +   ``autoscaling:TEST_NOTIFICATION``
     * 
     */
    public Optional>> notificationTypes() {
        return Optional.ofNullable(this.notificationTypes);
    }

    /**
     * The Amazon Resource Name (ARN) of the Amazon SNS topic.
     * 
     */
    @Import(name="topicARN")
    private @Nullable Output topicARN;

    /**
     * @return The Amazon Resource Name (ARN) of the Amazon SNS topic.
     * 
     */
    public Optional> topicARN() {
        return Optional.ofNullable(this.topicARN);
    }

    private AutoScalingGroupNotificationConfigurationArgs() {}

    private AutoScalingGroupNotificationConfigurationArgs(AutoScalingGroupNotificationConfigurationArgs $) {
        this.notificationTypes = $.notificationTypes;
        this.topicARN = $.topicARN;
    }

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

    public static final class Builder {
        private AutoScalingGroupNotificationConfigurationArgs $;

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

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

        /**
         * @param notificationTypes A list of event types that send a notification. Event types can include any of the following types.  *Allowed values*:  +   ``autoscaling:EC2_INSTANCE_LAUNCH``   +   ``autoscaling:EC2_INSTANCE_LAUNCH_ERROR``   +   ``autoscaling:EC2_INSTANCE_TERMINATE``   +   ``autoscaling:EC2_INSTANCE_TERMINATE_ERROR``   +   ``autoscaling:TEST_NOTIFICATION``
         * 
         * @return builder
         * 
         */
        public Builder notificationTypes(@Nullable Output> notificationTypes) {
            $.notificationTypes = notificationTypes;
            return this;
        }

        /**
         * @param notificationTypes A list of event types that send a notification. Event types can include any of the following types.  *Allowed values*:  +   ``autoscaling:EC2_INSTANCE_LAUNCH``   +   ``autoscaling:EC2_INSTANCE_LAUNCH_ERROR``   +   ``autoscaling:EC2_INSTANCE_TERMINATE``   +   ``autoscaling:EC2_INSTANCE_TERMINATE_ERROR``   +   ``autoscaling:TEST_NOTIFICATION``
         * 
         * @return builder
         * 
         */
        public Builder notificationTypes(List notificationTypes) {
            return notificationTypes(Output.of(notificationTypes));
        }

        /**
         * @param notificationTypes A list of event types that send a notification. Event types can include any of the following types.  *Allowed values*:  +   ``autoscaling:EC2_INSTANCE_LAUNCH``   +   ``autoscaling:EC2_INSTANCE_LAUNCH_ERROR``   +   ``autoscaling:EC2_INSTANCE_TERMINATE``   +   ``autoscaling:EC2_INSTANCE_TERMINATE_ERROR``   +   ``autoscaling:TEST_NOTIFICATION``
         * 
         * @return builder
         * 
         */
        public Builder notificationTypes(String... notificationTypes) {
            return notificationTypes(List.of(notificationTypes));
        }

        /**
         * @param topicARN The Amazon Resource Name (ARN) of the Amazon SNS topic.
         * 
         * @return builder
         * 
         */
        public Builder topicARN(@Nullable Output topicARN) {
            $.topicARN = topicARN;
            return this;
        }

        /**
         * @param topicARN The Amazon Resource Name (ARN) of the Amazon SNS topic.
         * 
         * @return builder
         * 
         */
        public Builder topicARN(String topicARN) {
            return topicARN(Output.of(topicARN));
        }

        public AutoScalingGroupNotificationConfigurationArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy