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

com.pulumi.eks.inputs.FargateProfileArgs 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.inputs;

import com.pulumi.aws.eks.inputs.FargateProfileSelectorArgs;
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;


/**
 * Defines how Kubernetes pods are executed in Fargate. See aws.eks.FargateProfileArgs for reference.
 * 
 */
public final class FargateProfileArgs extends com.pulumi.resources.ResourceArgs {

    public static final FargateProfileArgs Empty = new FargateProfileArgs();

    /**
     * Specify a custom role to use for executing pods in Fargate. Defaults to creating a new role with the `arn:aws:iam::aws:policy/AmazonEKSFargatePodExecutionRolePolicy` policy attached.
     * 
     */
    @Import(name="podExecutionRoleArn")
    private @Nullable Output podExecutionRoleArn;

    /**
     * @return Specify a custom role to use for executing pods in Fargate. Defaults to creating a new role with the `arn:aws:iam::aws:policy/AmazonEKSFargatePodExecutionRolePolicy` policy attached.
     * 
     */
    public Optional> podExecutionRoleArn() {
        return Optional.ofNullable(this.podExecutionRoleArn);
    }

    /**
     * Specify the namespace and label selectors to use for launching pods into Fargate.
     * 
     */
    @Import(name="selectors")
    private @Nullable Output> selectors;

    /**
     * @return Specify the namespace and label selectors to use for launching pods into Fargate.
     * 
     */
    public Optional>> selectors() {
        return Optional.ofNullable(this.selectors);
    }

    /**
     * Specify the subnets in which to execute Fargate tasks for pods. Defaults to the private subnets associated with the cluster.
     * 
     */
    @Import(name="subnetIds")
    private @Nullable Output> subnetIds;

    /**
     * @return Specify the subnets in which to execute Fargate tasks for pods. Defaults to the private subnets associated with the cluster.
     * 
     */
    public Optional>> subnetIds() {
        return Optional.ofNullable(this.subnetIds);
    }

    private FargateProfileArgs() {}

    private FargateProfileArgs(FargateProfileArgs $) {
        this.podExecutionRoleArn = $.podExecutionRoleArn;
        this.selectors = $.selectors;
        this.subnetIds = $.subnetIds;
    }

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

    public static final class Builder {
        private FargateProfileArgs $;

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

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

        /**
         * @param podExecutionRoleArn Specify a custom role to use for executing pods in Fargate. Defaults to creating a new role with the `arn:aws:iam::aws:policy/AmazonEKSFargatePodExecutionRolePolicy` policy attached.
         * 
         * @return builder
         * 
         */
        public Builder podExecutionRoleArn(@Nullable Output podExecutionRoleArn) {
            $.podExecutionRoleArn = podExecutionRoleArn;
            return this;
        }

        /**
         * @param podExecutionRoleArn Specify a custom role to use for executing pods in Fargate. Defaults to creating a new role with the `arn:aws:iam::aws:policy/AmazonEKSFargatePodExecutionRolePolicy` policy attached.
         * 
         * @return builder
         * 
         */
        public Builder podExecutionRoleArn(String podExecutionRoleArn) {
            return podExecutionRoleArn(Output.of(podExecutionRoleArn));
        }

        /**
         * @param selectors Specify the namespace and label selectors to use for launching pods into Fargate.
         * 
         * @return builder
         * 
         */
        public Builder selectors(@Nullable Output> selectors) {
            $.selectors = selectors;
            return this;
        }

        /**
         * @param selectors Specify the namespace and label selectors to use for launching pods into Fargate.
         * 
         * @return builder
         * 
         */
        public Builder selectors(List selectors) {
            return selectors(Output.of(selectors));
        }

        /**
         * @param selectors Specify the namespace and label selectors to use for launching pods into Fargate.
         * 
         * @return builder
         * 
         */
        public Builder selectors(FargateProfileSelectorArgs... selectors) {
            return selectors(List.of(selectors));
        }

        /**
         * @param subnetIds Specify the subnets in which to execute Fargate tasks for pods. Defaults to the private subnets associated with the cluster.
         * 
         * @return builder
         * 
         */
        public Builder subnetIds(@Nullable Output> subnetIds) {
            $.subnetIds = subnetIds;
            return this;
        }

        /**
         * @param subnetIds Specify the subnets in which to execute Fargate tasks for pods. Defaults to the private subnets associated with the cluster.
         * 
         * @return builder
         * 
         */
        public Builder subnetIds(List subnetIds) {
            return subnetIds(Output.of(subnetIds));
        }

        /**
         * @param subnetIds Specify the subnets in which to execute Fargate tasks for pods. Defaults to the private subnets associated with the cluster.
         * 
         * @return builder
         * 
         */
        public Builder subnetIds(String... subnetIds) {
            return subnetIds(List.of(subnetIds));
        }

        public FargateProfileArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy