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

com.pulumi.awsnative.mediatailor.kotlin.SourceLocationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.mediatailor.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.mediatailor.SourceLocationArgs.builder
import com.pulumi.awsnative.mediatailor.kotlin.inputs.SourceLocationAccessConfigurationArgs
import com.pulumi.awsnative.mediatailor.kotlin.inputs.SourceLocationAccessConfigurationArgsBuilder
import com.pulumi.awsnative.mediatailor.kotlin.inputs.SourceLocationDefaultSegmentDeliveryConfigurationArgs
import com.pulumi.awsnative.mediatailor.kotlin.inputs.SourceLocationDefaultSegmentDeliveryConfigurationArgsBuilder
import com.pulumi.awsnative.mediatailor.kotlin.inputs.SourceLocationHttpConfigurationArgs
import com.pulumi.awsnative.mediatailor.kotlin.inputs.SourceLocationHttpConfigurationArgsBuilder
import com.pulumi.awsnative.mediatailor.kotlin.inputs.SourceLocationSegmentDeliveryConfigurationArgs
import com.pulumi.awsnative.mediatailor.kotlin.inputs.SourceLocationSegmentDeliveryConfigurationArgsBuilder
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

/**
 * Definition of AWS::MediaTailor::SourceLocation Resource Type
 * @property accessConfiguration The access configuration for the source location.
 * @property defaultSegmentDeliveryConfiguration The default segment delivery configuration.
 * @property httpConfiguration The HTTP configuration for the source location.
 * @property segmentDeliveryConfigurations 

A list of the segment delivery configurations associated with this resource.

* @property sourceLocationName The name of the source location. * @property tags The tags to assign to the source location. */ public data class SourceLocationArgs( public val accessConfiguration: Output? = null, public val defaultSegmentDeliveryConfiguration: Output? = null, public val httpConfiguration: Output? = null, public val segmentDeliveryConfigurations: Output>? = null, public val sourceLocationName: Output? = null, public val tags: Output>? = null, ) : ConvertibleToJava { override fun toJava(): com.pulumi.awsnative.mediatailor.SourceLocationArgs = com.pulumi.awsnative.mediatailor.SourceLocationArgs.builder() .accessConfiguration( accessConfiguration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }), ) .defaultSegmentDeliveryConfiguration( defaultSegmentDeliveryConfiguration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }), ) .httpConfiguration(httpConfiguration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })) .segmentDeliveryConfigurations( segmentDeliveryConfigurations?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }), ) .sourceLocationName(sourceLocationName?.applyValue({ args0 -> args0 })) .tags( tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }), ).build() } /** * Builder for [SourceLocationArgs]. */ @PulumiTagMarker public class SourceLocationArgsBuilder internal constructor() { private var accessConfiguration: Output? = null private var defaultSegmentDeliveryConfiguration: Output? = null private var httpConfiguration: Output? = null private var segmentDeliveryConfigurations: Output>? = null private var sourceLocationName: Output? = null private var tags: Output>? = null /** * @param value The access configuration for the source location. */ @JvmName("xvfaahjujoahqsol") public suspend fun accessConfiguration(`value`: Output) { this.accessConfiguration = value } /** * @param value The default segment delivery configuration. */ @JvmName("xicllwipkeavhdbx") public suspend fun defaultSegmentDeliveryConfiguration(`value`: Output) { this.defaultSegmentDeliveryConfiguration = value } /** * @param value The HTTP configuration for the source location. */ @JvmName("abeogomewnfdmqpu") public suspend fun httpConfiguration(`value`: Output) { this.httpConfiguration = value } /** * @param value

A list of the segment delivery configurations associated with this resource.

*/ @JvmName("mpethkdhfxohaupp") public suspend fun segmentDeliveryConfigurations(`value`: Output>) { this.segmentDeliveryConfigurations = value } @JvmName("hptlncjieyrcrtqb") public suspend fun segmentDeliveryConfigurations(vararg values: Output) { this.segmentDeliveryConfigurations = Output.all(values.asList()) } /** * @param values

A list of the segment delivery configurations associated with this resource.

*/ @JvmName("loutgdopvibwdnuh") public suspend fun segmentDeliveryConfigurations(values: List>) { this.segmentDeliveryConfigurations = Output.all(values) } /** * @param value The name of the source location. */ @JvmName("jcycteehkfasotls") public suspend fun sourceLocationName(`value`: Output) { this.sourceLocationName = value } /** * @param value The tags to assign to the source location. */ @JvmName("idhwwjtcnrcjwngb") public suspend fun tags(`value`: Output>) { this.tags = value } @JvmName("wfhxccvflylbibpu") public suspend fun tags(vararg values: Output) { this.tags = Output.all(values.asList()) } /** * @param values The tags to assign to the source location. */ @JvmName("qrfpvxtshsnehxgj") public suspend fun tags(values: List>) { this.tags = Output.all(values) } /** * @param value The access configuration for the source location. */ @JvmName("rluyvtbwuihfkjsk") public suspend fun accessConfiguration(`value`: SourceLocationAccessConfigurationArgs?) { val toBeMapped = value val mapped = toBeMapped?.let({ args0 -> of(args0) }) this.accessConfiguration = mapped } /** * @param argument The access configuration for the source location. */ @JvmName("temufmnmnkynjfxc") public suspend fun accessConfiguration(argument: suspend SourceLocationAccessConfigurationArgsBuilder.() -> Unit) { val toBeMapped = SourceLocationAccessConfigurationArgsBuilder().applySuspend { argument() }.build() val mapped = of(toBeMapped) this.accessConfiguration = mapped } /** * @param value The default segment delivery configuration. */ @JvmName("kltapebhmldrhtfa") public suspend fun defaultSegmentDeliveryConfiguration(`value`: SourceLocationDefaultSegmentDeliveryConfigurationArgs?) { val toBeMapped = value val mapped = toBeMapped?.let({ args0 -> of(args0) }) this.defaultSegmentDeliveryConfiguration = mapped } /** * @param argument The default segment delivery configuration. */ @JvmName("ewdqynvbugwdbgnf") public suspend fun defaultSegmentDeliveryConfiguration(argument: suspend SourceLocationDefaultSegmentDeliveryConfigurationArgsBuilder.() -> Unit) { val toBeMapped = SourceLocationDefaultSegmentDeliveryConfigurationArgsBuilder().applySuspend { argument() }.build() val mapped = of(toBeMapped) this.defaultSegmentDeliveryConfiguration = mapped } /** * @param value The HTTP configuration for the source location. */ @JvmName("ntpnlcbpkhivhxve") public suspend fun httpConfiguration(`value`: SourceLocationHttpConfigurationArgs?) { val toBeMapped = value val mapped = toBeMapped?.let({ args0 -> of(args0) }) this.httpConfiguration = mapped } /** * @param argument The HTTP configuration for the source location. */ @JvmName("buvippbumtxoffeg") public suspend fun httpConfiguration(argument: suspend SourceLocationHttpConfigurationArgsBuilder.() -> Unit) { val toBeMapped = SourceLocationHttpConfigurationArgsBuilder().applySuspend { argument() }.build() val mapped = of(toBeMapped) this.httpConfiguration = mapped } /** * @param value

A list of the segment delivery configurations associated with this resource.

*/ @JvmName("dmmauhoxbgeuhhyk") public suspend fun segmentDeliveryConfigurations(`value`: List?) { val toBeMapped = value val mapped = toBeMapped?.let({ args0 -> of(args0) }) this.segmentDeliveryConfigurations = mapped } /** * @param argument

A list of the segment delivery configurations associated with this resource.

*/ @JvmName("xxgawbicbmnkmdyp") public suspend fun segmentDeliveryConfigurations(argument: List Unit>) { val toBeMapped = argument.toList().map { SourceLocationSegmentDeliveryConfigurationArgsBuilder().applySuspend { it() }.build() } val mapped = of(toBeMapped) this.segmentDeliveryConfigurations = mapped } /** * @param argument

A list of the segment delivery configurations associated with this resource.

*/ @JvmName("bhoeehxccggpqejh") public suspend fun segmentDeliveryConfigurations(vararg argument: suspend SourceLocationSegmentDeliveryConfigurationArgsBuilder.() -> Unit) { val toBeMapped = argument.toList().map { SourceLocationSegmentDeliveryConfigurationArgsBuilder().applySuspend { it() }.build() } val mapped = of(toBeMapped) this.segmentDeliveryConfigurations = mapped } /** * @param argument

A list of the segment delivery configurations associated with this resource.

*/ @JvmName("neqlwqiujxbibxpe") public suspend fun segmentDeliveryConfigurations(argument: suspend SourceLocationSegmentDeliveryConfigurationArgsBuilder.() -> Unit) { val toBeMapped = listOf( SourceLocationSegmentDeliveryConfigurationArgsBuilder().applySuspend { argument() }.build(), ) val mapped = of(toBeMapped) this.segmentDeliveryConfigurations = mapped } /** * @param values

A list of the segment delivery configurations associated with this resource.

*/ @JvmName("dybrasfbgmjghqcw") public suspend fun segmentDeliveryConfigurations(vararg values: SourceLocationSegmentDeliveryConfigurationArgs) { val toBeMapped = values.toList() val mapped = toBeMapped.let({ args0 -> of(args0) }) this.segmentDeliveryConfigurations = mapped } /** * @param value The name of the source location. */ @JvmName("xacvubviukfgntof") public suspend fun sourceLocationName(`value`: String?) { val toBeMapped = value val mapped = toBeMapped?.let({ args0 -> of(args0) }) this.sourceLocationName = mapped } /** * @param value The tags to assign to the source location. */ @JvmName("hjxdpdkcukplgpfw") public suspend fun tags(`value`: List?) { val toBeMapped = value val mapped = toBeMapped?.let({ args0 -> of(args0) }) this.tags = mapped } /** * @param argument The tags to assign to the source location. */ @JvmName("pxmepmapfkobyoma") 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 The tags to assign to the source location. */ @JvmName("bhmkthskswipswke") 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 The tags to assign to the source location. */ @JvmName("ppyjkrntrxctjxdw") public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) { val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build()) val mapped = of(toBeMapped) this.tags = mapped } /** * @param values The tags to assign to the source location. */ @JvmName("ogmeihrlopvwdcxy") public suspend fun tags(vararg values: TagArgs) { val toBeMapped = values.toList() val mapped = toBeMapped.let({ args0 -> of(args0) }) this.tags = mapped } internal fun build(): SourceLocationArgs = SourceLocationArgs( accessConfiguration = accessConfiguration, defaultSegmentDeliveryConfiguration = defaultSegmentDeliveryConfiguration, httpConfiguration = httpConfiguration, segmentDeliveryConfigurations = segmentDeliveryConfigurations, sourceLocationName = sourceLocationName, tags = tags, ) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy