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

com.pulumi.aws.ec2.VpcEndpointServiceArgs 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.ec2;

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


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

    public static final VpcEndpointServiceArgs Empty = new VpcEndpointServiceArgs();

    /**
     * Whether or not VPC endpoint connection requests to the service must be accepted by the service owner - `true` or `false`.
     * 
     */
    @Import(name="acceptanceRequired", required=true)
    private Output acceptanceRequired;

    /**
     * @return Whether or not VPC endpoint connection requests to the service must be accepted by the service owner - `true` or `false`.
     * 
     */
    public Output acceptanceRequired() {
        return this.acceptanceRequired;
    }

    /**
     * The ARNs of one or more principals allowed to discover the endpoint service.
     * 
     */
    @Import(name="allowedPrincipals")
    private @Nullable Output> allowedPrincipals;

    /**
     * @return The ARNs of one or more principals allowed to discover the endpoint service.
     * 
     */
    public Optional>> allowedPrincipals() {
        return Optional.ofNullable(this.allowedPrincipals);
    }

    /**
     * Amazon Resource Names (ARNs) of one or more Gateway Load Balancers for the endpoint service.
     * 
     */
    @Import(name="gatewayLoadBalancerArns")
    private @Nullable Output> gatewayLoadBalancerArns;

    /**
     * @return Amazon Resource Names (ARNs) of one or more Gateway Load Balancers for the endpoint service.
     * 
     */
    public Optional>> gatewayLoadBalancerArns() {
        return Optional.ofNullable(this.gatewayLoadBalancerArns);
    }

    /**
     * Amazon Resource Names (ARNs) of one or more Network Load Balancers for the endpoint service.
     * 
     */
    @Import(name="networkLoadBalancerArns")
    private @Nullable Output> networkLoadBalancerArns;

    /**
     * @return Amazon Resource Names (ARNs) of one or more Network Load Balancers for the endpoint service.
     * 
     */
    public Optional>> networkLoadBalancerArns() {
        return Optional.ofNullable(this.networkLoadBalancerArns);
    }

    /**
     * The private DNS name for the service.
     * 
     */
    @Import(name="privateDnsName")
    private @Nullable Output privateDnsName;

    /**
     * @return The private DNS name for the service.
     * 
     */
    public Optional> privateDnsName() {
        return Optional.ofNullable(this.privateDnsName);
    }

    /**
     * The supported IP address types. The possible values are `ipv4` and `ipv6`.
     * 
     */
    @Import(name="supportedIpAddressTypes")
    private @Nullable Output> supportedIpAddressTypes;

    /**
     * @return The supported IP address types. The possible values are `ipv4` and `ipv6`.
     * 
     */
    public Optional>> supportedIpAddressTypes() {
        return Optional.ofNullable(this.supportedIpAddressTypes);
    }

    /**
     * A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private VpcEndpointServiceArgs() {}

    private VpcEndpointServiceArgs(VpcEndpointServiceArgs $) {
        this.acceptanceRequired = $.acceptanceRequired;
        this.allowedPrincipals = $.allowedPrincipals;
        this.gatewayLoadBalancerArns = $.gatewayLoadBalancerArns;
        this.networkLoadBalancerArns = $.networkLoadBalancerArns;
        this.privateDnsName = $.privateDnsName;
        this.supportedIpAddressTypes = $.supportedIpAddressTypes;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private VpcEndpointServiceArgs $;

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

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

        /**
         * @param acceptanceRequired Whether or not VPC endpoint connection requests to the service must be accepted by the service owner - `true` or `false`.
         * 
         * @return builder
         * 
         */
        public Builder acceptanceRequired(Output acceptanceRequired) {
            $.acceptanceRequired = acceptanceRequired;
            return this;
        }

        /**
         * @param acceptanceRequired Whether or not VPC endpoint connection requests to the service must be accepted by the service owner - `true` or `false`.
         * 
         * @return builder
         * 
         */
        public Builder acceptanceRequired(Boolean acceptanceRequired) {
            return acceptanceRequired(Output.of(acceptanceRequired));
        }

        /**
         * @param allowedPrincipals The ARNs of one or more principals allowed to discover the endpoint service.
         * 
         * @return builder
         * 
         */
        public Builder allowedPrincipals(@Nullable Output> allowedPrincipals) {
            $.allowedPrincipals = allowedPrincipals;
            return this;
        }

        /**
         * @param allowedPrincipals The ARNs of one or more principals allowed to discover the endpoint service.
         * 
         * @return builder
         * 
         */
        public Builder allowedPrincipals(List allowedPrincipals) {
            return allowedPrincipals(Output.of(allowedPrincipals));
        }

        /**
         * @param allowedPrincipals The ARNs of one or more principals allowed to discover the endpoint service.
         * 
         * @return builder
         * 
         */
        public Builder allowedPrincipals(String... allowedPrincipals) {
            return allowedPrincipals(List.of(allowedPrincipals));
        }

        /**
         * @param gatewayLoadBalancerArns Amazon Resource Names (ARNs) of one or more Gateway Load Balancers for the endpoint service.
         * 
         * @return builder
         * 
         */
        public Builder gatewayLoadBalancerArns(@Nullable Output> gatewayLoadBalancerArns) {
            $.gatewayLoadBalancerArns = gatewayLoadBalancerArns;
            return this;
        }

        /**
         * @param gatewayLoadBalancerArns Amazon Resource Names (ARNs) of one or more Gateway Load Balancers for the endpoint service.
         * 
         * @return builder
         * 
         */
        public Builder gatewayLoadBalancerArns(List gatewayLoadBalancerArns) {
            return gatewayLoadBalancerArns(Output.of(gatewayLoadBalancerArns));
        }

        /**
         * @param gatewayLoadBalancerArns Amazon Resource Names (ARNs) of one or more Gateway Load Balancers for the endpoint service.
         * 
         * @return builder
         * 
         */
        public Builder gatewayLoadBalancerArns(String... gatewayLoadBalancerArns) {
            return gatewayLoadBalancerArns(List.of(gatewayLoadBalancerArns));
        }

        /**
         * @param networkLoadBalancerArns Amazon Resource Names (ARNs) of one or more Network Load Balancers for the endpoint service.
         * 
         * @return builder
         * 
         */
        public Builder networkLoadBalancerArns(@Nullable Output> networkLoadBalancerArns) {
            $.networkLoadBalancerArns = networkLoadBalancerArns;
            return this;
        }

        /**
         * @param networkLoadBalancerArns Amazon Resource Names (ARNs) of one or more Network Load Balancers for the endpoint service.
         * 
         * @return builder
         * 
         */
        public Builder networkLoadBalancerArns(List networkLoadBalancerArns) {
            return networkLoadBalancerArns(Output.of(networkLoadBalancerArns));
        }

        /**
         * @param networkLoadBalancerArns Amazon Resource Names (ARNs) of one or more Network Load Balancers for the endpoint service.
         * 
         * @return builder
         * 
         */
        public Builder networkLoadBalancerArns(String... networkLoadBalancerArns) {
            return networkLoadBalancerArns(List.of(networkLoadBalancerArns));
        }

        /**
         * @param privateDnsName The private DNS name for the service.
         * 
         * @return builder
         * 
         */
        public Builder privateDnsName(@Nullable Output privateDnsName) {
            $.privateDnsName = privateDnsName;
            return this;
        }

        /**
         * @param privateDnsName The private DNS name for the service.
         * 
         * @return builder
         * 
         */
        public Builder privateDnsName(String privateDnsName) {
            return privateDnsName(Output.of(privateDnsName));
        }

        /**
         * @param supportedIpAddressTypes The supported IP address types. The possible values are `ipv4` and `ipv6`.
         * 
         * @return builder
         * 
         */
        public Builder supportedIpAddressTypes(@Nullable Output> supportedIpAddressTypes) {
            $.supportedIpAddressTypes = supportedIpAddressTypes;
            return this;
        }

        /**
         * @param supportedIpAddressTypes The supported IP address types. The possible values are `ipv4` and `ipv6`.
         * 
         * @return builder
         * 
         */
        public Builder supportedIpAddressTypes(List supportedIpAddressTypes) {
            return supportedIpAddressTypes(Output.of(supportedIpAddressTypes));
        }

        /**
         * @param supportedIpAddressTypes The supported IP address types. The possible values are `ipv4` and `ipv6`.
         * 
         * @return builder
         * 
         */
        public Builder supportedIpAddressTypes(String... supportedIpAddressTypes) {
            return supportedIpAddressTypes(List.of(supportedIpAddressTypes));
        }

        /**
         * @param tags A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy