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

com.pulumi.awsnative.mediapackage.kotlin.PackagingGroupArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.mediapackage.kotlin

import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgs
import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgsBuilder
import com.pulumi.awsnative.mediapackage.PackagingGroupArgs.builder
import com.pulumi.awsnative.mediapackage.kotlin.inputs.PackagingGroupAuthorizationArgs
import com.pulumi.awsnative.mediapackage.kotlin.inputs.PackagingGroupAuthorizationArgsBuilder
import com.pulumi.awsnative.mediapackage.kotlin.inputs.PackagingGroupLogConfigurationArgs
import com.pulumi.awsnative.mediapackage.kotlin.inputs.PackagingGroupLogConfigurationArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource schema for AWS::MediaPackage::PackagingGroup
 * @property authorization CDN Authorization
 * @property awsId The ID of the PackagingGroup.
 * @property egressAccessLogs The configuration parameters for egress access logging.
 * @property tags A collection of tags associated with a resource
 */
public data class PackagingGroupArgs(
    public val authorization: Output? = null,
    public val awsId: Output? = null,
    public val egressAccessLogs: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.mediapackage.PackagingGroupArgs =
        com.pulumi.awsnative.mediapackage.PackagingGroupArgs.builder()
            .authorization(authorization?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .awsId(awsId?.applyValue({ args0 -> args0 }))
            .egressAccessLogs(egressAccessLogs?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [PackagingGroupArgs].
 */
@PulumiTagMarker
public class PackagingGroupArgsBuilder internal constructor() {
    private var authorization: Output? = null

    private var awsId: Output? = null

    private var egressAccessLogs: Output? = null

    private var tags: Output>? = null

    /**
     * @param value CDN Authorization
     */
    @JvmName("tlhoogucootorhsq")
    public suspend fun authorization(`value`: Output) {
        this.authorization = value
    }

    /**
     * @param value The ID of the PackagingGroup.
     */
    @JvmName("layxfukecfyuxigs")
    public suspend fun awsId(`value`: Output) {
        this.awsId = value
    }

    /**
     * @param value The configuration parameters for egress access logging.
     */
    @JvmName("xwirpytfmkepxqhs")
    public suspend fun egressAccessLogs(`value`: Output) {
        this.egressAccessLogs = value
    }

    /**
     * @param value A collection of tags associated with a resource
     */
    @JvmName("kbdpmoyibgcvnicm")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("ohkhqeexsjdhyxsn")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values A collection of tags associated with a resource
     */
    @JvmName("mbelxuegyxisqsms")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value CDN Authorization
     */
    @JvmName("ngalhsngubvmyevs")
    public suspend fun authorization(`value`: PackagingGroupAuthorizationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authorization = mapped
    }

    /**
     * @param argument CDN Authorization
     */
    @JvmName("eiwxnefupnjrblch")
    public suspend fun authorization(argument: suspend PackagingGroupAuthorizationArgsBuilder.() -> Unit) {
        val toBeMapped = PackagingGroupAuthorizationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.authorization = mapped
    }

    /**
     * @param value The ID of the PackagingGroup.
     */
    @JvmName("wgyoabywavrgyrkb")
    public suspend fun awsId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.awsId = mapped
    }

    /**
     * @param value The configuration parameters for egress access logging.
     */
    @JvmName("ovwngrpfidreduxc")
    public suspend fun egressAccessLogs(`value`: PackagingGroupLogConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.egressAccessLogs = mapped
    }

    /**
     * @param argument The configuration parameters for egress access logging.
     */
    @JvmName("jmjiqwoxptssfwfp")
    public suspend fun egressAccessLogs(argument: suspend PackagingGroupLogConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = PackagingGroupLogConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.egressAccessLogs = mapped
    }

    /**
     * @param value A collection of tags associated with a resource
     */
    @JvmName("iqhluesypdctrbxa")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument A collection of tags associated with a resource
     */
    @JvmName("utimjafoxyglpgbo")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CreateOnlyTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A collection of tags associated with a resource
     */
    @JvmName("bmgdeixlccqppvne")
    public suspend fun tags(vararg argument: suspend CreateOnlyTagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CreateOnlyTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A collection of tags associated with a resource
     */
    @JvmName("mrphnniyixumufug")
    public suspend fun tags(argument: suspend CreateOnlyTagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(CreateOnlyTagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values A collection of tags associated with a resource
     */
    @JvmName("wlholxfxgnmljonb")
    public suspend fun tags(vararg values: CreateOnlyTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): PackagingGroupArgs = PackagingGroupArgs(
        authorization = authorization,
        awsId = awsId,
        egressAccessLogs = egressAccessLogs,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy