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

com.pulumi.awsnative.iotanalytics.kotlin.outputs.PipelineActivity.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.iotanalytics.kotlin.outputs

import kotlin.Suppress

/**
 *
 * @property addAttributes Adds other attributes based on existing attributes in the message.
 * @property channel Determines the source of the messages to be processed.
 * @property datastore Specifies where to store the processed message data.
 * @property deviceRegistryEnrich Adds data from the AWS IoT device registry to your message.
 * @property deviceShadowEnrich Adds information from the AWS IoT Device Shadows service to a message.
 * @property filter Filters a message based on its attributes.
 * @property lambda Runs a Lambda function to modify the message.
 * @property math Computes an arithmetic expression using the message's attributes and adds it to the message.
 * @property removeAttributes Removes attributes from a message.
 * @property selectAttributes Creates a new message using only the specified attributes from the original message.
 */
public data class PipelineActivity(
    public val addAttributes: PipelineAddAttributes? = null,
    public val channel: PipelineChannel? = null,
    public val datastore: PipelineDatastore? = null,
    public val deviceRegistryEnrich: PipelineDeviceRegistryEnrich? = null,
    public val deviceShadowEnrich: PipelineDeviceShadowEnrich? = null,
    public val filter: PipelineFilter? = null,
    public val lambda: PipelineLambda? = null,
    public val math: PipelineMath? = null,
    public val removeAttributes: PipelineRemoveAttributes? = null,
    public val selectAttributes: PipelineSelectAttributes? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.iotanalytics.outputs.PipelineActivity): PipelineActivity = PipelineActivity(
            addAttributes = javaType.addAttributes().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.iotanalytics.kotlin.outputs.PipelineAddAttributes.Companion.toKotlin(args0)
                })
            }).orElse(null),
            channel = javaType.channel().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.iotanalytics.kotlin.outputs.PipelineChannel.Companion.toKotlin(args0)
                })
            }).orElse(null),
            datastore = javaType.datastore().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.iotanalytics.kotlin.outputs.PipelineDatastore.Companion.toKotlin(args0)
                })
            }).orElse(null),
            deviceRegistryEnrich = javaType.deviceRegistryEnrich().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.iotanalytics.kotlin.outputs.PipelineDeviceRegistryEnrich.Companion.toKotlin(args0)
                })
            }).orElse(null),
            deviceShadowEnrich = javaType.deviceShadowEnrich().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.iotanalytics.kotlin.outputs.PipelineDeviceShadowEnrich.Companion.toKotlin(args0)
                })
            }).orElse(null),
            filter = javaType.filter().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.iotanalytics.kotlin.outputs.PipelineFilter.Companion.toKotlin(args0)
                })
            }).orElse(null),
            lambda = javaType.lambda().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.iotanalytics.kotlin.outputs.PipelineLambda.Companion.toKotlin(args0)
                })
            }).orElse(null),
            math = javaType.math().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.iotanalytics.kotlin.outputs.PipelineMath.Companion.toKotlin(args0)
                })
            }).orElse(null),
            removeAttributes = javaType.removeAttributes().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.iotanalytics.kotlin.outputs.PipelineRemoveAttributes.Companion.toKotlin(args0)
                })
            }).orElse(null),
            selectAttributes = javaType.selectAttributes().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.iotanalytics.kotlin.outputs.PipelineSelectAttributes.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy