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

com.pulumi.awsnative.iotanalytics.kotlin.DatastoreArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.iotanalytics.kotlin

import com.pulumi.awsnative.iotanalytics.DatastoreArgs.builder
import com.pulumi.awsnative.iotanalytics.kotlin.inputs.DatastoreFileFormatConfigurationArgs
import com.pulumi.awsnative.iotanalytics.kotlin.inputs.DatastoreFileFormatConfigurationArgsBuilder
import com.pulumi.awsnative.iotanalytics.kotlin.inputs.DatastorePartitionsArgs
import com.pulumi.awsnative.iotanalytics.kotlin.inputs.DatastorePartitionsArgsBuilder
import com.pulumi.awsnative.iotanalytics.kotlin.inputs.DatastoreRetentionPeriodArgs
import com.pulumi.awsnative.iotanalytics.kotlin.inputs.DatastoreRetentionPeriodArgsBuilder
import com.pulumi.awsnative.iotanalytics.kotlin.inputs.DatastoreStorageArgs
import com.pulumi.awsnative.iotanalytics.kotlin.inputs.DatastoreStorageArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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 Type definition for AWS::IoTAnalytics::Datastore
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property datastoreName The name of the data store.
 * @property datastorePartitions Information about the partition dimensions in a data store.
 * @property datastoreStorage Where data store data is stored.
 * @property fileFormatConfiguration Contains the configuration information of file formats. AWS IoT Analytics data stores support JSON and [Parquet](https://docs.aws.amazon.com/https://parquet.apache.org/) .
 * The default file format is JSON. You can specify only one format.
 * You can't change the file format after you create the data store.
 * @property retentionPeriod How long, in days, message data is kept for the data store. When `customerManagedS3` storage is selected, this parameter is ignored.
 * @property tags Metadata which can be used to manage the data store.
 * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
 */
public data class DatastoreArgs(
    public val datastoreName: Output? = null,
    public val datastorePartitions: Output? = null,
    public val datastoreStorage: Output? = null,
    public val fileFormatConfiguration: Output? = null,
    public val retentionPeriod: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotanalytics.DatastoreArgs =
        com.pulumi.awsnative.iotanalytics.DatastoreArgs.builder()
            .datastoreName(datastoreName?.applyValue({ args0 -> args0 }))
            .datastorePartitions(
                datastorePartitions?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .datastoreStorage(datastoreStorage?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .fileFormatConfiguration(
                fileFormatConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .retentionPeriod(retentionPeriod?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [DatastoreArgs].
 */
@PulumiTagMarker
public class DatastoreArgsBuilder internal constructor() {
    private var datastoreName: Output? = null

    private var datastorePartitions: Output? = null

    private var datastoreStorage: Output? = null

    private var fileFormatConfiguration: Output? = null

    private var retentionPeriod: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The name of the data store.
     */
    @JvmName("svysuyerqexrhbys")
    public suspend fun datastoreName(`value`: Output) {
        this.datastoreName = value
    }

    /**
     * @param value Information about the partition dimensions in a data store.
     */
    @JvmName("grrfgfpxqryovpto")
    public suspend fun datastorePartitions(`value`: Output) {
        this.datastorePartitions = value
    }

    /**
     * @param value Where data store data is stored.
     */
    @JvmName("evkddkcknbcqpgex")
    public suspend fun datastoreStorage(`value`: Output) {
        this.datastoreStorage = value
    }

    /**
     * @param value Contains the configuration information of file formats. AWS IoT Analytics data stores support JSON and [Parquet](https://docs.aws.amazon.com/https://parquet.apache.org/) .
     * The default file format is JSON. You can specify only one format.
     * You can't change the file format after you create the data store.
     */
    @JvmName("vmstdgndapyfpfuq")
    public suspend fun fileFormatConfiguration(`value`: Output) {
        this.fileFormatConfiguration = value
    }

    /**
     * @param value How long, in days, message data is kept for the data store. When `customerManagedS3` storage is selected, this parameter is ignored.
     */
    @JvmName("irieftfxhevltocw")
    public suspend fun retentionPeriod(`value`: Output) {
        this.retentionPeriod = value
    }

    /**
     * @param value Metadata which can be used to manage the data store.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("tsgtqphqesicinlq")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Metadata which can be used to manage the data store.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("llmxnndfkstvjrwa")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The name of the data store.
     */
    @JvmName("eenqfocogweibxjd")
    public suspend fun datastoreName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.datastoreName = mapped
    }

    /**
     * @param value Information about the partition dimensions in a data store.
     */
    @JvmName("gvoiqnohbmdalqjf")
    public suspend fun datastorePartitions(`value`: DatastorePartitionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.datastorePartitions = mapped
    }

    /**
     * @param argument Information about the partition dimensions in a data store.
     */
    @JvmName("kxvstxccvovqcvps")
    public suspend fun datastorePartitions(argument: suspend DatastorePartitionsArgsBuilder.() -> Unit) {
        val toBeMapped = DatastorePartitionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.datastorePartitions = mapped
    }

    /**
     * @param value Where data store data is stored.
     */
    @JvmName("jjeddbhfvkcpculp")
    public suspend fun datastoreStorage(`value`: DatastoreStorageArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.datastoreStorage = mapped
    }

    /**
     * @param argument Where data store data is stored.
     */
    @JvmName("drrysdvlugdfcveo")
    public suspend fun datastoreStorage(argument: suspend DatastoreStorageArgsBuilder.() -> Unit) {
        val toBeMapped = DatastoreStorageArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.datastoreStorage = mapped
    }

    /**
     * @param value Contains the configuration information of file formats. AWS IoT Analytics data stores support JSON and [Parquet](https://docs.aws.amazon.com/https://parquet.apache.org/) .
     * The default file format is JSON. You can specify only one format.
     * You can't change the file format after you create the data store.
     */
    @JvmName("bmnkffsyvivkgfvn")
    public suspend fun fileFormatConfiguration(`value`: DatastoreFileFormatConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fileFormatConfiguration = mapped
    }

    /**
     * @param argument Contains the configuration information of file formats. AWS IoT Analytics data stores support JSON and [Parquet](https://docs.aws.amazon.com/https://parquet.apache.org/) .
     * The default file format is JSON. You can specify only one format.
     * You can't change the file format after you create the data store.
     */
    @JvmName("opeibfspejmwtikk")
    public suspend fun fileFormatConfiguration(argument: suspend DatastoreFileFormatConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = DatastoreFileFormatConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.fileFormatConfiguration = mapped
    }

    /**
     * @param value How long, in days, message data is kept for the data store. When `customerManagedS3` storage is selected, this parameter is ignored.
     */
    @JvmName("hjqdjqixesoqrbss")
    public suspend fun retentionPeriod(`value`: DatastoreRetentionPeriodArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retentionPeriod = mapped
    }

    /**
     * @param argument How long, in days, message data is kept for the data store. When `customerManagedS3` storage is selected, this parameter is ignored.
     */
    @JvmName("wlmdwwjxsyxeycfy")
    public suspend fun retentionPeriod(argument: suspend DatastoreRetentionPeriodArgsBuilder.() -> Unit) {
        val toBeMapped = DatastoreRetentionPeriodArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.retentionPeriod = mapped
    }

    /**
     * @param value Metadata which can be used to manage the data store.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("vosnlvuydtldxrvr")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Metadata which can be used to manage the data store.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("cfgqiisofwtyrdat")
    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 Metadata which can be used to manage the data store.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("ulkcsahkynecmnrw")
    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 Metadata which can be used to manage the data store.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("lbnilnycsrqeepal")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Metadata which can be used to manage the data store.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("wygprhkpjxiecfkt")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): DatastoreArgs = DatastoreArgs(
        datastoreName = datastoreName,
        datastorePartitions = datastorePartitions,
        datastoreStorage = datastoreStorage,
        fileFormatConfiguration = fileFormatConfiguration,
        retentionPeriod = retentionPeriod,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy