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

com.pulumi.aws.glue.CatalogDatabaseArgs 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.72.0
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.glue;

import com.pulumi.aws.glue.inputs.CatalogDatabaseCreateTableDefaultPermissionArgs;
import com.pulumi.aws.glue.inputs.CatalogDatabaseFederatedDatabaseArgs;
import com.pulumi.aws.glue.inputs.CatalogDatabaseTargetDatabaseArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
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 CatalogDatabaseArgs extends com.pulumi.resources.ResourceArgs {

    public static final CatalogDatabaseArgs Empty = new CatalogDatabaseArgs();

    /**
     * ID of the Glue Catalog to create the database in. If omitted, this defaults to the AWS Account ID.
     * 
     */
    @Import(name="catalogId")
    private @Nullable Output catalogId;

    /**
     * @return ID of the Glue Catalog to create the database in. If omitted, this defaults to the AWS Account ID.
     * 
     */
    public Optional> catalogId() {
        return Optional.ofNullable(this.catalogId);
    }

    /**
     * Creates a set of default permissions on the table for principals. See `create_table_default_permission` below.
     * 
     */
    @Import(name="createTableDefaultPermissions")
    private @Nullable Output> createTableDefaultPermissions;

    /**
     * @return Creates a set of default permissions on the table for principals. See `create_table_default_permission` below.
     * 
     */
    public Optional>> createTableDefaultPermissions() {
        return Optional.ofNullable(this.createTableDefaultPermissions);
    }

    /**
     * Description of the database.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Description of the database.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Configuration block that references an entity outside the AWS Glue Data Catalog. See `federated_database` below.
     * 
     */
    @Import(name="federatedDatabase")
    private @Nullable Output federatedDatabase;

    /**
     * @return Configuration block that references an entity outside the AWS Glue Data Catalog. See `federated_database` below.
     * 
     */
    public Optional> federatedDatabase() {
        return Optional.ofNullable(this.federatedDatabase);
    }

    /**
     * Location of the database (for example, an HDFS path).
     * 
     */
    @Import(name="locationUri")
    private @Nullable Output locationUri;

    /**
     * @return Location of the database (for example, an HDFS path).
     * 
     */
    public Optional> locationUri() {
        return Optional.ofNullable(this.locationUri);
    }

    /**
     * Name of the database. The acceptable characters are lowercase letters, numbers, and the underscore character.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the database. The acceptable characters are lowercase letters, numbers, and the underscore character.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * List of key-value pairs that define parameters and properties of the database.
     * 
     */
    @Import(name="parameters")
    private @Nullable Output> parameters;

    /**
     * @return List of key-value pairs that define parameters and properties of the database.
     * 
     */
    public Optional>> parameters() {
        return Optional.ofNullable(this.parameters);
    }

    /**
     * Key-value map of resource tags. 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 Key-value map of resource tags. 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);
    }

    /**
     * Configuration block for a target database for resource linking. See `target_database` below.
     * 
     */
    @Import(name="targetDatabase")
    private @Nullable Output targetDatabase;

    /**
     * @return Configuration block for a target database for resource linking. See `target_database` below.
     * 
     */
    public Optional> targetDatabase() {
        return Optional.ofNullable(this.targetDatabase);
    }

    private CatalogDatabaseArgs() {}

    private CatalogDatabaseArgs(CatalogDatabaseArgs $) {
        this.catalogId = $.catalogId;
        this.createTableDefaultPermissions = $.createTableDefaultPermissions;
        this.description = $.description;
        this.federatedDatabase = $.federatedDatabase;
        this.locationUri = $.locationUri;
        this.name = $.name;
        this.parameters = $.parameters;
        this.tags = $.tags;
        this.targetDatabase = $.targetDatabase;
    }

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

    public static final class Builder {
        private CatalogDatabaseArgs $;

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

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

        /**
         * @param catalogId ID of the Glue Catalog to create the database in. If omitted, this defaults to the AWS Account ID.
         * 
         * @return builder
         * 
         */
        public Builder catalogId(@Nullable Output catalogId) {
            $.catalogId = catalogId;
            return this;
        }

        /**
         * @param catalogId ID of the Glue Catalog to create the database in. If omitted, this defaults to the AWS Account ID.
         * 
         * @return builder
         * 
         */
        public Builder catalogId(String catalogId) {
            return catalogId(Output.of(catalogId));
        }

        /**
         * @param createTableDefaultPermissions Creates a set of default permissions on the table for principals. See `create_table_default_permission` below.
         * 
         * @return builder
         * 
         */
        public Builder createTableDefaultPermissions(@Nullable Output> createTableDefaultPermissions) {
            $.createTableDefaultPermissions = createTableDefaultPermissions;
            return this;
        }

        /**
         * @param createTableDefaultPermissions Creates a set of default permissions on the table for principals. See `create_table_default_permission` below.
         * 
         * @return builder
         * 
         */
        public Builder createTableDefaultPermissions(List createTableDefaultPermissions) {
            return createTableDefaultPermissions(Output.of(createTableDefaultPermissions));
        }

        /**
         * @param createTableDefaultPermissions Creates a set of default permissions on the table for principals. See `create_table_default_permission` below.
         * 
         * @return builder
         * 
         */
        public Builder createTableDefaultPermissions(CatalogDatabaseCreateTableDefaultPermissionArgs... createTableDefaultPermissions) {
            return createTableDefaultPermissions(List.of(createTableDefaultPermissions));
        }

        /**
         * @param description Description of the database.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Description of the database.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param federatedDatabase Configuration block that references an entity outside the AWS Glue Data Catalog. See `federated_database` below.
         * 
         * @return builder
         * 
         */
        public Builder federatedDatabase(@Nullable Output federatedDatabase) {
            $.federatedDatabase = federatedDatabase;
            return this;
        }

        /**
         * @param federatedDatabase Configuration block that references an entity outside the AWS Glue Data Catalog. See `federated_database` below.
         * 
         * @return builder
         * 
         */
        public Builder federatedDatabase(CatalogDatabaseFederatedDatabaseArgs federatedDatabase) {
            return federatedDatabase(Output.of(federatedDatabase));
        }

        /**
         * @param locationUri Location of the database (for example, an HDFS path).
         * 
         * @return builder
         * 
         */
        public Builder locationUri(@Nullable Output locationUri) {
            $.locationUri = locationUri;
            return this;
        }

        /**
         * @param locationUri Location of the database (for example, an HDFS path).
         * 
         * @return builder
         * 
         */
        public Builder locationUri(String locationUri) {
            return locationUri(Output.of(locationUri));
        }

        /**
         * @param name Name of the database. The acceptable characters are lowercase letters, numbers, and the underscore character.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the database. The acceptable characters are lowercase letters, numbers, and the underscore character.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param parameters List of key-value pairs that define parameters and properties of the database.
         * 
         * @return builder
         * 
         */
        public Builder parameters(@Nullable Output> parameters) {
            $.parameters = parameters;
            return this;
        }

        /**
         * @param parameters List of key-value pairs that define parameters and properties of the database.
         * 
         * @return builder
         * 
         */
        public Builder parameters(Map parameters) {
            return parameters(Output.of(parameters));
        }

        /**
         * @param tags Key-value map of resource tags. 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 Key-value map of resource tags. 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 targetDatabase Configuration block for a target database for resource linking. See `target_database` below.
         * 
         * @return builder
         * 
         */
        public Builder targetDatabase(@Nullable Output targetDatabase) {
            $.targetDatabase = targetDatabase;
            return this;
        }

        /**
         * @param targetDatabase Configuration block for a target database for resource linking. See `target_database` below.
         * 
         * @return builder
         * 
         */
        public Builder targetDatabase(CatalogDatabaseTargetDatabaseArgs targetDatabase) {
            return targetDatabase(Output.of(targetDatabase));
        }

        public CatalogDatabaseArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy