
com.pulumi.awsnative.mediapackagev2.kotlin.ChannelPolicyArgs.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.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("vrhvpsjmprttucsh")
public suspend fun channelGroupName(`value`: Output) {
this.channelGroupName = value
}
/**
* @param value The name of the channel associated with the channel policy.
*/
@JvmName("lvkdcaibbswvebcq")
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("dvpapkoplwtkrquo")
public suspend fun policy(`value`: Output) {
this.policy = value
}
/**
* @param value The name of the channel group associated with the channel policy.
*/
@JvmName("agjhxwqhksigpkap")
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("igsbyscddgijiywx")
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("dkwuawcbiqvsobtq")
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