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

com.pulumi.awsnative.msk.kotlin.ClusterPolicyArgs.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: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.msk.kotlin

import com.pulumi.awsnative.msk.ClusterPolicyArgs.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::MSK::ClusterPolicy
 * @property clusterArn The arn of the cluster for the resource policy.
 * @property policy A policy document containing permissions to add to the specified cluster.
 * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::MSK::ClusterPolicy` for more information about the expected schema for this property.
 */
public data class ClusterPolicyArgs(
    public val clusterArn: Output? = null,
    public val policy: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.msk.ClusterPolicyArgs =
        com.pulumi.awsnative.msk.ClusterPolicyArgs.builder()
            .clusterArn(clusterArn?.applyValue({ args0 -> args0 }))
            .policy(policy?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClusterPolicyArgs].
 */
@PulumiTagMarker
public class ClusterPolicyArgsBuilder internal constructor() {
    private var clusterArn: Output? = null

    private var policy: Output? = null

    /**
     * @param value The arn of the cluster for the resource policy.
     */
    @JvmName("qaylxxfkukomcukj")
    public suspend fun clusterArn(`value`: Output) {
        this.clusterArn = value
    }

    /**
     * @param value A policy document containing permissions to add to the specified cluster.
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::MSK::ClusterPolicy` for more information about the expected schema for this property.
     */
    @JvmName("kbbxcntqbqnivfke")
    public suspend fun policy(`value`: Output) {
        this.policy = value
    }

    /**
     * @param value The arn of the cluster for the resource policy.
     */
    @JvmName("rnptikwcfoxmxegr")
    public suspend fun clusterArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clusterArn = mapped
    }

    /**
     * @param value A policy document containing permissions to add to the specified cluster.
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::MSK::ClusterPolicy` for more information about the expected schema for this property.
     */
    @JvmName("agnfdcchxxmleych")
    public suspend fun policy(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policy = mapped
    }

    internal fun build(): ClusterPolicyArgs = ClusterPolicyArgs(
        clusterArn = clusterArn,
        policy = policy,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy