![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.mediapackagev2.kotlin.ChannelPolicyArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.mediapackagev2.kotlin
import com.pulumi.awsnative.mediapackagev2.ChannelPolicyArgs.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
/**
* Represents a resource-based policy that allows or denies access to a channel.
* @property channelGroupName The name of the channel group associated with the channel policy.
* @property channelName The name of the channel associated with the channel policy.
* @property policy The policy associated with the channel.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::MediaPackageV2::ChannelPolicy` for more information about the expected schema for this property.
*/
public data class ChannelPolicyArgs(
public val channelGroupName: Output? = null,
public val channelName: Output? = null,
public val policy: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.mediapackagev2.ChannelPolicyArgs =
com.pulumi.awsnative.mediapackagev2.ChannelPolicyArgs.builder()
.channelGroupName(channelGroupName?.applyValue({ args0 -> args0 }))
.channelName(channelName?.applyValue({ args0 -> args0 }))
.policy(policy?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ChannelPolicyArgs].
*/
@PulumiTagMarker
public class ChannelPolicyArgsBuilder internal constructor() {
private var channelGroupName: Output? = null
private var channelName: Output? = null
private var policy: Output? = null
/**
* @param value The name of the channel group associated with the channel policy.
*/
@JvmName("xedyytlxuqnsmoid")
public suspend fun channelGroupName(`value`: Output) {
this.channelGroupName = value
}
/**
* @param value The name of the channel associated with the channel policy.
*/
@JvmName("ntaasgftljwsnque")
public suspend fun channelName(`value`: Output) {
this.channelName = value
}
/**
* @param value The policy associated with the channel.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::MediaPackageV2::ChannelPolicy` for more information about the expected schema for this property.
*/
@JvmName("nxipphsgwpcqosae")
public suspend fun policy(`value`: Output) {
this.policy = value
}
/**
* @param value The name of the channel group associated with the channel policy.
*/
@JvmName("osoifjylsasopdir")
public suspend fun channelGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.channelGroupName = mapped
}
/**
* @param value The name of the channel associated with the channel policy.
*/
@JvmName("lncqcedhhqhorjkd")
public suspend fun channelName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.channelName = mapped
}
/**
* @param value The policy associated with the channel.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::MediaPackageV2::ChannelPolicy` for more information about the expected schema for this property.
*/
@JvmName("wknaxbnutknttdxa")
public suspend fun policy(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.policy = mapped
}
internal fun build(): ChannelPolicyArgs = ChannelPolicyArgs(
channelGroupName = channelGroupName,
channelName = channelName,
policy = policy,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy