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