![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.mediapackagev2.kotlin.ChannelGroup.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.mediapackagev2.kotlin
import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
/**
* Builder for [ChannelGroup].
*/
@PulumiTagMarker
public class ChannelGroupResourceBuilder internal constructor() {
public var name: String? = null
public var args: ChannelGroupArgs = ChannelGroupArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend ChannelGroupArgsBuilder.() -> Unit) {
val builder = ChannelGroupArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): ChannelGroup {
val builtJavaResource =
com.pulumi.awsnative.mediapackagev2.ChannelGroup(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return ChannelGroup(builtJavaResource)
}
}
/**
* Represents a channel group that facilitates the grouping of multiple channels.
*/
public class ChannelGroup internal constructor(
override val javaResource: com.pulumi.awsnative.mediapackagev2.ChannelGroup,
) : KotlinCustomResource(javaResource, ChannelGroupMapper) {
/**
* The Amazon Resource Name (ARN) associated with the resource.
*/
public val arn: Output
get() = javaResource.arn().applyValue({ args0 -> args0 })
/**
* The name of the channel group.
*/
public val channelGroupName: Output
get() = javaResource.channelGroupName().applyValue({ args0 -> args0 })
/**
* The date and time the channel group was created.
*/
public val createdAt: Output
get() = javaResource.createdAt().applyValue({ args0 -> args0 })
/**
* Enter any descriptive text that helps you to identify the channel group.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The output domain where the source stream should be sent. Integrate the domain with a downstream CDN (such as Amazon CloudFront) or playback device.
*/
public val egressDomain: Output
get() = javaResource.egressDomain().applyValue({ args0 -> args0 })
/**
* The date and time the channel group was modified.
*/
public val modifiedAt: Output
get() = javaResource.modifiedAt().applyValue({ args0 -> args0 })
/**
* The tags associated with the channel group.
*/
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> toKotlin(args0) })
})
}).orElse(null)
})
}
public object ChannelGroupMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.mediapackagev2.ChannelGroup::class == javaResource::class
override fun map(javaResource: Resource): ChannelGroup = ChannelGroup(
javaResource as
com.pulumi.awsnative.mediapackagev2.ChannelGroup,
)
}
/**
* @see [ChannelGroup].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [ChannelGroup].
*/
public suspend fun channelGroup(
name: String,
block: suspend ChannelGroupResourceBuilder.() -> Unit,
): ChannelGroup {
val builder = ChannelGroupResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [ChannelGroup].
* @param name The _unique_ name of the resulting resource.
*/
public fun channelGroup(name: String): ChannelGroup {
val builder = ChannelGroupResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy