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

com.pulumi.awsnative.s3express.kotlin.BucketPolicyArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.s3express.kotlin

import com.pulumi.awsnative.s3express.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::S3Express::BucketPolicy.
 * @property bucket The name of the S3 directory bucket to which the policy applies.
 * @property policyDocument A policy document containing permissions to add to the specified bucket. In IAM, you must provide policy documents in JSON format. However, in CloudFormation you can provide the policy in JSON or YAML format because CloudFormation converts YAML to JSON before submitting it to IAM.
 * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::S3Express::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.s3express.BucketPolicyArgs =
        com.pulumi.awsnative.s3express.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 name of the S3 directory bucket to which the policy applies.
     */
    @JvmName("vmqdbggwaxkatfdq")
    public suspend fun bucket(`value`: Output) {
        this.bucket = value
    }

    /**
     * @param value A policy document containing permissions to add to the specified bucket. In IAM, you must provide policy documents in JSON format. However, in CloudFormation you can provide the policy in JSON or YAML format because CloudFormation converts YAML to JSON before submitting it to IAM.
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::S3Express::BucketPolicy` for more information about the expected schema for this property.
     */
    @JvmName("vwmcgyuwpwxvgooa")
    public suspend fun policyDocument(`value`: Output) {
        this.policyDocument = value
    }

    /**
     * @param value The name of the S3 directory bucket to which the policy applies.
     */
    @JvmName("dajxknrrfivgddus")
    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. In IAM, you must provide policy documents in JSON format. However, in CloudFormation you can provide the policy in JSON or YAML format because CloudFormation converts YAML to JSON before submitting it to IAM.
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::S3Express::BucketPolicy` for more information about the expected schema for this property.
     */
    @JvmName("iyqliuygfmmmneyb")
    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