
com.pulumi.awsnative.mediapackagev2.kotlin.OriginEndpointPolicyArgs.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.OriginEndpointPolicyArgs.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 policy that allows or denies access to an origin endpoint.
* @property channelGroupName The name of the channel group associated with the origin endpoint policy.
* @property channelName The channel name associated with the origin endpoint policy.
* @property originEndpointName The name of the origin endpoint associated with the origin endpoint policy.
* @property policy The policy associated with the origin endpoint.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::MediaPackageV2::OriginEndpointPolicy` for more information about the expected schema for this property.
*/
public data class OriginEndpointPolicyArgs(
public val channelGroupName: Output? = null,
public val channelName: Output? = null,
public val originEndpointName: Output? = null,
public val policy: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.mediapackagev2.OriginEndpointPolicyArgs =
com.pulumi.awsnative.mediapackagev2.OriginEndpointPolicyArgs.builder()
.channelGroupName(channelGroupName?.applyValue({ args0 -> args0 }))
.channelName(channelName?.applyValue({ args0 -> args0 }))
.originEndpointName(originEndpointName?.applyValue({ args0 -> args0 }))
.policy(policy?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [OriginEndpointPolicyArgs].
*/
@PulumiTagMarker
public class OriginEndpointPolicyArgsBuilder internal constructor() {
private var channelGroupName: Output? = null
private var channelName: Output? = null
private var originEndpointName: Output? = null
private var policy: Output? = null
/**
* @param value The name of the channel group associated with the origin endpoint policy.
*/
@JvmName("eniyueebbcqxfvdm")
public suspend fun channelGroupName(`value`: Output) {
this.channelGroupName = value
}
/**
* @param value The channel name associated with the origin endpoint policy.
*/
@JvmName("aksluaxnqbryhqwf")
public suspend fun channelName(`value`: Output) {
this.channelName = value
}
/**
* @param value The name of the origin endpoint associated with the origin endpoint policy.
*/
@JvmName("qyqgionaqevbqyrj")
public suspend fun originEndpointName(`value`: Output) {
this.originEndpointName = value
}
/**
* @param value The policy associated with the origin endpoint.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::MediaPackageV2::OriginEndpointPolicy` for more information about the expected schema for this property.
*/
@JvmName("cqklfqkgjihjiynl")
public suspend fun policy(`value`: Output) {
this.policy = value
}
/**
* @param value The name of the channel group associated with the origin endpoint policy.
*/
@JvmName("worydhexseagibjc")
public suspend fun channelGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.channelGroupName = mapped
}
/**
* @param value The channel name associated with the origin endpoint policy.
*/
@JvmName("efroclbnrsweisct")
public suspend fun channelName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.channelName = mapped
}
/**
* @param value The name of the origin endpoint associated with the origin endpoint policy.
*/
@JvmName("ierajyfagqacjvps")
public suspend fun originEndpointName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.originEndpointName = mapped
}
/**
* @param value The policy associated with the origin endpoint.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::MediaPackageV2::OriginEndpointPolicy` for more information about the expected schema for this property.
*/
@JvmName("vldglhflsuqgvunv")
public suspend fun policy(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.policy = mapped
}
internal fun build(): OriginEndpointPolicyArgs = OriginEndpointPolicyArgs(
channelGroupName = channelGroupName,
channelName = channelName,
originEndpointName = originEndpointName,
policy = policy,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy