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

com.pulumi.aws.mq.inputs.BrokerEncryptionOptionsArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The 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.mq.inputs;

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


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

    public static final BrokerEncryptionOptionsArgs Empty = new BrokerEncryptionOptionsArgs();

    /**
     * Amazon Resource Name (ARN) of Key Management Service (KMS) Customer Master Key (CMK) to use for encryption at rest. Requires setting `use_aws_owned_key` to `false`. To perform drift detection when AWS-managed CMKs or customer-managed CMKs are in use, this value must be configured.
     * 
     */
    @Import(name="kmsKeyId")
    private @Nullable Output kmsKeyId;

    /**
     * @return Amazon Resource Name (ARN) of Key Management Service (KMS) Customer Master Key (CMK) to use for encryption at rest. Requires setting `use_aws_owned_key` to `false`. To perform drift detection when AWS-managed CMKs or customer-managed CMKs are in use, this value must be configured.
     * 
     */
    public Optional> kmsKeyId() {
        return Optional.ofNullable(this.kmsKeyId);
    }

    /**
     * Whether to enable an AWS-owned KMS CMK that is not in your account. Defaults to `true`. Setting to `false` without configuring `kms_key_id` will create an AWS-managed CMK aliased to `aws/mq` in your account.
     * 
     */
    @Import(name="useAwsOwnedKey")
    private @Nullable Output useAwsOwnedKey;

    /**
     * @return Whether to enable an AWS-owned KMS CMK that is not in your account. Defaults to `true`. Setting to `false` without configuring `kms_key_id` will create an AWS-managed CMK aliased to `aws/mq` in your account.
     * 
     */
    public Optional> useAwsOwnedKey() {
        return Optional.ofNullable(this.useAwsOwnedKey);
    }

    private BrokerEncryptionOptionsArgs() {}

    private BrokerEncryptionOptionsArgs(BrokerEncryptionOptionsArgs $) {
        this.kmsKeyId = $.kmsKeyId;
        this.useAwsOwnedKey = $.useAwsOwnedKey;
    }

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

    public static final class Builder {
        private BrokerEncryptionOptionsArgs $;

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

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

        /**
         * @param kmsKeyId Amazon Resource Name (ARN) of Key Management Service (KMS) Customer Master Key (CMK) to use for encryption at rest. Requires setting `use_aws_owned_key` to `false`. To perform drift detection when AWS-managed CMKs or customer-managed CMKs are in use, this value must be configured.
         * 
         * @return builder
         * 
         */
        public Builder kmsKeyId(@Nullable Output kmsKeyId) {
            $.kmsKeyId = kmsKeyId;
            return this;
        }

        /**
         * @param kmsKeyId Amazon Resource Name (ARN) of Key Management Service (KMS) Customer Master Key (CMK) to use for encryption at rest. Requires setting `use_aws_owned_key` to `false`. To perform drift detection when AWS-managed CMKs or customer-managed CMKs are in use, this value must be configured.
         * 
         * @return builder
         * 
         */
        public Builder kmsKeyId(String kmsKeyId) {
            return kmsKeyId(Output.of(kmsKeyId));
        }

        /**
         * @param useAwsOwnedKey Whether to enable an AWS-owned KMS CMK that is not in your account. Defaults to `true`. Setting to `false` without configuring `kms_key_id` will create an AWS-managed CMK aliased to `aws/mq` in your account.
         * 
         * @return builder
         * 
         */
        public Builder useAwsOwnedKey(@Nullable Output useAwsOwnedKey) {
            $.useAwsOwnedKey = useAwsOwnedKey;
            return this;
        }

        /**
         * @param useAwsOwnedKey Whether to enable an AWS-owned KMS CMK that is not in your account. Defaults to `true`. Setting to `false` without configuring `kms_key_id` will create an AWS-managed CMK aliased to `aws/mq` in your account.
         * 
         * @return builder
         * 
         */
        public Builder useAwsOwnedKey(Boolean useAwsOwnedKey) {
            return useAwsOwnedKey(Output.of(useAwsOwnedKey));
        }

        public BrokerEncryptionOptionsArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy