
com.pulumi.awsnative.s3outposts.kotlin.BucketPolicyArgs.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.s3outposts.kotlin
import com.pulumi.awsnative.s3outposts.BucketPolicyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Resource Type Definition for AWS::S3Outposts::BucketPolicy
* @property bucket The Amazon Resource Name (ARN) of the specified bucket.
* @property policyDocument A policy document containing permissions to add to the specified bucket.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::S3Outposts::BucketPolicy` for more information about the expected schema for this property.
*/
public data class BucketPolicyArgs(
public val bucket: Output? = null,
public val policyDocument: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.s3outposts.BucketPolicyArgs =
com.pulumi.awsnative.s3outposts.BucketPolicyArgs.builder()
.bucket(bucket?.applyValue({ args0 -> args0 }))
.policyDocument(policyDocument?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BucketPolicyArgs].
*/
@PulumiTagMarker
public class BucketPolicyArgsBuilder internal constructor() {
private var bucket: Output? = null
private var policyDocument: Output? = null
/**
* @param value The Amazon Resource Name (ARN) of the specified bucket.
*/
@JvmName("idntqacragiotqyb")
public suspend fun bucket(`value`: Output) {
this.bucket = value
}
/**
* @param value A policy document containing permissions to add to the specified bucket.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::S3Outposts::BucketPolicy` for more information about the expected schema for this property.
*/
@JvmName("lkrsvnauautkjmei")
public suspend fun policyDocument(`value`: Output) {
this.policyDocument = value
}
/**
* @param value The Amazon Resource Name (ARN) of the specified bucket.
*/
@JvmName("qfawfmnwlmbpatpd")
public suspend fun bucket(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.bucket = mapped
}
/**
* @param value A policy document containing permissions to add to the specified bucket.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::S3Outposts::BucketPolicy` for more information about the expected schema for this property.
*/
@JvmName("phgqpdxeamdauqos")
public suspend fun policyDocument(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.policyDocument = mapped
}
internal fun build(): BucketPolicyArgs = BucketPolicyArgs(
bucket = bucket,
policyDocument = policyDocument,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy