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

com.pulumi.aws.autoscaling.AttachmentArgs 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.autoscaling;

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


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

    public static final AttachmentArgs Empty = new AttachmentArgs();

    /**
     * Name of ASG to associate with the ELB.
     * 
     */
    @Import(name="autoscalingGroupName", required=true)
    private Output autoscalingGroupName;

    /**
     * @return Name of ASG to associate with the ELB.
     * 
     */
    public Output autoscalingGroupName() {
        return this.autoscalingGroupName;
    }

    /**
     * Name of the ELB.
     * 
     */
    @Import(name="elb")
    private @Nullable Output elb;

    /**
     * @return Name of the ELB.
     * 
     */
    public Optional> elb() {
        return Optional.ofNullable(this.elb);
    }

    /**
     * ARN of a load balancer target group.
     * 
     */
    @Import(name="lbTargetGroupArn")
    private @Nullable Output lbTargetGroupArn;

    /**
     * @return ARN of a load balancer target group.
     * 
     */
    public Optional> lbTargetGroupArn() {
        return Optional.ofNullable(this.lbTargetGroupArn);
    }

    private AttachmentArgs() {}

    private AttachmentArgs(AttachmentArgs $) {
        this.autoscalingGroupName = $.autoscalingGroupName;
        this.elb = $.elb;
        this.lbTargetGroupArn = $.lbTargetGroupArn;
    }

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

    public static final class Builder {
        private AttachmentArgs $;

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

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

        /**
         * @param autoscalingGroupName Name of ASG to associate with the ELB.
         * 
         * @return builder
         * 
         */
        public Builder autoscalingGroupName(Output autoscalingGroupName) {
            $.autoscalingGroupName = autoscalingGroupName;
            return this;
        }

        /**
         * @param autoscalingGroupName Name of ASG to associate with the ELB.
         * 
         * @return builder
         * 
         */
        public Builder autoscalingGroupName(String autoscalingGroupName) {
            return autoscalingGroupName(Output.of(autoscalingGroupName));
        }

        /**
         * @param elb Name of the ELB.
         * 
         * @return builder
         * 
         */
        public Builder elb(@Nullable Output elb) {
            $.elb = elb;
            return this;
        }

        /**
         * @param elb Name of the ELB.
         * 
         * @return builder
         * 
         */
        public Builder elb(String elb) {
            return elb(Output.of(elb));
        }

        /**
         * @param lbTargetGroupArn ARN of a load balancer target group.
         * 
         * @return builder
         * 
         */
        public Builder lbTargetGroupArn(@Nullable Output lbTargetGroupArn) {
            $.lbTargetGroupArn = lbTargetGroupArn;
            return this;
        }

        /**
         * @param lbTargetGroupArn ARN of a load balancer target group.
         * 
         * @return builder
         * 
         */
        public Builder lbTargetGroupArn(String lbTargetGroupArn) {
            return lbTargetGroupArn(Output.of(lbTargetGroupArn));
        }

        public AttachmentArgs build() {
            if ($.autoscalingGroupName == null) {
                throw new MissingRequiredPropertyException("AttachmentArgs", "autoscalingGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy