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

com.pulumi.awsnative.s3.kotlin.inputs.BucketDataExportArgs.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.s3.kotlin.inputs

import com.pulumi.awsnative.s3.inputs.BucketDataExportArgs.builder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Specifies how data related to the storage class analysis for an Amazon S3 bucket should be exported.
 * @property destination The place to store the data for an analysis.
 * @property outputSchemaVersion The version of the output schema to use when exporting data. Must be ``V_1``.
 */
public data class BucketDataExportArgs(
    public val destination: Output,
    public val outputSchemaVersion: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.s3.inputs.BucketDataExportArgs =
        com.pulumi.awsnative.s3.inputs.BucketDataExportArgs.builder()
            .destination(destination.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .outputSchemaVersion(outputSchemaVersion.applyValue({ args0 -> args0 })).build()
}

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

    private var outputSchemaVersion: Output? = null

    /**
     * @param value The place to store the data for an analysis.
     */
    @JvmName("rvqtybiarpkuymhh")
    public suspend fun destination(`value`: Output) {
        this.destination = value
    }

    /**
     * @param value The version of the output schema to use when exporting data. Must be ``V_1``.
     */
    @JvmName("numgyfudmqqpyfwg")
    public suspend fun outputSchemaVersion(`value`: Output) {
        this.outputSchemaVersion = value
    }

    /**
     * @param value The place to store the data for an analysis.
     */
    @JvmName("eugdxmynyxaqlnqe")
    public suspend fun destination(`value`: BucketDestinationArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.destination = mapped
    }

    /**
     * @param argument The place to store the data for an analysis.
     */
    @JvmName("xfgpveluavkoheak")
    public suspend fun destination(argument: suspend BucketDestinationArgsBuilder.() -> Unit) {
        val toBeMapped = BucketDestinationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.destination = mapped
    }

    /**
     * @param value The version of the output schema to use when exporting data. Must be ``V_1``.
     */
    @JvmName("mqswmqstylvscitb")
    public suspend fun outputSchemaVersion(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.outputSchemaVersion = mapped
    }

    internal fun build(): BucketDataExportArgs = BucketDataExportArgs(
        destination = destination ?: throw PulumiNullFieldException("destination"),
        outputSchemaVersion = outputSchemaVersion ?: throw PulumiNullFieldException("outputSchemaVersion"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy