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

com.pulumi.aws.s3.kotlin.outputs.BucketV2ServerSideEncryptionConfigurationRule.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.s3.kotlin.outputs

import kotlin.Boolean
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property applyServerSideEncryptionByDefaults Single object for setting server-side encryption by default. (documented below)
 * @property bucketKeyEnabled Whether or not to use [Amazon S3 Bucket Keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) for SSE-KMS.
 */
public data class BucketV2ServerSideEncryptionConfigurationRule(
    public val applyServerSideEncryptionByDefaults: List,
    public val bucketKeyEnabled: Boolean? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.aws.s3.outputs.BucketV2ServerSideEncryptionConfigurationRule): BucketV2ServerSideEncryptionConfigurationRule =
            BucketV2ServerSideEncryptionConfigurationRule(
                applyServerSideEncryptionByDefaults = javaType.applyServerSideEncryptionByDefaults().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.aws.s3.kotlin.outputs.BucketV2ServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault.Companion.toKotlin(args0)
                    })
                }),
                bucketKeyEnabled = javaType.bucketKeyEnabled().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy