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

com.pulumi.aws.pipes.inputs.PipeTargetParametersEcsTaskParametersNetworkConfigurationAwsVpcConfigurationArgs 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.pipes.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;


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

    public static final PipeTargetParametersEcsTaskParametersNetworkConfigurationAwsVpcConfigurationArgs Empty = new PipeTargetParametersEcsTaskParametersNetworkConfigurationAwsVpcConfigurationArgs();

    /**
     * Specifies whether the task's elastic network interface receives a public IP address. You can specify ENABLED only when LaunchType in EcsParameters is set to FARGATE. Valid Values: ENABLED, DISABLED.
     * 
     */
    @Import(name="assignPublicIp")
    private @Nullable Output assignPublicIp;

    /**
     * @return Specifies whether the task's elastic network interface receives a public IP address. You can specify ENABLED only when LaunchType in EcsParameters is set to FARGATE. Valid Values: ENABLED, DISABLED.
     * 
     */
    public Optional> assignPublicIp() {
        return Optional.ofNullable(this.assignPublicIp);
    }

    @Import(name="securityGroups")
    private @Nullable Output> securityGroups;

    public Optional>> securityGroups() {
        return Optional.ofNullable(this.securityGroups);
    }

    @Import(name="subnets")
    private @Nullable Output> subnets;

    public Optional>> subnets() {
        return Optional.ofNullable(this.subnets);
    }

    private PipeTargetParametersEcsTaskParametersNetworkConfigurationAwsVpcConfigurationArgs() {}

    private PipeTargetParametersEcsTaskParametersNetworkConfigurationAwsVpcConfigurationArgs(PipeTargetParametersEcsTaskParametersNetworkConfigurationAwsVpcConfigurationArgs $) {
        this.assignPublicIp = $.assignPublicIp;
        this.securityGroups = $.securityGroups;
        this.subnets = $.subnets;
    }

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

    public static final class Builder {
        private PipeTargetParametersEcsTaskParametersNetworkConfigurationAwsVpcConfigurationArgs $;

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

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

        /**
         * @param assignPublicIp Specifies whether the task's elastic network interface receives a public IP address. You can specify ENABLED only when LaunchType in EcsParameters is set to FARGATE. Valid Values: ENABLED, DISABLED.
         * 
         * @return builder
         * 
         */
        public Builder assignPublicIp(@Nullable Output assignPublicIp) {
            $.assignPublicIp = assignPublicIp;
            return this;
        }

        /**
         * @param assignPublicIp Specifies whether the task's elastic network interface receives a public IP address. You can specify ENABLED only when LaunchType in EcsParameters is set to FARGATE. Valid Values: ENABLED, DISABLED.
         * 
         * @return builder
         * 
         */
        public Builder assignPublicIp(String assignPublicIp) {
            return assignPublicIp(Output.of(assignPublicIp));
        }

        public Builder securityGroups(@Nullable Output> securityGroups) {
            $.securityGroups = securityGroups;
            return this;
        }

        public Builder securityGroups(List securityGroups) {
            return securityGroups(Output.of(securityGroups));
        }

        public Builder securityGroups(String... securityGroups) {
            return securityGroups(List.of(securityGroups));
        }

        public Builder subnets(@Nullable Output> subnets) {
            $.subnets = subnets;
            return this;
        }

        public Builder subnets(List subnets) {
            return subnets(Output.of(subnets));
        }

        public Builder subnets(String... subnets) {
            return subnets(List.of(subnets));
        }

        public PipeTargetParametersEcsTaskParametersNetworkConfigurationAwsVpcConfigurationArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy