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

com.pulumi.aws.msk.ServerlessClusterArgs 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.msk;

import com.pulumi.aws.msk.inputs.ServerlessClusterClientAuthenticationArgs;
import com.pulumi.aws.msk.inputs.ServerlessClusterVpcConfigArgs;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ServerlessClusterArgs Empty = new ServerlessClusterArgs();

    /**
     * Specifies client authentication information for the serverless cluster. See below.
     * 
     */
    @Import(name="clientAuthentication", required=true)
    private Output clientAuthentication;

    /**
     * @return Specifies client authentication information for the serverless cluster. See below.
     * 
     */
    public Output clientAuthentication() {
        return this.clientAuthentication;
    }

    /**
     * The name of the serverless cluster.
     * 
     */
    @Import(name="clusterName")
    private @Nullable Output clusterName;

    /**
     * @return The name of the serverless cluster.
     * 
     */
    public Optional> clusterName() {
        return Optional.ofNullable(this.clusterName);
    }

    /**
     * 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);
    }

    /**
     * VPC configuration information. See below.
     * 
     */
    @Import(name="vpcConfigs", required=true)
    private Output> vpcConfigs;

    /**
     * @return VPC configuration information. See below.
     * 
     */
    public Output> vpcConfigs() {
        return this.vpcConfigs;
    }

    private ServerlessClusterArgs() {}

    private ServerlessClusterArgs(ServerlessClusterArgs $) {
        this.clientAuthentication = $.clientAuthentication;
        this.clusterName = $.clusterName;
        this.tags = $.tags;
        this.vpcConfigs = $.vpcConfigs;
    }

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

    public static final class Builder {
        private ServerlessClusterArgs $;

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

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

        /**
         * @param clientAuthentication Specifies client authentication information for the serverless cluster. See below.
         * 
         * @return builder
         * 
         */
        public Builder clientAuthentication(Output clientAuthentication) {
            $.clientAuthentication = clientAuthentication;
            return this;
        }

        /**
         * @param clientAuthentication Specifies client authentication information for the serverless cluster. See below.
         * 
         * @return builder
         * 
         */
        public Builder clientAuthentication(ServerlessClusterClientAuthenticationArgs clientAuthentication) {
            return clientAuthentication(Output.of(clientAuthentication));
        }

        /**
         * @param clusterName The name of the serverless cluster.
         * 
         * @return builder
         * 
         */
        public Builder clusterName(@Nullable Output clusterName) {
            $.clusterName = clusterName;
            return this;
        }

        /**
         * @param clusterName The name of the serverless cluster.
         * 
         * @return builder
         * 
         */
        public Builder clusterName(String clusterName) {
            return clusterName(Output.of(clusterName));
        }

        /**
         * @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));
        }

        /**
         * @param vpcConfigs VPC configuration information. See below.
         * 
         * @return builder
         * 
         */
        public Builder vpcConfigs(Output> vpcConfigs) {
            $.vpcConfigs = vpcConfigs;
            return this;
        }

        /**
         * @param vpcConfigs VPC configuration information. See below.
         * 
         * @return builder
         * 
         */
        public Builder vpcConfigs(List vpcConfigs) {
            return vpcConfigs(Output.of(vpcConfigs));
        }

        /**
         * @param vpcConfigs VPC configuration information. See below.
         * 
         * @return builder
         * 
         */
        public Builder vpcConfigs(ServerlessClusterVpcConfigArgs... vpcConfigs) {
            return vpcConfigs(List.of(vpcConfigs));
        }

        public ServerlessClusterArgs build() {
            if ($.clientAuthentication == null) {
                throw new MissingRequiredPropertyException("ServerlessClusterArgs", "clientAuthentication");
            }
            if ($.vpcConfigs == null) {
                throw new MissingRequiredPropertyException("ServerlessClusterArgs", "vpcConfigs");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy