
com.pulumi.aws.autoscaling.NotificationArgs Maven / Gradle / Ivy
// *** 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.autoscaling;
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;
public final class NotificationArgs extends com.pulumi.resources.ResourceArgs {
public static final NotificationArgs Empty = new NotificationArgs();
/**
* List of AutoScaling Group Names
*
*/
@Import(name="groupNames", required=true)
private Output> groupNames;
/**
* @return List of AutoScaling Group Names
*
*/
public Output> groupNames() {
return this.groupNames;
}
/**
* List of Notification Types that trigger
* notifications. Acceptable values are documented [in the AWS documentation here](https://docs.aws.amazon.com/AutoScaling/latest/APIReference/API_NotificationConfiguration.html)
*
*/
@Import(name="notifications", required=true)
private Output> notifications;
/**
* @return List of Notification Types that trigger
* notifications. Acceptable values are documented [in the AWS documentation here](https://docs.aws.amazon.com/AutoScaling/latest/APIReference/API_NotificationConfiguration.html)
*
*/
public Output> notifications() {
return this.notifications;
}
/**
* Topic ARN for notifications to be sent through
*
*/
@Import(name="topicArn", required=true)
private Output topicArn;
/**
* @return Topic ARN for notifications to be sent through
*
*/
public Output topicArn() {
return this.topicArn;
}
private NotificationArgs() {}
private NotificationArgs(NotificationArgs $) {
this.groupNames = $.groupNames;
this.notifications = $.notifications;
this.topicArn = $.topicArn;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(NotificationArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private NotificationArgs $;
public Builder() {
$ = new NotificationArgs();
}
public Builder(NotificationArgs defaults) {
$ = new NotificationArgs(Objects.requireNonNull(defaults));
}
/**
* @param groupNames List of AutoScaling Group Names
*
* @return builder
*
*/
public Builder groupNames(Output> groupNames) {
$.groupNames = groupNames;
return this;
}
/**
* @param groupNames List of AutoScaling Group Names
*
* @return builder
*
*/
public Builder groupNames(List groupNames) {
return groupNames(Output.of(groupNames));
}
/**
* @param groupNames List of AutoScaling Group Names
*
* @return builder
*
*/
public Builder groupNames(String... groupNames) {
return groupNames(List.of(groupNames));
}
/**
* @param notifications List of Notification Types that trigger
* notifications. Acceptable values are documented [in the AWS documentation here](https://docs.aws.amazon.com/AutoScaling/latest/APIReference/API_NotificationConfiguration.html)
*
* @return builder
*
*/
public Builder notifications(Output> notifications) {
$.notifications = notifications;
return this;
}
/**
* @param notifications List of Notification Types that trigger
* notifications. Acceptable values are documented [in the AWS documentation here](https://docs.aws.amazon.com/AutoScaling/latest/APIReference/API_NotificationConfiguration.html)
*
* @return builder
*
*/
public Builder notifications(List notifications) {
return notifications(Output.of(notifications));
}
/**
* @param notifications List of Notification Types that trigger
* notifications. Acceptable values are documented [in the AWS documentation here](https://docs.aws.amazon.com/AutoScaling/latest/APIReference/API_NotificationConfiguration.html)
*
* @return builder
*
*/
public Builder notifications(String... notifications) {
return notifications(List.of(notifications));
}
/**
* @param topicArn Topic ARN for notifications to be sent through
*
* @return builder
*
*/
public Builder topicArn(Output topicArn) {
$.topicArn = topicArn;
return this;
}
/**
* @param topicArn Topic ARN for notifications to be sent through
*
* @return builder
*
*/
public Builder topicArn(String topicArn) {
return topicArn(Output.of(topicArn));
}
public NotificationArgs build() {
if ($.groupNames == null) {
throw new MissingRequiredPropertyException("NotificationArgs", "groupNames");
}
if ($.notifications == null) {
throw new MissingRequiredPropertyException("NotificationArgs", "notifications");
}
if ($.topicArn == null) {
throw new MissingRequiredPropertyException("NotificationArgs", "topicArn");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy