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

com.pulumi.eks.NodeGroupSecurityGroupArgs Maven / Gradle / Ivy

There is a newer version: 3.2.0-alpha.1732027833
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.eks;

import com.pulumi.aws.ec2.SecurityGroup;
import com.pulumi.aws.eks.Cluster;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final NodeGroupSecurityGroupArgs Empty = new NodeGroupSecurityGroupArgs();

    /**
     * The security group associated with the EKS cluster.
     * 
     */
    @Import(name="clusterSecurityGroup", required=true)
    private Output clusterSecurityGroup;

    /**
     * @return The security group associated with the EKS cluster.
     * 
     */
    public Output clusterSecurityGroup() {
        return this.clusterSecurityGroup;
    }

    /**
     * The EKS cluster associated with the worker node group
     * 
     */
    @Import(name="eksCluster", required=true)
    private Output eksCluster;

    /**
     * @return The EKS cluster associated with the worker node group
     * 
     */
    public Output eksCluster() {
        return this.eksCluster;
    }

    /**
     * Key-value mapping of tags to apply to this security group.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Key-value mapping of tags to apply to this security group.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The VPC in which to create the worker node group.
     * 
     */
    @Import(name="vpcId", required=true)
    private Output vpcId;

    /**
     * @return The VPC in which to create the worker node group.
     * 
     */
    public Output vpcId() {
        return this.vpcId;
    }

    private NodeGroupSecurityGroupArgs() {}

    private NodeGroupSecurityGroupArgs(NodeGroupSecurityGroupArgs $) {
        this.clusterSecurityGroup = $.clusterSecurityGroup;
        this.eksCluster = $.eksCluster;
        this.tags = $.tags;
        this.vpcId = $.vpcId;
    }

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

    public static final class Builder {
        private NodeGroupSecurityGroupArgs $;

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

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

        /**
         * @param clusterSecurityGroup The security group associated with the EKS cluster.
         * 
         * @return builder
         * 
         */
        public Builder clusterSecurityGroup(Output clusterSecurityGroup) {
            $.clusterSecurityGroup = clusterSecurityGroup;
            return this;
        }

        /**
         * @param clusterSecurityGroup The security group associated with the EKS cluster.
         * 
         * @return builder
         * 
         */
        public Builder clusterSecurityGroup(SecurityGroup clusterSecurityGroup) {
            return clusterSecurityGroup(Output.of(clusterSecurityGroup));
        }

        /**
         * @param eksCluster The EKS cluster associated with the worker node group
         * 
         * @return builder
         * 
         */
        public Builder eksCluster(Output eksCluster) {
            $.eksCluster = eksCluster;
            return this;
        }

        /**
         * @param eksCluster The EKS cluster associated with the worker node group
         * 
         * @return builder
         * 
         */
        public Builder eksCluster(Cluster eksCluster) {
            return eksCluster(Output.of(eksCluster));
        }

        /**
         * @param tags Key-value mapping of tags to apply to this security group.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Key-value mapping of tags to apply to this security group.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param vpcId The VPC in which to create the worker node group.
         * 
         * @return builder
         * 
         */
        public Builder vpcId(Output vpcId) {
            $.vpcId = vpcId;
            return this;
        }

        /**
         * @param vpcId The VPC in which to create the worker node group.
         * 
         * @return builder
         * 
         */
        public Builder vpcId(String vpcId) {
            return vpcId(Output.of(vpcId));
        }

        public NodeGroupSecurityGroupArgs build() {
            $.clusterSecurityGroup = Objects.requireNonNull($.clusterSecurityGroup, "expected parameter 'clusterSecurityGroup' to be non-null");
            $.eksCluster = Objects.requireNonNull($.eksCluster, "expected parameter 'eksCluster' to be non-null");
            $.vpcId = Objects.requireNonNull($.vpcId, "expected parameter 'vpcId' to be non-null");
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy