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

com.pulumi.awsnative.dynamodb.kotlin.outputs.TableImportSourceSpecification.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.dynamodb.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 * Specifies the properties of data being imported from the S3 bucket source to the table.
 * @property inputCompressionType Type of compression to be used on the input coming from the imported table.
 * @property inputFormat The format of the source data. Valid values for ``ImportFormat`` are ``CSV``, ``DYNAMODB_JSON`` or ``ION``.
 * @property inputFormatOptions Additional properties that specify how the input is formatted,
 * @property s3BucketSource The S3 bucket that provides the source for the import.
 */
public data class TableImportSourceSpecification(
    public val inputCompressionType: String? = null,
    public val inputFormat: String,
    public val inputFormatOptions: TableInputFormatOptions? = null,
    public val s3BucketSource: TableS3BucketSource,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.dynamodb.outputs.TableImportSourceSpecification): TableImportSourceSpecification = TableImportSourceSpecification(
            inputCompressionType = javaType.inputCompressionType().map({ args0 -> args0 }).orElse(null),
            inputFormat = javaType.inputFormat(),
            inputFormatOptions = javaType.inputFormatOptions().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.dynamodb.kotlin.outputs.TableInputFormatOptions.Companion.toKotlin(args0)
                })
            }).orElse(null),
            s3BucketSource = javaType.s3BucketSource().let({ args0 ->
                com.pulumi.awsnative.dynamodb.kotlin.outputs.TableS3BucketSource.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy