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

com.pulumi.awsnative.datasync.kotlin.TaskArgs.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

import com.pulumi.awsnative.datasync.TaskArgs.builder
import com.pulumi.awsnative.datasync.kotlin.inputs.TaskFilterRuleArgs
import com.pulumi.awsnative.datasync.kotlin.inputs.TaskFilterRuleArgsBuilder
import com.pulumi.awsnative.datasync.kotlin.inputs.TaskManifestConfigArgs
import com.pulumi.awsnative.datasync.kotlin.inputs.TaskManifestConfigArgsBuilder
import com.pulumi.awsnative.datasync.kotlin.inputs.TaskOptionsArgs
import com.pulumi.awsnative.datasync.kotlin.inputs.TaskOptionsArgsBuilder
import com.pulumi.awsnative.datasync.kotlin.inputs.TaskReportConfigArgs
import com.pulumi.awsnative.datasync.kotlin.inputs.TaskReportConfigArgsBuilder
import com.pulumi.awsnative.datasync.kotlin.inputs.TaskScheduleArgs
import com.pulumi.awsnative.datasync.kotlin.inputs.TaskScheduleArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource schema for AWS::DataSync::Task.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property cloudWatchLogGroupArn The ARN of the Amazon CloudWatch log group that is used to monitor and log events in the task.
 * @property destinationLocationArn The ARN of an AWS storage resource's location.
 * @property excludes Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. For more information and examples, see [Specifying what DataSync transfers by using filters](https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html) .
 * @property includes Specifies include filters define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see [Specifying what DataSync transfers by using filters](https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html) .
 * @property manifestConfig The configuration of the manifest that lists the files or objects that you want DataSync to transfer. For more information, see [Specifying what DataSync transfers by using a manifest](https://docs.aws.amazon.com/datasync/latest/userguide/transferring-with-manifest.html) .
 * @property name The name of a task. This value is a text reference that is used to identify the task in the console.
 * @property options Specifies your task's settings, such as preserving file metadata, verifying data integrity, among other options.
 * @property schedule Specifies a schedule for when you want your task to run. For more information, see [Scheduling your task](https://docs.aws.amazon.com/datasync/latest/userguide/task-scheduling.html) .
 * @property sourceLocationArn The ARN of the source location for the task.
 * @property tags An array of key-value pairs to apply to this resource.
 * @property taskReportConfig Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. For more information, see [Monitoring your DataSync transfers with task reports](https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html) .
 * When using this parameter, your caller identity (the role that you're using DataSync with) must have the `iam:PassRole` permission. The [AWSDataSyncFullAccess](https://docs.aws.amazon.com/datasync/latest/userguide/security-iam-awsmanpol.html#security-iam-awsmanpol-awsdatasyncfullaccess) policy includes this permission.
 */
public data class TaskArgs(
    public val cloudWatchLogGroupArn: Output? = null,
    public val destinationLocationArn: Output? = null,
    public val excludes: Output>? = null,
    public val includes: Output>? = null,
    public val manifestConfig: Output? = null,
    public val name: Output? = null,
    public val options: Output? = null,
    public val schedule: Output? = null,
    public val sourceLocationArn: Output? = null,
    public val tags: Output>? = null,
    public val taskReportConfig: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.datasync.TaskArgs =
        com.pulumi.awsnative.datasync.TaskArgs.builder()
            .cloudWatchLogGroupArn(cloudWatchLogGroupArn?.applyValue({ args0 -> args0 }))
            .destinationLocationArn(destinationLocationArn?.applyValue({ args0 -> args0 }))
            .excludes(
                excludes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .includes(
                includes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .manifestConfig(manifestConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .options(options?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .schedule(schedule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .sourceLocationArn(sourceLocationArn?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .taskReportConfig(
                taskReportConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [TaskArgs].
 */
@PulumiTagMarker
public class TaskArgsBuilder internal constructor() {
    private var cloudWatchLogGroupArn: Output? = null

    private var destinationLocationArn: Output? = null

    private var excludes: Output>? = null

    private var includes: Output>? = null

    private var manifestConfig: Output? = null

    private var name: Output? = null

    private var options: Output? = null

    private var schedule: Output? = null

    private var sourceLocationArn: Output? = null

    private var tags: Output>? = null

    private var taskReportConfig: Output? = null

    /**
     * @param value The ARN of the Amazon CloudWatch log group that is used to monitor and log events in the task.
     */
    @JvmName("usqkdyaxpadqojdl")
    public suspend fun cloudWatchLogGroupArn(`value`: Output) {
        this.cloudWatchLogGroupArn = value
    }

    /**
     * @param value The ARN of an AWS storage resource's location.
     */
    @JvmName("myysegjxrijrdckh")
    public suspend fun destinationLocationArn(`value`: Output) {
        this.destinationLocationArn = value
    }

    /**
     * @param value Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. For more information and examples, see [Specifying what DataSync transfers by using filters](https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html) .
     */
    @JvmName("lpmatqwpvnnpfhir")
    public suspend fun excludes(`value`: Output>) {
        this.excludes = value
    }

    @JvmName("hraahmruhkqirjfg")
    public suspend fun excludes(vararg values: Output) {
        this.excludes = Output.all(values.asList())
    }

    /**
     * @param values Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. For more information and examples, see [Specifying what DataSync transfers by using filters](https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html) .
     */
    @JvmName("icrkogvbtdqvxedp")
    public suspend fun excludes(values: List>) {
        this.excludes = Output.all(values)
    }

    /**
     * @param value Specifies include filters define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see [Specifying what DataSync transfers by using filters](https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html) .
     */
    @JvmName("rppnqxuyvqmcedkd")
    public suspend fun includes(`value`: Output>) {
        this.includes = value
    }

    @JvmName("cinfbeftgrvfngbe")
    public suspend fun includes(vararg values: Output) {
        this.includes = Output.all(values.asList())
    }

    /**
     * @param values Specifies include filters define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see [Specifying what DataSync transfers by using filters](https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html) .
     */
    @JvmName("cdrqywukemfkwwqf")
    public suspend fun includes(values: List>) {
        this.includes = Output.all(values)
    }

    /**
     * @param value The configuration of the manifest that lists the files or objects that you want DataSync to transfer. For more information, see [Specifying what DataSync transfers by using a manifest](https://docs.aws.amazon.com/datasync/latest/userguide/transferring-with-manifest.html) .
     */
    @JvmName("wmlrtrlirvdboigi")
    public suspend fun manifestConfig(`value`: Output) {
        this.manifestConfig = value
    }

    /**
     * @param value The name of a task. This value is a text reference that is used to identify the task in the console.
     */
    @JvmName("lnfkibyloeykldjc")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Specifies your task's settings, such as preserving file metadata, verifying data integrity, among other options.
     */
    @JvmName("fqqfxmmtxagxcnfs")
    public suspend fun options(`value`: Output) {
        this.options = value
    }

    /**
     * @param value Specifies a schedule for when you want your task to run. For more information, see [Scheduling your task](https://docs.aws.amazon.com/datasync/latest/userguide/task-scheduling.html) .
     */
    @JvmName("rcvitnnqospbastu")
    public suspend fun schedule(`value`: Output) {
        this.schedule = value
    }

    /**
     * @param value The ARN of the source location for the task.
     */
    @JvmName("yhiemeyyedvxctre")
    public suspend fun sourceLocationArn(`value`: Output) {
        this.sourceLocationArn = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("mclathojmpvhcgkb")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("eutosfqxkoielvjd")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("enpffajnqcclbcky")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. For more information, see [Monitoring your DataSync transfers with task reports](https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html) .
     * When using this parameter, your caller identity (the role that you're using DataSync with) must have the `iam:PassRole` permission. The [AWSDataSyncFullAccess](https://docs.aws.amazon.com/datasync/latest/userguide/security-iam-awsmanpol.html#security-iam-awsmanpol-awsdatasyncfullaccess) policy includes this permission.
     */
    @JvmName("tjsnxixfpchyundf")
    public suspend fun taskReportConfig(`value`: Output) {
        this.taskReportConfig = value
    }

    /**
     * @param value The ARN of the Amazon CloudWatch log group that is used to monitor and log events in the task.
     */
    @JvmName("tlcysnmcbqcguvdj")
    public suspend fun cloudWatchLogGroupArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cloudWatchLogGroupArn = mapped
    }

    /**
     * @param value The ARN of an AWS storage resource's location.
     */
    @JvmName("sxqgwfabipqbonpa")
    public suspend fun destinationLocationArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.destinationLocationArn = mapped
    }

    /**
     * @param value Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. For more information and examples, see [Specifying what DataSync transfers by using filters](https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html) .
     */
    @JvmName("ohbupofacoeotluk")
    public suspend fun excludes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.excludes = mapped
    }

    /**
     * @param argument Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. For more information and examples, see [Specifying what DataSync transfers by using filters](https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html) .
     */
    @JvmName("hstusofubuohawae")
    public suspend fun excludes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TaskFilterRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.excludes = mapped
    }

    /**
     * @param argument Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. For more information and examples, see [Specifying what DataSync transfers by using filters](https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html) .
     */
    @JvmName("xcixhdwlfxmpkeom")
    public suspend fun excludes(vararg argument: suspend TaskFilterRuleArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TaskFilterRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.excludes = mapped
    }

    /**
     * @param argument Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. For more information and examples, see [Specifying what DataSync transfers by using filters](https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html) .
     */
    @JvmName("tqgjkxhyrfsxupky")
    public suspend fun excludes(argument: suspend TaskFilterRuleArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TaskFilterRuleArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.excludes = mapped
    }

    /**
     * @param values Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. For more information and examples, see [Specifying what DataSync transfers by using filters](https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html) .
     */
    @JvmName("sxaysujbvdwpnxfv")
    public suspend fun excludes(vararg values: TaskFilterRuleArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.excludes = mapped
    }

    /**
     * @param value Specifies include filters define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see [Specifying what DataSync transfers by using filters](https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html) .
     */
    @JvmName("fwollmdbhtleghuj")
    public suspend fun includes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.includes = mapped
    }

    /**
     * @param argument Specifies include filters define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see [Specifying what DataSync transfers by using filters](https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html) .
     */
    @JvmName("osdksbogpiauljqd")
    public suspend fun includes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TaskFilterRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.includes = mapped
    }

    /**
     * @param argument Specifies include filters define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see [Specifying what DataSync transfers by using filters](https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html) .
     */
    @JvmName("fbshpirygfpqpxtu")
    public suspend fun includes(vararg argument: suspend TaskFilterRuleArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TaskFilterRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.includes = mapped
    }

    /**
     * @param argument Specifies include filters define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see [Specifying what DataSync transfers by using filters](https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html) .
     */
    @JvmName("yuvycnvdndkhntyq")
    public suspend fun includes(argument: suspend TaskFilterRuleArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TaskFilterRuleArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.includes = mapped
    }

    /**
     * @param values Specifies include filters define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see [Specifying what DataSync transfers by using filters](https://docs.aws.amazon.com/datasync/latest/userguide/filtering.html) .
     */
    @JvmName("qikfydvmdneouonc")
    public suspend fun includes(vararg values: TaskFilterRuleArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.includes = mapped
    }

    /**
     * @param value The configuration of the manifest that lists the files or objects that you want DataSync to transfer. For more information, see [Specifying what DataSync transfers by using a manifest](https://docs.aws.amazon.com/datasync/latest/userguide/transferring-with-manifest.html) .
     */
    @JvmName("rvpoqevtjtjntwww")
    public suspend fun manifestConfig(`value`: TaskManifestConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.manifestConfig = mapped
    }

    /**
     * @param argument The configuration of the manifest that lists the files or objects that you want DataSync to transfer. For more information, see [Specifying what DataSync transfers by using a manifest](https://docs.aws.amazon.com/datasync/latest/userguide/transferring-with-manifest.html) .
     */
    @JvmName("pjcmbqtmttltrqka")
    public suspend fun manifestConfig(argument: suspend TaskManifestConfigArgsBuilder.() -> Unit) {
        val toBeMapped = TaskManifestConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.manifestConfig = mapped
    }

    /**
     * @param value The name of a task. This value is a text reference that is used to identify the task in the console.
     */
    @JvmName("eifoibeiweferygx")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Specifies your task's settings, such as preserving file metadata, verifying data integrity, among other options.
     */
    @JvmName("ihilqrkcgpsomjqo")
    public suspend fun options(`value`: TaskOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.options = mapped
    }

    /**
     * @param argument Specifies your task's settings, such as preserving file metadata, verifying data integrity, among other options.
     */
    @JvmName("lpxoaonhpqyjvnqc")
    public suspend fun options(argument: suspend TaskOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = TaskOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.options = mapped
    }

    /**
     * @param value Specifies a schedule for when you want your task to run. For more information, see [Scheduling your task](https://docs.aws.amazon.com/datasync/latest/userguide/task-scheduling.html) .
     */
    @JvmName("xnibfmhylchclnmd")
    public suspend fun schedule(`value`: TaskScheduleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schedule = mapped
    }

    /**
     * @param argument Specifies a schedule for when you want your task to run. For more information, see [Scheduling your task](https://docs.aws.amazon.com/datasync/latest/userguide/task-scheduling.html) .
     */
    @JvmName("raloeqivkurutdly")
    public suspend fun schedule(argument: suspend TaskScheduleArgsBuilder.() -> Unit) {
        val toBeMapped = TaskScheduleArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.schedule = mapped
    }

    /**
     * @param value The ARN of the source location for the task.
     */
    @JvmName("trhijlwydheptwqx")
    public suspend fun sourceLocationArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceLocationArn = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("oraktvbhtotmnrjb")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("ltfhgvxsuejqvbam")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("vwrghochkqwtnofb")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("wvwgmgidrhbcttam")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("wmwifdnlefrililm")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. For more information, see [Monitoring your DataSync transfers with task reports](https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html) .
     * When using this parameter, your caller identity (the role that you're using DataSync with) must have the `iam:PassRole` permission. The [AWSDataSyncFullAccess](https://docs.aws.amazon.com/datasync/latest/userguide/security-iam-awsmanpol.html#security-iam-awsmanpol-awsdatasyncfullaccess) policy includes this permission.
     */
    @JvmName("fgakrmxmhaxnmrqr")
    public suspend fun taskReportConfig(`value`: TaskReportConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.taskReportConfig = mapped
    }

    /**
     * @param argument Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. For more information, see [Monitoring your DataSync transfers with task reports](https://docs.aws.amazon.com/datasync/latest/userguide/task-reports.html) .
     * When using this parameter, your caller identity (the role that you're using DataSync with) must have the `iam:PassRole` permission. The [AWSDataSyncFullAccess](https://docs.aws.amazon.com/datasync/latest/userguide/security-iam-awsmanpol.html#security-iam-awsmanpol-awsdatasyncfullaccess) policy includes this permission.
     */
    @JvmName("nkbwlvptxlgabgwh")
    public suspend fun taskReportConfig(argument: suspend TaskReportConfigArgsBuilder.() -> Unit) {
        val toBeMapped = TaskReportConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.taskReportConfig = mapped
    }

    internal fun build(): TaskArgs = TaskArgs(
        cloudWatchLogGroupArn = cloudWatchLogGroupArn,
        destinationLocationArn = destinationLocationArn,
        excludes = excludes,
        includes = includes,
        manifestConfig = manifestConfig,
        name = name,
        options = options,
        schedule = schedule,
        sourceLocationArn = sourceLocationArn,
        tags = tags,
        taskReportConfig = taskReportConfig,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy