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

com.pulumi.awsnative.databrew.kotlin.outputs.JobOutput.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.databrew.kotlin.outputs

import com.pulumi.awsnative.databrew.kotlin.enums.JobOutputCompressionFormat
import com.pulumi.awsnative.databrew.kotlin.enums.JobOutputFormat
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property compressionFormat The compression algorithm used to compress the output text of the job.
 * @property format The data format of the output of the job.
 * @property formatOptions Represents options that define how DataBrew formats job output files.
 * @property location The location in Amazon S3 where the job writes its output.
 * @property maxOutputFiles The maximum number of files to be generated by the job and written to the output folder.
 * @property overwrite A value that, if true, means that any data in the location specified for output is overwritten with new output.
 * @property partitionColumns The names of one or more partition columns for the output of the job.
 */
public data class JobOutput(
    public val compressionFormat: JobOutputCompressionFormat? = null,
    public val format: JobOutputFormat? = null,
    public val formatOptions: JobOutputFormatOptions? = null,
    public val location: JobS3Location,
    public val maxOutputFiles: Int? = null,
    public val overwrite: Boolean? = null,
    public val partitionColumns: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.databrew.outputs.JobOutput): JobOutput =
            JobOutput(
                compressionFormat = javaType.compressionFormat().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.databrew.kotlin.enums.JobOutputCompressionFormat.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                format = javaType.format().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.databrew.kotlin.enums.JobOutputFormat.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                formatOptions = javaType.formatOptions().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.databrew.kotlin.outputs.JobOutputFormatOptions.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                location = javaType.location().let({ args0 ->
                    com.pulumi.awsnative.databrew.kotlin.outputs.JobS3Location.Companion.toKotlin(args0)
                }),
                maxOutputFiles = javaType.maxOutputFiles().map({ args0 -> args0 }).orElse(null),
                overwrite = javaType.overwrite().map({ args0 -> args0 }).orElse(null),
                partitionColumns = javaType.partitionColumns().map({ args0 -> args0 }),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy