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

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

import com.pulumi.aws.s3.inputs.BucketV2ServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefaultArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final BucketV2ServerSideEncryptionConfigurationRuleArgs Empty = new BucketV2ServerSideEncryptionConfigurationRuleArgs();

    /**
     * Single object for setting server-side encryption by default. (documented below)
     * 
     */
    @Import(name="applyServerSideEncryptionByDefaults", required=true)
    private Output> applyServerSideEncryptionByDefaults;

    /**
     * @return Single object for setting server-side encryption by default. (documented below)
     * 
     */
    public Output> applyServerSideEncryptionByDefaults() {
        return this.applyServerSideEncryptionByDefaults;
    }

    /**
     * Whether or not to use [Amazon S3 Bucket Keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) for SSE-KMS.
     * 
     */
    @Import(name="bucketKeyEnabled")
    private @Nullable Output bucketKeyEnabled;

    /**
     * @return Whether or not to use [Amazon S3 Bucket Keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) for SSE-KMS.
     * 
     */
    public Optional> bucketKeyEnabled() {
        return Optional.ofNullable(this.bucketKeyEnabled);
    }

    private BucketV2ServerSideEncryptionConfigurationRuleArgs() {}

    private BucketV2ServerSideEncryptionConfigurationRuleArgs(BucketV2ServerSideEncryptionConfigurationRuleArgs $) {
        this.applyServerSideEncryptionByDefaults = $.applyServerSideEncryptionByDefaults;
        this.bucketKeyEnabled = $.bucketKeyEnabled;
    }

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

    public static final class Builder {
        private BucketV2ServerSideEncryptionConfigurationRuleArgs $;

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

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

        /**
         * @param applyServerSideEncryptionByDefaults Single object for setting server-side encryption by default. (documented below)
         * 
         * @return builder
         * 
         */
        public Builder applyServerSideEncryptionByDefaults(Output> applyServerSideEncryptionByDefaults) {
            $.applyServerSideEncryptionByDefaults = applyServerSideEncryptionByDefaults;
            return this;
        }

        /**
         * @param applyServerSideEncryptionByDefaults Single object for setting server-side encryption by default. (documented below)
         * 
         * @return builder
         * 
         */
        public Builder applyServerSideEncryptionByDefaults(List applyServerSideEncryptionByDefaults) {
            return applyServerSideEncryptionByDefaults(Output.of(applyServerSideEncryptionByDefaults));
        }

        /**
         * @param applyServerSideEncryptionByDefaults Single object for setting server-side encryption by default. (documented below)
         * 
         * @return builder
         * 
         */
        public Builder applyServerSideEncryptionByDefaults(BucketV2ServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefaultArgs... applyServerSideEncryptionByDefaults) {
            return applyServerSideEncryptionByDefaults(List.of(applyServerSideEncryptionByDefaults));
        }

        /**
         * @param bucketKeyEnabled Whether or not to use [Amazon S3 Bucket Keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) for SSE-KMS.
         * 
         * @return builder
         * 
         */
        public Builder bucketKeyEnabled(@Nullable Output bucketKeyEnabled) {
            $.bucketKeyEnabled = bucketKeyEnabled;
            return this;
        }

        /**
         * @param bucketKeyEnabled Whether or not to use [Amazon S3 Bucket Keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) for SSE-KMS.
         * 
         * @return builder
         * 
         */
        public Builder bucketKeyEnabled(Boolean bucketKeyEnabled) {
            return bucketKeyEnabled(Output.of(bucketKeyEnabled));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy