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

com.pulumi.aws.s3.inputs.BucketServerSideEncryptionConfigurationV2RuleApplyServerSideEncryptionByDefaultArgs 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.s3.inputs;

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


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

    public static final BucketServerSideEncryptionConfigurationV2RuleApplyServerSideEncryptionByDefaultArgs Empty = new BucketServerSideEncryptionConfigurationV2RuleApplyServerSideEncryptionByDefaultArgs();

    /**
     * AWS KMS master key ID used for the SSE-KMS encryption. This can only be used when you set the value of `sse_algorithm` as `aws:kms`. The default `aws/s3` AWS KMS master key is used if this element is absent while the `sse_algorithm` is `aws:kms`.
     * 
     */
    @Import(name="kmsMasterKeyId")
    private @Nullable Output kmsMasterKeyId;

    /**
     * @return AWS KMS master key ID used for the SSE-KMS encryption. This can only be used when you set the value of `sse_algorithm` as `aws:kms`. The default `aws/s3` AWS KMS master key is used if this element is absent while the `sse_algorithm` is `aws:kms`.
     * 
     */
    public Optional> kmsMasterKeyId() {
        return Optional.ofNullable(this.kmsMasterKeyId);
    }

    /**
     * Server-side encryption algorithm to use. Valid values are `AES256`, `aws:kms`, and `aws:kms:dsse`
     * 
     */
    @Import(name="sseAlgorithm", required=true)
    private Output sseAlgorithm;

    /**
     * @return Server-side encryption algorithm to use. Valid values are `AES256`, `aws:kms`, and `aws:kms:dsse`
     * 
     */
    public Output sseAlgorithm() {
        return this.sseAlgorithm;
    }

    private BucketServerSideEncryptionConfigurationV2RuleApplyServerSideEncryptionByDefaultArgs() {}

    private BucketServerSideEncryptionConfigurationV2RuleApplyServerSideEncryptionByDefaultArgs(BucketServerSideEncryptionConfigurationV2RuleApplyServerSideEncryptionByDefaultArgs $) {
        this.kmsMasterKeyId = $.kmsMasterKeyId;
        this.sseAlgorithm = $.sseAlgorithm;
    }

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

    public static final class Builder {
        private BucketServerSideEncryptionConfigurationV2RuleApplyServerSideEncryptionByDefaultArgs $;

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

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

        /**
         * @param kmsMasterKeyId AWS KMS master key ID used for the SSE-KMS encryption. This can only be used when you set the value of `sse_algorithm` as `aws:kms`. The default `aws/s3` AWS KMS master key is used if this element is absent while the `sse_algorithm` is `aws:kms`.
         * 
         * @return builder
         * 
         */
        public Builder kmsMasterKeyId(@Nullable Output kmsMasterKeyId) {
            $.kmsMasterKeyId = kmsMasterKeyId;
            return this;
        }

        /**
         * @param kmsMasterKeyId AWS KMS master key ID used for the SSE-KMS encryption. This can only be used when you set the value of `sse_algorithm` as `aws:kms`. The default `aws/s3` AWS KMS master key is used if this element is absent while the `sse_algorithm` is `aws:kms`.
         * 
         * @return builder
         * 
         */
        public Builder kmsMasterKeyId(String kmsMasterKeyId) {
            return kmsMasterKeyId(Output.of(kmsMasterKeyId));
        }

        /**
         * @param sseAlgorithm Server-side encryption algorithm to use. Valid values are `AES256`, `aws:kms`, and `aws:kms:dsse`
         * 
         * @return builder
         * 
         */
        public Builder sseAlgorithm(Output sseAlgorithm) {
            $.sseAlgorithm = sseAlgorithm;
            return this;
        }

        /**
         * @param sseAlgorithm Server-side encryption algorithm to use. Valid values are `AES256`, `aws:kms`, and `aws:kms:dsse`
         * 
         * @return builder
         * 
         */
        public Builder sseAlgorithm(String sseAlgorithm) {
            return sseAlgorithm(Output.of(sseAlgorithm));
        }

        public BucketServerSideEncryptionConfigurationV2RuleApplyServerSideEncryptionByDefaultArgs build() {
            if ($.sseAlgorithm == null) {
                throw new MissingRequiredPropertyException("BucketServerSideEncryptionConfigurationV2RuleApplyServerSideEncryptionByDefaultArgs", "sseAlgorithm");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy