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

com.pulumi.awsnative.s3.kotlin.inputs.BucketEncryptionConfigurationArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.s3.kotlin.inputs

import com.pulumi.awsnative.s3.inputs.BucketEncryptionConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Specifies encryption-related information for an Amazon S3 bucket that is a destination for replicated objects.
 * @property replicaKmsKeyId Specifies the ID (Key ARN or Alias ARN) of the customer managed AWS KMS key stored in AWS Key Management Service (KMS) for the destination bucket. Amazon S3 uses this key to encrypt replica objects. Amazon S3 only supports symmetric encryption KMS keys. For more information, see [Asymmetric keys in KMS](https://docs.aws.amazon.com//kms/latest/developerguide/symmetric-asymmetric.html) in the *Key Management Service Developer Guide*.
 */
public data class BucketEncryptionConfigurationArgs(
    public val replicaKmsKeyId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.s3.inputs.BucketEncryptionConfigurationArgs =
        com.pulumi.awsnative.s3.inputs.BucketEncryptionConfigurationArgs.builder()
            .replicaKmsKeyId(replicaKmsKeyId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BucketEncryptionConfigurationArgs].
 */
@PulumiTagMarker
public class BucketEncryptionConfigurationArgsBuilder internal constructor() {
    private var replicaKmsKeyId: Output? = null

    /**
     * @param value Specifies the ID (Key ARN or Alias ARN) of the customer managed AWS KMS key stored in AWS Key Management Service (KMS) for the destination bucket. Amazon S3 uses this key to encrypt replica objects. Amazon S3 only supports symmetric encryption KMS keys. For more information, see [Asymmetric keys in KMS](https://docs.aws.amazon.com//kms/latest/developerguide/symmetric-asymmetric.html) in the *Key Management Service Developer Guide*.
     */
    @JvmName("cvxusepekdqrgdrm")
    public suspend fun replicaKmsKeyId(`value`: Output) {
        this.replicaKmsKeyId = value
    }

    /**
     * @param value Specifies the ID (Key ARN or Alias ARN) of the customer managed AWS KMS key stored in AWS Key Management Service (KMS) for the destination bucket. Amazon S3 uses this key to encrypt replica objects. Amazon S3 only supports symmetric encryption KMS keys. For more information, see [Asymmetric keys in KMS](https://docs.aws.amazon.com//kms/latest/developerguide/symmetric-asymmetric.html) in the *Key Management Service Developer Guide*.
     */
    @JvmName("vauotjnbqjnhpuxf")
    public suspend fun replicaKmsKeyId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.replicaKmsKeyId = mapped
    }

    internal fun build(): BucketEncryptionConfigurationArgs = BucketEncryptionConfigurationArgs(
        replicaKmsKeyId = replicaKmsKeyId ?: throw PulumiNullFieldException("replicaKmsKeyId"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy