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

com.pulumi.aws.ecs.outputs.GetTaskExecutionNetworkConfiguration 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.60.0-alpha.1731982519
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.ecs.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetTaskExecutionNetworkConfiguration {
    /**
     * @return Assign a public IP address to the ENI (Fargate launch type only). Valid values are `true` or `false`. Default `false`.
     * 
     * For more information, see the [Task Networking](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html) documentation.
     * 
     */
    private @Nullable Boolean assignPublicIp;
    /**
     * @return Security groups associated with the task or service. If you do not specify a security group, the default security group for the VPC is used.
     * 
     */
    private @Nullable List securityGroups;
    /**
     * @return Subnets associated with the task or service.
     * 
     */
    private List subnets;

    private GetTaskExecutionNetworkConfiguration() {}
    /**
     * @return Assign a public IP address to the ENI (Fargate launch type only). Valid values are `true` or `false`. Default `false`.
     * 
     * For more information, see the [Task Networking](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html) documentation.
     * 
     */
    public Optional assignPublicIp() {
        return Optional.ofNullable(this.assignPublicIp);
    }
    /**
     * @return Security groups associated with the task or service. If you do not specify a security group, the default security group for the VPC is used.
     * 
     */
    public List securityGroups() {
        return this.securityGroups == null ? List.of() : this.securityGroups;
    }
    /**
     * @return Subnets associated with the task or service.
     * 
     */
    public List subnets() {
        return this.subnets;
    }

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

    public static Builder builder(GetTaskExecutionNetworkConfiguration defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean assignPublicIp;
        private @Nullable List securityGroups;
        private List subnets;
        public Builder() {}
        public Builder(GetTaskExecutionNetworkConfiguration defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.assignPublicIp = defaults.assignPublicIp;
    	      this.securityGroups = defaults.securityGroups;
    	      this.subnets = defaults.subnets;
        }

        @CustomType.Setter
        public Builder assignPublicIp(@Nullable Boolean assignPublicIp) {

            this.assignPublicIp = assignPublicIp;
            return this;
        }
        @CustomType.Setter
        public Builder securityGroups(@Nullable List securityGroups) {

            this.securityGroups = securityGroups;
            return this;
        }
        public Builder securityGroups(String... securityGroups) {
            return securityGroups(List.of(securityGroups));
        }
        @CustomType.Setter
        public Builder subnets(List subnets) {
            if (subnets == null) {
              throw new MissingRequiredPropertyException("GetTaskExecutionNetworkConfiguration", "subnets");
            }
            this.subnets = subnets;
            return this;
        }
        public Builder subnets(String... subnets) {
            return subnets(List.of(subnets));
        }
        public GetTaskExecutionNetworkConfiguration build() {
            final var _resultValue = new GetTaskExecutionNetworkConfiguration();
            _resultValue.assignPublicIp = assignPublicIp;
            _resultValue.securityGroups = securityGroups;
            _resultValue.subnets = subnets;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy