com.pulumi.aws.s3.kotlin.outputs.BucketV2ServerSideEncryptionConfigurationRule.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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