com.pulumi.awsnative.s3.kotlin.inputs.BucketAccessControlTranslationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.s3.kotlin.inputs
import com.pulumi.awsnative.s3.inputs.BucketAccessControlTranslationArgs.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
/**
* Specify this only in a cross-account scenario (where source and destination bucket owners are not the same), and you want to change replica ownership to the AWS-account that owns the destination bucket. If this is not specified in the replication configuration, the replicas are owned by same AWS-account that owns the source object.
* @property owner Specifies the replica ownership. For default and valid values, see [PUT bucket replication](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTreplication.html) in the *Amazon S3 API Reference*.
*/
public data class BucketAccessControlTranslationArgs(
public val owner: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.s3.inputs.BucketAccessControlTranslationArgs =
com.pulumi.awsnative.s3.inputs.BucketAccessControlTranslationArgs.builder()
.owner(owner.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BucketAccessControlTranslationArgs].
*/
@PulumiTagMarker
public class BucketAccessControlTranslationArgsBuilder internal constructor() {
private var owner: Output? = null
/**
* @param value Specifies the replica ownership. For default and valid values, see [PUT bucket replication](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTreplication.html) in the *Amazon S3 API Reference*.
*/
@JvmName("cunlcfjwjkagctoe")
public suspend fun owner(`value`: Output) {
this.owner = value
}
/**
* @param value Specifies the replica ownership. For default and valid values, see [PUT bucket replication](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTreplication.html) in the *Amazon S3 API Reference*.
*/
@JvmName("vstbpiuaaxkodqgy")
public suspend fun owner(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.owner = mapped
}
internal fun build(): BucketAccessControlTranslationArgs = BucketAccessControlTranslationArgs(
owner = owner ?: throw PulumiNullFieldException("owner"),
)
}