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

com.pulumi.awsnative.dynamodb.kotlin.inputs.TableKinesisStreamSpecificationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.dynamodb.kotlin.inputs

import com.pulumi.awsnative.dynamodb.inputs.TableKinesisStreamSpecificationArgs.builder
import com.pulumi.awsnative.dynamodb.kotlin.enums.TableKinesisStreamSpecificationApproximateCreationDateTimePrecision
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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The Kinesis Data Streams configuration for the specified table.
 * @property approximateCreationDateTimePrecision The precision for the time and date that the stream was created.
 * @property streamArn The ARN for a specific Kinesis data stream.
 *  Length Constraints: Minimum length of 37. Maximum length of 1024.
 */
public data class TableKinesisStreamSpecificationArgs(
    public val approximateCreationDateTimePrecision: Output? = null,
    public val streamArn: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.dynamodb.inputs.TableKinesisStreamSpecificationArgs =
        com.pulumi.awsnative.dynamodb.inputs.TableKinesisStreamSpecificationArgs.builder()
            .approximateCreationDateTimePrecision(
                approximateCreationDateTimePrecision?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .streamArn(streamArn.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TableKinesisStreamSpecificationArgs].
 */
@PulumiTagMarker
public class TableKinesisStreamSpecificationArgsBuilder internal constructor() {
    private var approximateCreationDateTimePrecision:
        Output? = null

    private var streamArn: Output? = null

    /**
     * @param value The precision for the time and date that the stream was created.
     */
    @JvmName("aagisamchjgqaaqr")
    public suspend fun approximateCreationDateTimePrecision(`value`: Output) {
        this.approximateCreationDateTimePrecision = value
    }

    /**
     * @param value The ARN for a specific Kinesis data stream.
     *  Length Constraints: Minimum length of 37. Maximum length of 1024.
     */
    @JvmName("cvfejtmknwfbkcwu")
    public suspend fun streamArn(`value`: Output) {
        this.streamArn = value
    }

    /**
     * @param value The precision for the time and date that the stream was created.
     */
    @JvmName("ydeieqnlxlvbdexm")
    public suspend fun approximateCreationDateTimePrecision(`value`: TableKinesisStreamSpecificationApproximateCreationDateTimePrecision?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.approximateCreationDateTimePrecision = mapped
    }

    /**
     * @param value The ARN for a specific Kinesis data stream.
     *  Length Constraints: Minimum length of 37. Maximum length of 1024.
     */
    @JvmName("pgiiwtncouhhesnd")
    public suspend fun streamArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.streamArn = mapped
    }

    internal fun build(): TableKinesisStreamSpecificationArgs = TableKinesisStreamSpecificationArgs(
        approximateCreationDateTimePrecision = approximateCreationDateTimePrecision,
        streamArn = streamArn ?: throw PulumiNullFieldException("streamArn"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy