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

com.pulumi.aws.athena.DatabaseArgs 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.athena;

import com.pulumi.aws.athena.inputs.DatabaseAclConfigurationArgs;
import com.pulumi.aws.athena.inputs.DatabaseEncryptionConfigurationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final DatabaseArgs Empty = new DatabaseArgs();

    /**
     * That an Amazon S3 canned ACL should be set to control ownership of stored query results. See ACL Configuration below.
     * 
     */
    @Import(name="aclConfiguration")
    private @Nullable Output aclConfiguration;

    /**
     * @return That an Amazon S3 canned ACL should be set to control ownership of stored query results. See ACL Configuration below.
     * 
     */
    public Optional> aclConfiguration() {
        return Optional.ofNullable(this.aclConfiguration);
    }

    /**
     * Name of S3 bucket to save the results of the query execution.
     * 
     */
    @Import(name="bucket")
    private @Nullable Output bucket;

    /**
     * @return Name of S3 bucket to save the results of the query execution.
     * 
     */
    public Optional> bucket() {
        return Optional.ofNullable(this.bucket);
    }

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

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

    /**
     * Encryption key block AWS Athena uses to decrypt the data in S3, such as an AWS Key Management Service (AWS KMS) key. See Encryption Configuration below.
     * 
     */
    @Import(name="encryptionConfiguration")
    private @Nullable Output encryptionConfiguration;

    /**
     * @return Encryption key block AWS Athena uses to decrypt the data in S3, such as an AWS Key Management Service (AWS KMS) key. See Encryption Configuration below.
     * 
     */
    public Optional> encryptionConfiguration() {
        return Optional.ofNullable(this.encryptionConfiguration);
    }

    /**
     * AWS account ID that you expect to be the owner of the Amazon S3 bucket.
     * 
     */
    @Import(name="expectedBucketOwner")
    private @Nullable Output expectedBucketOwner;

    /**
     * @return AWS account ID that you expect to be the owner of the Amazon S3 bucket.
     * 
     */
    public Optional> expectedBucketOwner() {
        return Optional.ofNullable(this.expectedBucketOwner);
    }

    /**
     * Boolean that indicates all tables should be deleted from the database so that the database can be destroyed without error. The tables are *not* recoverable.
     * 
     */
    @Import(name="forceDestroy")
    private @Nullable Output forceDestroy;

    /**
     * @return Boolean that indicates all tables should be deleted from the database so that the database can be destroyed without error. The tables are *not* recoverable.
     * 
     */
    public Optional> forceDestroy() {
        return Optional.ofNullable(this.forceDestroy);
    }

    /**
     * Name of the database to create.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the database to create.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Key-value map of custom metadata properties for the database definition.
     * 
     */
    @Import(name="properties")
    private @Nullable Output> properties;

    /**
     * @return Key-value map of custom metadata properties for the database definition.
     * 
     */
    public Optional>> properties() {
        return Optional.ofNullable(this.properties);
    }

    private DatabaseArgs() {}

    private DatabaseArgs(DatabaseArgs $) {
        this.aclConfiguration = $.aclConfiguration;
        this.bucket = $.bucket;
        this.comment = $.comment;
        this.encryptionConfiguration = $.encryptionConfiguration;
        this.expectedBucketOwner = $.expectedBucketOwner;
        this.forceDestroy = $.forceDestroy;
        this.name = $.name;
        this.properties = $.properties;
    }

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

    public static final class Builder {
        private DatabaseArgs $;

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

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

        /**
         * @param aclConfiguration That an Amazon S3 canned ACL should be set to control ownership of stored query results. See ACL Configuration below.
         * 
         * @return builder
         * 
         */
        public Builder aclConfiguration(@Nullable Output aclConfiguration) {
            $.aclConfiguration = aclConfiguration;
            return this;
        }

        /**
         * @param aclConfiguration That an Amazon S3 canned ACL should be set to control ownership of stored query results. See ACL Configuration below.
         * 
         * @return builder
         * 
         */
        public Builder aclConfiguration(DatabaseAclConfigurationArgs aclConfiguration) {
            return aclConfiguration(Output.of(aclConfiguration));
        }

        /**
         * @param bucket Name of S3 bucket to save the results of the query execution.
         * 
         * @return builder
         * 
         */
        public Builder bucket(@Nullable Output bucket) {
            $.bucket = bucket;
            return this;
        }

        /**
         * @param bucket Name of S3 bucket to save the results of the query execution.
         * 
         * @return builder
         * 
         */
        public Builder bucket(String bucket) {
            return bucket(Output.of(bucket));
        }

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

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

        /**
         * @param encryptionConfiguration Encryption key block AWS Athena uses to decrypt the data in S3, such as an AWS Key Management Service (AWS KMS) key. See Encryption Configuration below.
         * 
         * @return builder
         * 
         */
        public Builder encryptionConfiguration(@Nullable Output encryptionConfiguration) {
            $.encryptionConfiguration = encryptionConfiguration;
            return this;
        }

        /**
         * @param encryptionConfiguration Encryption key block AWS Athena uses to decrypt the data in S3, such as an AWS Key Management Service (AWS KMS) key. See Encryption Configuration below.
         * 
         * @return builder
         * 
         */
        public Builder encryptionConfiguration(DatabaseEncryptionConfigurationArgs encryptionConfiguration) {
            return encryptionConfiguration(Output.of(encryptionConfiguration));
        }

        /**
         * @param expectedBucketOwner AWS account ID that you expect to be the owner of the Amazon S3 bucket.
         * 
         * @return builder
         * 
         */
        public Builder expectedBucketOwner(@Nullable Output expectedBucketOwner) {
            $.expectedBucketOwner = expectedBucketOwner;
            return this;
        }

        /**
         * @param expectedBucketOwner AWS account ID that you expect to be the owner of the Amazon S3 bucket.
         * 
         * @return builder
         * 
         */
        public Builder expectedBucketOwner(String expectedBucketOwner) {
            return expectedBucketOwner(Output.of(expectedBucketOwner));
        }

        /**
         * @param forceDestroy Boolean that indicates all tables should be deleted from the database so that the database can be destroyed without error. The tables are *not* recoverable.
         * 
         * @return builder
         * 
         */
        public Builder forceDestroy(@Nullable Output forceDestroy) {
            $.forceDestroy = forceDestroy;
            return this;
        }

        /**
         * @param forceDestroy Boolean that indicates all tables should be deleted from the database so that the database can be destroyed without error. The tables are *not* recoverable.
         * 
         * @return builder
         * 
         */
        public Builder forceDestroy(Boolean forceDestroy) {
            return forceDestroy(Output.of(forceDestroy));
        }

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

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

        /**
         * @param properties Key-value map of custom metadata properties for the database definition.
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output> properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties Key-value map of custom metadata properties for the database definition.
         * 
         * @return builder
         * 
         */
        public Builder properties(Map properties) {
            return properties(Output.of(properties));
        }

        public DatabaseArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy