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

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

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.11.0.0
Show newest version
@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("xsfjhtcrdnqkvsoq")
    public suspend fun awsId(`value`: Output) {
        this.awsId = value
    }

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

    @JvmName("wfrdeicilryhokor")
    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("bfnltjxcogogvvkg")
    public suspend fun egressEndpoints(values: List>) {
        this.egressEndpoints = Output.all(values)
    }

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

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

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

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

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

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

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

    /**
     * @param value The unique identifier for the Asset.
     */
    @JvmName("yfqlkfqamjhekfqr")
    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("ddmqgghtydsyhmfs")
    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("sgbgvjvetbvdkbph")
    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("ipldwmsphuorynxg")
    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("jiiqlexksiwkxmne")
    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("eouceqafxmtdmaau")
    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("snahtkcvpgdruijx")
    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("yonvfbekyaskmwcs")
    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("gewldsyfsovcaaet")
    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("thfedrwdgcqsxann")
    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("uludvjwnonppvbpg")
    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("oqarhgufrnrspvcf")
    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("kgaelymfphwpyebp")
    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("eqcslarjuxerqofw")
    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("iyvlfthkgcbrktlc")
    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