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

com.pulumi.aws.redshiftserverless.NamespaceArgs Maven / Gradle / Ivy

// *** 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.redshiftserverless;

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 NamespaceArgs extends com.pulumi.resources.ResourceArgs {

    public static final NamespaceArgs Empty = new NamespaceArgs();

    /**
     * ID of the KMS key used to encrypt the namespace's admin credentials secret.
     * 
     */
    @Import(name="adminPasswordSecretKmsKeyId")
    private @Nullable Output adminPasswordSecretKmsKeyId;

    /**
     * @return ID of the KMS key used to encrypt the namespace's admin credentials secret.
     * 
     */
    public Optional> adminPasswordSecretKmsKeyId() {
        return Optional.ofNullable(this.adminPasswordSecretKmsKeyId);
    }

    /**
     * The password of the administrator for the first database created in the namespace.
     * Conflicts with `manage_admin_password`.
     * 
     */
    @Import(name="adminUserPassword")
    private @Nullable Output adminUserPassword;

    /**
     * @return The password of the administrator for the first database created in the namespace.
     * Conflicts with `manage_admin_password`.
     * 
     */
    public Optional> adminUserPassword() {
        return Optional.ofNullable(this.adminUserPassword);
    }

    /**
     * The username of the administrator for the first database created in the namespace.
     * 
     */
    @Import(name="adminUsername")
    private @Nullable Output adminUsername;

    /**
     * @return The username of the administrator for the first database created in the namespace.
     * 
     */
    public Optional> adminUsername() {
        return Optional.ofNullable(this.adminUsername);
    }

    /**
     * The name of the first database created in the namespace.
     * 
     */
    @Import(name="dbName")
    private @Nullable Output dbName;

    /**
     * @return The name of the first database created in the namespace.
     * 
     */
    public Optional> dbName() {
        return Optional.ofNullable(this.dbName);
    }

    /**
     * The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. When specifying `default_iam_role_arn`, it also must be part of `iam_roles`.
     * 
     */
    @Import(name="defaultIamRoleArn")
    private @Nullable Output defaultIamRoleArn;

    /**
     * @return The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. When specifying `default_iam_role_arn`, it also must be part of `iam_roles`.
     * 
     */
    public Optional> defaultIamRoleArn() {
        return Optional.ofNullable(this.defaultIamRoleArn);
    }

    /**
     * A list of IAM roles to associate with the namespace.
     * 
     */
    @Import(name="iamRoles")
    private @Nullable Output> iamRoles;

    /**
     * @return A list of IAM roles to associate with the namespace.
     * 
     */
    public Optional>> iamRoles() {
        return Optional.ofNullable(this.iamRoles);
    }

    /**
     * The ARN of the Amazon Web Services Key Management Service key used to encrypt your data.
     * 
     */
    @Import(name="kmsKeyId")
    private @Nullable Output kmsKeyId;

    /**
     * @return The ARN of the Amazon Web Services Key Management Service key used to encrypt your data.
     * 
     */
    public Optional> kmsKeyId() {
        return Optional.ofNullable(this.kmsKeyId);
    }

    /**
     * The types of logs the namespace can export. Available export types are `userlog`, `connectionlog`, and `useractivitylog`.
     * 
     */
    @Import(name="logExports")
    private @Nullable Output> logExports;

    /**
     * @return The types of logs the namespace can export. Available export types are `userlog`, `connectionlog`, and `useractivitylog`.
     * 
     */
    public Optional>> logExports() {
        return Optional.ofNullable(this.logExports);
    }

    /**
     * Whether to use AWS SecretManager to manage namespace's admin credentials.
     * Conflicts with `admin_user_password`.
     * 
     */
    @Import(name="manageAdminPassword")
    private @Nullable Output manageAdminPassword;

    /**
     * @return Whether to use AWS SecretManager to manage namespace's admin credentials.
     * Conflicts with `admin_user_password`.
     * 
     */
    public Optional> manageAdminPassword() {
        return Optional.ofNullable(this.manageAdminPassword);
    }

    /**
     * The name of the namespace.
     * 
     */
    @Import(name="namespaceName", required=true)
    private Output namespaceName;

    /**
     * @return The name of the namespace.
     * 
     */
    public Output namespaceName() {
        return this.namespaceName;
    }

    /**
     * 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 NamespaceArgs() {}

    private NamespaceArgs(NamespaceArgs $) {
        this.adminPasswordSecretKmsKeyId = $.adminPasswordSecretKmsKeyId;
        this.adminUserPassword = $.adminUserPassword;
        this.adminUsername = $.adminUsername;
        this.dbName = $.dbName;
        this.defaultIamRoleArn = $.defaultIamRoleArn;
        this.iamRoles = $.iamRoles;
        this.kmsKeyId = $.kmsKeyId;
        this.logExports = $.logExports;
        this.manageAdminPassword = $.manageAdminPassword;
        this.namespaceName = $.namespaceName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private NamespaceArgs $;

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

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

        /**
         * @param adminPasswordSecretKmsKeyId ID of the KMS key used to encrypt the namespace's admin credentials secret.
         * 
         * @return builder
         * 
         */
        public Builder adminPasswordSecretKmsKeyId(@Nullable Output adminPasswordSecretKmsKeyId) {
            $.adminPasswordSecretKmsKeyId = adminPasswordSecretKmsKeyId;
            return this;
        }

        /**
         * @param adminPasswordSecretKmsKeyId ID of the KMS key used to encrypt the namespace's admin credentials secret.
         * 
         * @return builder
         * 
         */
        public Builder adminPasswordSecretKmsKeyId(String adminPasswordSecretKmsKeyId) {
            return adminPasswordSecretKmsKeyId(Output.of(adminPasswordSecretKmsKeyId));
        }

        /**
         * @param adminUserPassword The password of the administrator for the first database created in the namespace.
         * Conflicts with `manage_admin_password`.
         * 
         * @return builder
         * 
         */
        public Builder adminUserPassword(@Nullable Output adminUserPassword) {
            $.adminUserPassword = adminUserPassword;
            return this;
        }

        /**
         * @param adminUserPassword The password of the administrator for the first database created in the namespace.
         * Conflicts with `manage_admin_password`.
         * 
         * @return builder
         * 
         */
        public Builder adminUserPassword(String adminUserPassword) {
            return adminUserPassword(Output.of(adminUserPassword));
        }

        /**
         * @param adminUsername The username of the administrator for the first database created in the namespace.
         * 
         * @return builder
         * 
         */
        public Builder adminUsername(@Nullable Output adminUsername) {
            $.adminUsername = adminUsername;
            return this;
        }

        /**
         * @param adminUsername The username of the administrator for the first database created in the namespace.
         * 
         * @return builder
         * 
         */
        public Builder adminUsername(String adminUsername) {
            return adminUsername(Output.of(adminUsername));
        }

        /**
         * @param dbName The name of the first database created in the namespace.
         * 
         * @return builder
         * 
         */
        public Builder dbName(@Nullable Output dbName) {
            $.dbName = dbName;
            return this;
        }

        /**
         * @param dbName The name of the first database created in the namespace.
         * 
         * @return builder
         * 
         */
        public Builder dbName(String dbName) {
            return dbName(Output.of(dbName));
        }

        /**
         * @param defaultIamRoleArn The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. When specifying `default_iam_role_arn`, it also must be part of `iam_roles`.
         * 
         * @return builder
         * 
         */
        public Builder defaultIamRoleArn(@Nullable Output defaultIamRoleArn) {
            $.defaultIamRoleArn = defaultIamRoleArn;
            return this;
        }

        /**
         * @param defaultIamRoleArn The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. When specifying `default_iam_role_arn`, it also must be part of `iam_roles`.
         * 
         * @return builder
         * 
         */
        public Builder defaultIamRoleArn(String defaultIamRoleArn) {
            return defaultIamRoleArn(Output.of(defaultIamRoleArn));
        }

        /**
         * @param iamRoles A list of IAM roles to associate with the namespace.
         * 
         * @return builder
         * 
         */
        public Builder iamRoles(@Nullable Output> iamRoles) {
            $.iamRoles = iamRoles;
            return this;
        }

        /**
         * @param iamRoles A list of IAM roles to associate with the namespace.
         * 
         * @return builder
         * 
         */
        public Builder iamRoles(List iamRoles) {
            return iamRoles(Output.of(iamRoles));
        }

        /**
         * @param iamRoles A list of IAM roles to associate with the namespace.
         * 
         * @return builder
         * 
         */
        public Builder iamRoles(String... iamRoles) {
            return iamRoles(List.of(iamRoles));
        }

        /**
         * @param kmsKeyId The ARN of the Amazon Web Services Key Management Service key used to encrypt your data.
         * 
         * @return builder
         * 
         */
        public Builder kmsKeyId(@Nullable Output kmsKeyId) {
            $.kmsKeyId = kmsKeyId;
            return this;
        }

        /**
         * @param kmsKeyId The ARN of the Amazon Web Services Key Management Service key used to encrypt your data.
         * 
         * @return builder
         * 
         */
        public Builder kmsKeyId(String kmsKeyId) {
            return kmsKeyId(Output.of(kmsKeyId));
        }

        /**
         * @param logExports The types of logs the namespace can export. Available export types are `userlog`, `connectionlog`, and `useractivitylog`.
         * 
         * @return builder
         * 
         */
        public Builder logExports(@Nullable Output> logExports) {
            $.logExports = logExports;
            return this;
        }

        /**
         * @param logExports The types of logs the namespace can export. Available export types are `userlog`, `connectionlog`, and `useractivitylog`.
         * 
         * @return builder
         * 
         */
        public Builder logExports(List logExports) {
            return logExports(Output.of(logExports));
        }

        /**
         * @param logExports The types of logs the namespace can export. Available export types are `userlog`, `connectionlog`, and `useractivitylog`.
         * 
         * @return builder
         * 
         */
        public Builder logExports(String... logExports) {
            return logExports(List.of(logExports));
        }

        /**
         * @param manageAdminPassword Whether to use AWS SecretManager to manage namespace's admin credentials.
         * Conflicts with `admin_user_password`.
         * 
         * @return builder
         * 
         */
        public Builder manageAdminPassword(@Nullable Output manageAdminPassword) {
            $.manageAdminPassword = manageAdminPassword;
            return this;
        }

        /**
         * @param manageAdminPassword Whether to use AWS SecretManager to manage namespace's admin credentials.
         * Conflicts with `admin_user_password`.
         * 
         * @return builder
         * 
         */
        public Builder manageAdminPassword(Boolean manageAdminPassword) {
            return manageAdminPassword(Output.of(manageAdminPassword));
        }

        /**
         * @param namespaceName The name of the namespace.
         * 
         * @return builder
         * 
         */
        public Builder namespaceName(Output namespaceName) {
            $.namespaceName = namespaceName;
            return this;
        }

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

        /**
         * @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 NamespaceArgs build() {
            if ($.namespaceName == null) {
                throw new MissingRequiredPropertyException("NamespaceArgs", "namespaceName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy