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

com.pulumi.awsnative.pipes.kotlin.inputs.PipeTargetTimestreamParametersArgs.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.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.pipes.kotlin.inputs

import com.pulumi.awsnative.pipes.inputs.PipeTargetTimestreamParametersArgs.builder
import com.pulumi.awsnative.pipes.kotlin.enums.PipeEpochTimeUnit
import com.pulumi.awsnative.pipes.kotlin.enums.PipeTimeFieldType
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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

/**
 *
 * @property dimensionMappings Map source data to dimensions in the target Timestream for LiveAnalytics table.
 * For more information, see [Amazon Timestream for LiveAnalytics concepts](https://docs.aws.amazon.com/timestream/latest/developerguide/concepts.html)
 * @property epochTimeUnit The granularity of the time units used. Default is `MILLISECONDS` .
 * Required if `TimeFieldType` is specified as `EPOCH` .
 * @property multiMeasureMappings Maps multiple measures from the source event to the same record in the specified Timestream for LiveAnalytics table.
 * @property singleMeasureMappings Mappings of single source data fields to individual records in the specified Timestream for LiveAnalytics table.
 * @property timeFieldType The type of time value used.
 * The default is `EPOCH` .
 * @property timeValue Dynamic path to the source data field that represents the time value for your data.
 * @property timestampFormat How to format the timestamps. For example, `YYYY-MM-DDThh:mm:ss.sssTZD` .
 * Required if `TimeFieldType` is specified as `TIMESTAMP_FORMAT` .
 * @property versionValue 64 bit version value or source data field that represents the version value for your data.
 * Write requests with a higher version number will update the existing measure values of the record and version. In cases where the measure value is the same, the version will still be updated.
 * Default value is 1.
 * Timestream for LiveAnalytics does not support updating partial measure values in a record.
 * Write requests for duplicate data with a higher version number will update the existing measure value and version. In cases where the measure value is the same, `Version` will still be updated. Default value is `1` .
 * > `Version` must be `1` or greater, or you will receive a `ValidationException` error.
 */
public data class PipeTargetTimestreamParametersArgs(
    public val dimensionMappings: Output>,
    public val epochTimeUnit: Output? = null,
    public val multiMeasureMappings: Output>? = null,
    public val singleMeasureMappings: Output>? = null,
    public val timeFieldType: Output? = null,
    public val timeValue: Output,
    public val timestampFormat: Output? = null,
    public val versionValue: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.pipes.inputs.PipeTargetTimestreamParametersArgs =
        com.pulumi.awsnative.pipes.inputs.PipeTargetTimestreamParametersArgs.builder()
            .dimensionMappings(
                dimensionMappings.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .epochTimeUnit(epochTimeUnit?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .multiMeasureMappings(
                multiMeasureMappings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .singleMeasureMappings(
                singleMeasureMappings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .timeFieldType(timeFieldType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .timeValue(timeValue.applyValue({ args0 -> args0 }))
            .timestampFormat(timestampFormat?.applyValue({ args0 -> args0 }))
            .versionValue(versionValue.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PipeTargetTimestreamParametersArgs].
 */
@PulumiTagMarker
public class PipeTargetTimestreamParametersArgsBuilder internal constructor() {
    private var dimensionMappings: Output>? = null

    private var epochTimeUnit: Output? = null

    private var multiMeasureMappings: Output>? = null

    private var singleMeasureMappings: Output>? = null

    private var timeFieldType: Output? = null

    private var timeValue: Output? = null

    private var timestampFormat: Output? = null

    private var versionValue: Output? = null

    /**
     * @param value Map source data to dimensions in the target Timestream for LiveAnalytics table.
     * For more information, see [Amazon Timestream for LiveAnalytics concepts](https://docs.aws.amazon.com/timestream/latest/developerguide/concepts.html)
     */
    @JvmName("hbfnlxcjhqnyigyy")
    public suspend fun dimensionMappings(`value`: Output>) {
        this.dimensionMappings = value
    }

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

    /**
     * @param values Map source data to dimensions in the target Timestream for LiveAnalytics table.
     * For more information, see [Amazon Timestream for LiveAnalytics concepts](https://docs.aws.amazon.com/timestream/latest/developerguide/concepts.html)
     */
    @JvmName("gvvyojwlyaojvhia")
    public suspend fun dimensionMappings(values: List>) {
        this.dimensionMappings = Output.all(values)
    }

    /**
     * @param value The granularity of the time units used. Default is `MILLISECONDS` .
     * Required if `TimeFieldType` is specified as `EPOCH` .
     */
    @JvmName("kgiulvvnalyuwwcg")
    public suspend fun epochTimeUnit(`value`: Output) {
        this.epochTimeUnit = value
    }

    /**
     * @param value Maps multiple measures from the source event to the same record in the specified Timestream for LiveAnalytics table.
     */
    @JvmName("nisuvivohwexbrak")
    public suspend fun multiMeasureMappings(`value`: Output>) {
        this.multiMeasureMappings = value
    }

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

    /**
     * @param values Maps multiple measures from the source event to the same record in the specified Timestream for LiveAnalytics table.
     */
    @JvmName("cyujnriitbsedkqj")
    public suspend fun multiMeasureMappings(values: List>) {
        this.multiMeasureMappings = Output.all(values)
    }

    /**
     * @param value Mappings of single source data fields to individual records in the specified Timestream for LiveAnalytics table.
     */
    @JvmName("qwraukskymqhegrb")
    public suspend fun singleMeasureMappings(`value`: Output>) {
        this.singleMeasureMappings = value
    }

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

    /**
     * @param values Mappings of single source data fields to individual records in the specified Timestream for LiveAnalytics table.
     */
    @JvmName("ktvgltthnpphkeii")
    public suspend fun singleMeasureMappings(values: List>) {
        this.singleMeasureMappings = Output.all(values)
    }

    /**
     * @param value The type of time value used.
     * The default is `EPOCH` .
     */
    @JvmName("oojxjdvbejtjdggh")
    public suspend fun timeFieldType(`value`: Output) {
        this.timeFieldType = value
    }

    /**
     * @param value Dynamic path to the source data field that represents the time value for your data.
     */
    @JvmName("icdfrrkslqspnfxu")
    public suspend fun timeValue(`value`: Output) {
        this.timeValue = value
    }

    /**
     * @param value How to format the timestamps. For example, `YYYY-MM-DDThh:mm:ss.sssTZD` .
     * Required if `TimeFieldType` is specified as `TIMESTAMP_FORMAT` .
     */
    @JvmName("dhhwimvcgpojcifh")
    public suspend fun timestampFormat(`value`: Output) {
        this.timestampFormat = value
    }

    /**
     * @param value 64 bit version value or source data field that represents the version value for your data.
     * Write requests with a higher version number will update the existing measure values of the record and version. In cases where the measure value is the same, the version will still be updated.
     * Default value is 1.
     * Timestream for LiveAnalytics does not support updating partial measure values in a record.
     * Write requests for duplicate data with a higher version number will update the existing measure value and version. In cases where the measure value is the same, `Version` will still be updated. Default value is `1` .
     * > `Version` must be `1` or greater, or you will receive a `ValidationException` error.
     */
    @JvmName("ngdomgkxrdxulkda")
    public suspend fun versionValue(`value`: Output) {
        this.versionValue = value
    }

    /**
     * @param value Map source data to dimensions in the target Timestream for LiveAnalytics table.
     * For more information, see [Amazon Timestream for LiveAnalytics concepts](https://docs.aws.amazon.com/timestream/latest/developerguide/concepts.html)
     */
    @JvmName("wgpeqscetbtntmve")
    public suspend fun dimensionMappings(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dimensionMappings = mapped
    }

    /**
     * @param argument Map source data to dimensions in the target Timestream for LiveAnalytics table.
     * For more information, see [Amazon Timestream for LiveAnalytics concepts](https://docs.aws.amazon.com/timestream/latest/developerguide/concepts.html)
     */
    @JvmName("fhmyffanaqcvqpxc")
    public suspend fun dimensionMappings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PipeDimensionMappingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.dimensionMappings = mapped
    }

    /**
     * @param argument Map source data to dimensions in the target Timestream for LiveAnalytics table.
     * For more information, see [Amazon Timestream for LiveAnalytics concepts](https://docs.aws.amazon.com/timestream/latest/developerguide/concepts.html)
     */
    @JvmName("ymtormgevnrbbwta")
    public suspend fun dimensionMappings(vararg argument: suspend PipeDimensionMappingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PipeDimensionMappingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.dimensionMappings = mapped
    }

    /**
     * @param argument Map source data to dimensions in the target Timestream for LiveAnalytics table.
     * For more information, see [Amazon Timestream for LiveAnalytics concepts](https://docs.aws.amazon.com/timestream/latest/developerguide/concepts.html)
     */
    @JvmName("dpibdanuwckbijai")
    public suspend fun dimensionMappings(argument: suspend PipeDimensionMappingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(PipeDimensionMappingArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.dimensionMappings = mapped
    }

    /**
     * @param values Map source data to dimensions in the target Timestream for LiveAnalytics table.
     * For more information, see [Amazon Timestream for LiveAnalytics concepts](https://docs.aws.amazon.com/timestream/latest/developerguide/concepts.html)
     */
    @JvmName("rfmofbxlxxlbwwxn")
    public suspend fun dimensionMappings(vararg values: PipeDimensionMappingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dimensionMappings = mapped
    }

    /**
     * @param value The granularity of the time units used. Default is `MILLISECONDS` .
     * Required if `TimeFieldType` is specified as `EPOCH` .
     */
    @JvmName("ibjjnaakbugdtson")
    public suspend fun epochTimeUnit(`value`: PipeEpochTimeUnit?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.epochTimeUnit = mapped
    }

    /**
     * @param value Maps multiple measures from the source event to the same record in the specified Timestream for LiveAnalytics table.
     */
    @JvmName("jjihmogsmcxwbser")
    public suspend fun multiMeasureMappings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.multiMeasureMappings = mapped
    }

    /**
     * @param argument Maps multiple measures from the source event to the same record in the specified Timestream for LiveAnalytics table.
     */
    @JvmName("bpctagdnxqgjqcit")
    public suspend fun multiMeasureMappings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PipeMultiMeasureMappingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.multiMeasureMappings = mapped
    }

    /**
     * @param argument Maps multiple measures from the source event to the same record in the specified Timestream for LiveAnalytics table.
     */
    @JvmName("biivlsogxudayauu")
    public suspend fun multiMeasureMappings(vararg argument: suspend PipeMultiMeasureMappingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PipeMultiMeasureMappingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.multiMeasureMappings = mapped
    }

    /**
     * @param argument Maps multiple measures from the source event to the same record in the specified Timestream for LiveAnalytics table.
     */
    @JvmName("rhobdxlksvcsmvde")
    public suspend fun multiMeasureMappings(argument: suspend PipeMultiMeasureMappingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            PipeMultiMeasureMappingArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.multiMeasureMappings = mapped
    }

    /**
     * @param values Maps multiple measures from the source event to the same record in the specified Timestream for LiveAnalytics table.
     */
    @JvmName("rlmfwnhacunmfrrf")
    public suspend fun multiMeasureMappings(vararg values: PipeMultiMeasureMappingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.multiMeasureMappings = mapped
    }

    /**
     * @param value Mappings of single source data fields to individual records in the specified Timestream for LiveAnalytics table.
     */
    @JvmName("pguiuyjnyqmyelep")
    public suspend fun singleMeasureMappings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.singleMeasureMappings = mapped
    }

    /**
     * @param argument Mappings of single source data fields to individual records in the specified Timestream for LiveAnalytics table.
     */
    @JvmName("eiduoaigwsbvwrtn")
    public suspend fun singleMeasureMappings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PipeSingleMeasureMappingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.singleMeasureMappings = mapped
    }

    /**
     * @param argument Mappings of single source data fields to individual records in the specified Timestream for LiveAnalytics table.
     */
    @JvmName("nggvjoqvwyupymyv")
    public suspend fun singleMeasureMappings(vararg argument: suspend PipeSingleMeasureMappingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PipeSingleMeasureMappingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.singleMeasureMappings = mapped
    }

    /**
     * @param argument Mappings of single source data fields to individual records in the specified Timestream for LiveAnalytics table.
     */
    @JvmName("mrbylymdhmyjvdtl")
    public suspend fun singleMeasureMappings(argument: suspend PipeSingleMeasureMappingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            PipeSingleMeasureMappingArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.singleMeasureMappings = mapped
    }

    /**
     * @param values Mappings of single source data fields to individual records in the specified Timestream for LiveAnalytics table.
     */
    @JvmName("cxybemdaaeitbklf")
    public suspend fun singleMeasureMappings(vararg values: PipeSingleMeasureMappingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.singleMeasureMappings = mapped
    }

    /**
     * @param value The type of time value used.
     * The default is `EPOCH` .
     */
    @JvmName("aaajvygkyfxxjjmk")
    public suspend fun timeFieldType(`value`: PipeTimeFieldType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeFieldType = mapped
    }

    /**
     * @param value Dynamic path to the source data field that represents the time value for your data.
     */
    @JvmName("jjnkssylqtwsdlih")
    public suspend fun timeValue(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.timeValue = mapped
    }

    /**
     * @param value How to format the timestamps. For example, `YYYY-MM-DDThh:mm:ss.sssTZD` .
     * Required if `TimeFieldType` is specified as `TIMESTAMP_FORMAT` .
     */
    @JvmName("ounesuqelqtlfpfu")
    public suspend fun timestampFormat(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timestampFormat = mapped
    }

    /**
     * @param value 64 bit version value or source data field that represents the version value for your data.
     * Write requests with a higher version number will update the existing measure values of the record and version. In cases where the measure value is the same, the version will still be updated.
     * Default value is 1.
     * Timestream for LiveAnalytics does not support updating partial measure values in a record.
     * Write requests for duplicate data with a higher version number will update the existing measure value and version. In cases where the measure value is the same, `Version` will still be updated. Default value is `1` .
     * > `Version` must be `1` or greater, or you will receive a `ValidationException` error.
     */
    @JvmName("msvkyrtbkjopswdv")
    public suspend fun versionValue(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.versionValue = mapped
    }

    internal fun build(): PipeTargetTimestreamParametersArgs = PipeTargetTimestreamParametersArgs(
        dimensionMappings = dimensionMappings ?: throw PulumiNullFieldException("dimensionMappings"),
        epochTimeUnit = epochTimeUnit,
        multiMeasureMappings = multiMeasureMappings,
        singleMeasureMappings = singleMeasureMappings,
        timeFieldType = timeFieldType,
        timeValue = timeValue ?: throw PulumiNullFieldException("timeValue"),
        timestampFormat = timestampFormat,
        versionValue = versionValue ?: throw PulumiNullFieldException("versionValue"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy