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

com.pulumi.aws.opensearch.ServerlessVpcEndpointArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The 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.opensearch;

import com.pulumi.aws.opensearch.inputs.ServerlessVpcEndpointTimeoutsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ServerlessVpcEndpointArgs Empty = new ServerlessVpcEndpointArgs();

    /**
     * Name of the interface endpoint.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the interface endpoint.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * One or more security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint. Up to 5 security groups can be provided.
     * 
     */
    @Import(name="securityGroupIds")
    private @Nullable Output> securityGroupIds;

    /**
     * @return One or more security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint. Up to 5 security groups can be provided.
     * 
     */
    public Optional>> securityGroupIds() {
        return Optional.ofNullable(this.securityGroupIds);
    }

    /**
     * One or more subnet IDs from which you'll access OpenSearch Serverless. Up to 6 subnets can be provided.
     * 
     */
    @Import(name="subnetIds", required=true)
    private Output> subnetIds;

    /**
     * @return One or more subnet IDs from which you'll access OpenSearch Serverless. Up to 6 subnets can be provided.
     * 
     */
    public Output> subnetIds() {
        return this.subnetIds;
    }

    @Import(name="timeouts")
    private @Nullable Output timeouts;

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

    /**
     * ID of the VPC from which you'll access OpenSearch Serverless.
     * 
     * The following arguments are optional:
     * 
     */
    @Import(name="vpcId", required=true)
    private Output vpcId;

    /**
     * @return ID of the VPC from which you'll access OpenSearch Serverless.
     * 
     * The following arguments are optional:
     * 
     */
    public Output vpcId() {
        return this.vpcId;
    }

    private ServerlessVpcEndpointArgs() {}

    private ServerlessVpcEndpointArgs(ServerlessVpcEndpointArgs $) {
        this.name = $.name;
        this.securityGroupIds = $.securityGroupIds;
        this.subnetIds = $.subnetIds;
        this.timeouts = $.timeouts;
        this.vpcId = $.vpcId;
    }

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

    public static final class Builder {
        private ServerlessVpcEndpointArgs $;

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

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

        /**
         * @param name Name of the interface endpoint.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the interface endpoint.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param securityGroupIds One or more security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint. Up to 5 security groups can be provided.
         * 
         * @return builder
         * 
         */
        public Builder securityGroupIds(@Nullable Output> securityGroupIds) {
            $.securityGroupIds = securityGroupIds;
            return this;
        }

        /**
         * @param securityGroupIds One or more security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint. Up to 5 security groups can be provided.
         * 
         * @return builder
         * 
         */
        public Builder securityGroupIds(List securityGroupIds) {
            return securityGroupIds(Output.of(securityGroupIds));
        }

        /**
         * @param securityGroupIds One or more security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint. Up to 5 security groups can be provided.
         * 
         * @return builder
         * 
         */
        public Builder securityGroupIds(String... securityGroupIds) {
            return securityGroupIds(List.of(securityGroupIds));
        }

        /**
         * @param subnetIds One or more subnet IDs from which you'll access OpenSearch Serverless. Up to 6 subnets can be provided.
         * 
         * @return builder
         * 
         */
        public Builder subnetIds(Output> subnetIds) {
            $.subnetIds = subnetIds;
            return this;
        }

        /**
         * @param subnetIds One or more subnet IDs from which you'll access OpenSearch Serverless. Up to 6 subnets can be provided.
         * 
         * @return builder
         * 
         */
        public Builder subnetIds(List subnetIds) {
            return subnetIds(Output.of(subnetIds));
        }

        /**
         * @param subnetIds One or more subnet IDs from which you'll access OpenSearch Serverless. Up to 6 subnets can be provided.
         * 
         * @return builder
         * 
         */
        public Builder subnetIds(String... subnetIds) {
            return subnetIds(List.of(subnetIds));
        }

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

        public Builder timeouts(ServerlessVpcEndpointTimeoutsArgs timeouts) {
            return timeouts(Output.of(timeouts));
        }

        /**
         * @param vpcId ID of the VPC from which you'll access OpenSearch Serverless.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder vpcId(Output vpcId) {
            $.vpcId = vpcId;
            return this;
        }

        /**
         * @param vpcId ID of the VPC from which you'll access OpenSearch Serverless.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder vpcId(String vpcId) {
            return vpcId(Output.of(vpcId));
        }

        public ServerlessVpcEndpointArgs build() {
            if ($.subnetIds == null) {
                throw new MissingRequiredPropertyException("ServerlessVpcEndpointArgs", "subnetIds");
            }
            if ($.vpcId == null) {
                throw new MissingRequiredPropertyException("ServerlessVpcEndpointArgs", "vpcId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy