com.pulumi.awsnative.iotanalytics.kotlin.outputs.GetDatasetResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.iotanalytics.kotlin.outputs
import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property actions The `DatasetAction` objects that automatically create the dataset contents.
* @property contentDeliveryRules When dataset contents are created they are delivered to destinations specified here.
* @property id
* @property lateDataRules A list of data rules that send notifications to CloudWatch, when data arrives late. To specify `lateDataRules` , the dataset must use a [DeltaTimer](https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_DeltaTime.html) filter.
* @property retentionPeriod Optional. How long, in days, message data is kept for the dataset.
* @property tags Metadata which can be used to manage the data set.
* For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
* @property triggers The `DatasetTrigger` objects that specify when the dataset is automatically updated.
* @property versioningConfiguration Optional. How many versions of dataset contents are kept. If not specified or set to null, only the latest version plus the latest succeeded version (if they are different) are kept for the time period specified by the `retentionPeriod` parameter. For more information, see [Keeping Multiple Versions of AWS IoT Analytics datasets](https://docs.aws.amazon.com/iotanalytics/latest/userguide/getting-started.html#aws-iot-analytics-dataset-versions) in the *AWS IoT Analytics User Guide* .
*/
public data class GetDatasetResult(
public val actions: List? = null,
public val contentDeliveryRules: List? = null,
public val id: String? = null,
public val lateDataRules: List? = null,
public val retentionPeriod: DatasetRetentionPeriod? = null,
public val tags: List? = null,
public val triggers: List? = null,
public val versioningConfiguration: DatasetVersioningConfiguration? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.iotanalytics.outputs.GetDatasetResult): GetDatasetResult = GetDatasetResult(
actions = javaType.actions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iotanalytics.kotlin.outputs.DatasetAction.Companion.toKotlin(args0)
})
}),
contentDeliveryRules = javaType.contentDeliveryRules().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iotanalytics.kotlin.outputs.DatasetContentDeliveryRule.Companion.toKotlin(args0)
})
}),
id = javaType.id().map({ args0 -> args0 }).orElse(null),
lateDataRules = javaType.lateDataRules().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iotanalytics.kotlin.outputs.DatasetLateDataRule.Companion.toKotlin(args0)
})
}),
retentionPeriod = javaType.retentionPeriod().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iotanalytics.kotlin.outputs.DatasetRetentionPeriod.Companion.toKotlin(args0)
})
}).orElse(null),
tags = javaType.tags().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
})
}),
triggers = javaType.triggers().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iotanalytics.kotlin.outputs.DatasetTrigger.Companion.toKotlin(args0)
})
}),
versioningConfiguration = javaType.versioningConfiguration().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iotanalytics.kotlin.outputs.DatasetVersioningConfiguration.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}