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

com.pulumi.awsnative.datasync.kotlin.inputs.TaskReportConfigArgs.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.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.datasync.kotlin.inputs

import com.pulumi.awsnative.datasync.inputs.TaskReportConfigArgs.builder
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 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 com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * 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 TaskReportConfigArgs(
    public val destination: Output,
    public val objectVersionIds: Output? = null,
    public val outputType: Output,
    public val overrides: Output? = null,
    public val reportLevel: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.datasync.inputs.TaskReportConfigArgs =
        com.pulumi.awsnative.datasync.inputs.TaskReportConfigArgs.builder()
            .destination(destination.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .objectVersionIds(objectVersionIds?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .outputType(outputType.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .overrides(overrides?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .reportLevel(reportLevel?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [TaskReportConfigArgs].
 */
@PulumiTagMarker
public class TaskReportConfigArgsBuilder internal constructor() {
    private var destination: Output? = null

    private var objectVersionIds: Output? = null

    private var outputType: Output? = null

    private var overrides: Output? = null

    private var reportLevel: Output? = null

    /**
     * @param value Specifies where DataSync uploads your task report.
     */
    @JvmName("mlxheoqarlbateom")
    public suspend fun destination(`value`: Output) {
        this.destination = value
    }

    /**
     * @param value 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.
     */
    @JvmName("dxknndjwfrdufghp")
    public suspend fun objectVersionIds(`value`: Output) {
        this.objectVersionIds = value
    }

    /**
     * @param value Specifies the type of task report that you want.
     */
    @JvmName("thjacpaasfwppfpo")
    public suspend fun outputType(`value`: Output) {
        this.outputType = value
    }

    /**
     * @param value 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.
     */
    @JvmName("howjwalbnufuabki")
    public suspend fun overrides(`value`: Output) {
        this.overrides = value
    }

    /**
     * @param value 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.
     */
    @JvmName("gdgdirafjrgpbwkp")
    public suspend fun reportLevel(`value`: Output) {
        this.reportLevel = value
    }

    /**
     * @param value Specifies where DataSync uploads your task report.
     */
    @JvmName("wuckybxbbfkxmwhn")
    public suspend fun destination(`value`: TaskReportConfigDestinationPropertiesArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.destination = mapped
    }

    /**
     * @param argument Specifies where DataSync uploads your task report.
     */
    @JvmName("sjbqytgddumbgypl")
    public suspend fun destination(argument: suspend TaskReportConfigDestinationPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = TaskReportConfigDestinationPropertiesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.destination = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("cugfrfumtloshkqr")
    public suspend fun objectVersionIds(`value`: TaskReportConfigObjectVersionIds?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.objectVersionIds = mapped
    }

    /**
     * @param value Specifies the type of task report that you want.
     */
    @JvmName("upmskiriegxjduhy")
    public suspend fun outputType(`value`: TaskReportConfigOutputType) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.outputType = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("mhffrkqnavfibwkg")
    public suspend fun overrides(`value`: TaskReportConfigOverridesPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.overrides = mapped
    }

    /**
     * @param argument 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.
     */
    @JvmName("xfowonffkuexkowi")
    public suspend fun overrides(argument: suspend TaskReportConfigOverridesPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = TaskReportConfigOverridesPropertiesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.overrides = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("omidcshlfsanhsxu")
    public suspend fun reportLevel(`value`: TaskReportConfigReportLevel?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.reportLevel = mapped
    }

    internal fun build(): TaskReportConfigArgs = TaskReportConfigArgs(
        destination = destination ?: throw PulumiNullFieldException("destination"),
        objectVersionIds = objectVersionIds,
        outputType = outputType ?: throw PulumiNullFieldException("outputType"),
        overrides = overrides,
        reportLevel = reportLevel,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy