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

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

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

package com.pulumi.awsnative.mediapackage.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.mediapackage.AssetArgs.builder
import com.pulumi.awsnative.mediapackage.kotlin.inputs.AssetEgressEndpointArgs
import com.pulumi.awsnative.mediapackage.kotlin.inputs.AssetEgressEndpointArgsBuilder
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::Asset
 * @property awsId The unique identifier for the Asset.
 * @property egressEndpoints The list of egress endpoints available for the Asset.
 * @property packagingGroupId The ID of the PackagingGroup for the Asset.
 * @property resourceId The resource ID to include in SPEKE key requests.
 * @property sourceArn ARN of the source object in S3.
 * @property sourceRoleArn The IAM role_arn used to access the source S3 bucket.
 * @property tags A collection of tags associated with a resource
 */
public data class AssetArgs(
    public val awsId: Output? = null,
    public val egressEndpoints: Output>? = null,
    public val packagingGroupId: Output? = null,
    public val resourceId: Output? = null,
    public val sourceArn: Output? = null,
    public val sourceRoleArn: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.mediapackage.AssetArgs =
        com.pulumi.awsnative.mediapackage.AssetArgs.builder()
            .awsId(awsId?.applyValue({ args0 -> args0 }))
            .egressEndpoints(
                egressEndpoints?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .packagingGroupId(packagingGroupId?.applyValue({ args0 -> args0 }))
            .resourceId(resourceId?.applyValue({ args0 -> args0 }))
            .sourceArn(sourceArn?.applyValue({ args0 -> args0 }))
            .sourceRoleArn(sourceRoleArn?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [AssetArgs].
 */
@PulumiTagMarker
public class AssetArgsBuilder internal constructor() {
    private var awsId: Output? = null

    private var egressEndpoints: Output>? = null

    private var packagingGroupId: Output? = null

    private var resourceId: Output? = null

    private var sourceArn: Output? = null

    private var sourceRoleArn: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The unique identifier for the Asset.
     */
    @JvmName("eldkykypskhotvex")
    public suspend fun awsId(`value`: Output) {
        this.awsId = value
    }

    /**
     * @param value The list of egress endpoints available for the Asset.
     */
    @JvmName("stnntajujjxpojqu")
    public suspend fun egressEndpoints(`value`: Output>) {
        this.egressEndpoints = value
    }

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

    /**
     * @param values The list of egress endpoints available for the Asset.
     */
    @JvmName("tdpbkwkuuykrtbmh")
    public suspend fun egressEndpoints(values: List>) {
        this.egressEndpoints = Output.all(values)
    }

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

    /**
     * @param value The resource ID to include in SPEKE key requests.
     */
    @JvmName("igdbjvgxfrvidqhb")
    public suspend fun resourceId(`value`: Output) {
        this.resourceId = value
    }

    /**
     * @param value ARN of the source object in S3.
     */
    @JvmName("hvkrcfynnrpmgjcw")
    public suspend fun sourceArn(`value`: Output) {
        this.sourceArn = value
    }

    /**
     * @param value The IAM role_arn used to access the source S3 bucket.
     */
    @JvmName("nlfivucwopwbiuvg")
    public suspend fun sourceRoleArn(`value`: Output) {
        this.sourceRoleArn = value
    }

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

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

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

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

    /**
     * @param value The list of egress endpoints available for the Asset.
     */
    @JvmName("ywkvpslevvexvlig")
    public suspend fun egressEndpoints(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.egressEndpoints = mapped
    }

    /**
     * @param argument The list of egress endpoints available for the Asset.
     */
    @JvmName("kiulgqehjogrxrbu")
    public suspend fun egressEndpoints(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AssetEgressEndpointArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.egressEndpoints = mapped
    }

    /**
     * @param argument The list of egress endpoints available for the Asset.
     */
    @JvmName("oquqvvmyihobaovw")
    public suspend fun egressEndpoints(vararg argument: suspend AssetEgressEndpointArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AssetEgressEndpointArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.egressEndpoints = mapped
    }

    /**
     * @param argument The list of egress endpoints available for the Asset.
     */
    @JvmName("fitggmxhxhgiqdnv")
    public suspend fun egressEndpoints(argument: suspend AssetEgressEndpointArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(AssetEgressEndpointArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.egressEndpoints = mapped
    }

    /**
     * @param values The list of egress endpoints available for the Asset.
     */
    @JvmName("gmilprxpdncurvjs")
    public suspend fun egressEndpoints(vararg values: AssetEgressEndpointArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.egressEndpoints = mapped
    }

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

    /**
     * @param value The resource ID to include in SPEKE key requests.
     */
    @JvmName("kljqrqprkqonjffd")
    public suspend fun resourceId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceId = mapped
    }

    /**
     * @param value ARN of the source object in S3.
     */
    @JvmName("wvgmjxcqkjaxdqjc")
    public suspend fun sourceArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceArn = mapped
    }

    /**
     * @param value The IAM role_arn used to access the source S3 bucket.
     */
    @JvmName("skkigqlruonllqkw")
    public suspend fun sourceRoleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceRoleArn = mapped
    }

    /**
     * @param value A collection of tags associated with a resource
     */
    @JvmName("cykijsnnlgfkipeb")
    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("blolcvnlbqagrngj")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

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

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

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

    internal fun build(): AssetArgs = AssetArgs(
        awsId = awsId,
        egressEndpoints = egressEndpoints,
        packagingGroupId = packagingGroupId,
        resourceId = resourceId,
        sourceArn = sourceArn,
        sourceRoleArn = sourceRoleArn,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy