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

com.pulumi.aws.athena.outputs.DatabaseEncryptionConfiguration 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.66.3
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.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DatabaseEncryptionConfiguration {
    /**
     * @return Type of key; one of `SSE_S3`, `SSE_KMS`, `CSE_KMS`
     * 
     */
    private String encryptionOption;
    /**
     * @return KMS key ARN or ID; required for key types `SSE_KMS` and `CSE_KMS`.
     * 
     */
    private @Nullable String kmsKey;

    private DatabaseEncryptionConfiguration() {}
    /**
     * @return Type of key; one of `SSE_S3`, `SSE_KMS`, `CSE_KMS`
     * 
     */
    public String encryptionOption() {
        return this.encryptionOption;
    }
    /**
     * @return KMS key ARN or ID; required for key types `SSE_KMS` and `CSE_KMS`.
     * 
     */
    public Optional kmsKey() {
        return Optional.ofNullable(this.kmsKey);
    }

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

    public static Builder builder(DatabaseEncryptionConfiguration defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String encryptionOption;
        private @Nullable String kmsKey;
        public Builder() {}
        public Builder(DatabaseEncryptionConfiguration defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.encryptionOption = defaults.encryptionOption;
    	      this.kmsKey = defaults.kmsKey;
        }

        @CustomType.Setter
        public Builder encryptionOption(String encryptionOption) {
            if (encryptionOption == null) {
              throw new MissingRequiredPropertyException("DatabaseEncryptionConfiguration", "encryptionOption");
            }
            this.encryptionOption = encryptionOption;
            return this;
        }
        @CustomType.Setter
        public Builder kmsKey(@Nullable String kmsKey) {

            this.kmsKey = kmsKey;
            return this;
        }
        public DatabaseEncryptionConfiguration build() {
            final var _resultValue = new DatabaseEncryptionConfiguration();
            _resultValue.encryptionOption = encryptionOption;
            _resultValue.kmsKey = kmsKey;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy