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

com.pulumi.awsnative.datasync.kotlin.outputs.TaskReportConfig.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.datasync.kotlin.outputs

import com.pulumi.awsnative.datasync.kotlin.enums.TaskReportConfigObjectVersionIds
import com.pulumi.awsnative.datasync.kotlin.enums.TaskReportConfigOutputType
import com.pulumi.awsnative.datasync.kotlin.enums.TaskReportConfigReportLevel
import kotlin.Suppress

/**
 * Specifies how you want to configure a task report, which provides detailed information about for your Datasync transfer.
 * @property destination Specifies where DataSync uploads your task report.
 * @property objectVersionIds Specifies whether your task report includes the new version of each object transferred into an S3 bucket, this only applies if you enable versioning on your bucket.
 * @property outputType Specifies the type of task report that you want.
 * @property overrides Customizes the reporting level for aspects of your task report. For example, your report might generally only include errors, but you could specify that you want a list of successes and errors just for the files that Datasync attempted to delete in your destination location.
 * @property reportLevel Specifies whether you want your task report to include only what went wrong with your transfer or a list of what succeeded and didn't.
 */
public data class TaskReportConfig(
    public val destination: TaskReportConfigDestinationProperties,
    public val objectVersionIds: TaskReportConfigObjectVersionIds? = null,
    public val outputType: TaskReportConfigOutputType,
    public val overrides: TaskReportConfigOverridesProperties? = null,
    public val reportLevel: TaskReportConfigReportLevel? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.datasync.outputs.TaskReportConfig): TaskReportConfig = TaskReportConfig(
            destination = javaType.destination().let({ args0 ->
                com.pulumi.awsnative.datasync.kotlin.outputs.TaskReportConfigDestinationProperties.Companion.toKotlin(args0)
            }),
            objectVersionIds = javaType.objectVersionIds().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.datasync.kotlin.enums.TaskReportConfigObjectVersionIds.Companion.toKotlin(args0)
                })
            }).orElse(null),
            outputType = javaType.outputType().let({ args0 ->
                com.pulumi.awsnative.datasync.kotlin.enums.TaskReportConfigOutputType.Companion.toKotlin(args0)
            }),
            overrides = javaType.overrides().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.datasync.kotlin.outputs.TaskReportConfigOverridesProperties.Companion.toKotlin(args0)
                })
            }).orElse(null),
            reportLevel = javaType.reportLevel().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.datasync.kotlin.enums.TaskReportConfigReportLevel.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy