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

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

package com.pulumi.awsnative.kinesisanalyticsv2.kotlin.inputs

import com.pulumi.awsnative.kinesisanalyticsv2.inputs.ApplicationS3ContentLocationArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The location of an application or a custom artifact.
 * @property bucketArn The Amazon Resource Name (ARN) for the S3 bucket containing the application code.
 * @property fileKey The file key for the object containing the application code.
 * @property objectVersion The version of the object containing the application code.
 */
public data class ApplicationS3ContentLocationArgs(
    public val bucketArn: Output,
    public val fileKey: Output,
    public val objectVersion: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.kinesisanalyticsv2.inputs.ApplicationS3ContentLocationArgs =
        com.pulumi.awsnative.kinesisanalyticsv2.inputs.ApplicationS3ContentLocationArgs.builder()
            .bucketArn(bucketArn.applyValue({ args0 -> args0 }))
            .fileKey(fileKey.applyValue({ args0 -> args0 }))
            .objectVersion(objectVersion?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ApplicationS3ContentLocationArgs].
 */
@PulumiTagMarker
public class ApplicationS3ContentLocationArgsBuilder internal constructor() {
    private var bucketArn: Output? = null

    private var fileKey: Output? = null

    private var objectVersion: Output? = null

    /**
     * @param value The Amazon Resource Name (ARN) for the S3 bucket containing the application code.
     */
    @JvmName("jvvsrtmganwuynpe")
    public suspend fun bucketArn(`value`: Output) {
        this.bucketArn = value
    }

    /**
     * @param value The file key for the object containing the application code.
     */
    @JvmName("idvmjterupogmdgq")
    public suspend fun fileKey(`value`: Output) {
        this.fileKey = value
    }

    /**
     * @param value The version of the object containing the application code.
     */
    @JvmName("yfctdlngoxkqxjkx")
    public suspend fun objectVersion(`value`: Output) {
        this.objectVersion = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) for the S3 bucket containing the application code.
     */
    @JvmName("doawngchdynekevt")
    public suspend fun bucketArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bucketArn = mapped
    }

    /**
     * @param value The file key for the object containing the application code.
     */
    @JvmName("naqqhgdqtsbneges")
    public suspend fun fileKey(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fileKey = mapped
    }

    /**
     * @param value The version of the object containing the application code.
     */
    @JvmName("ktvoglmkabxfgsvr")
    public suspend fun objectVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.objectVersion = mapped
    }

    internal fun build(): ApplicationS3ContentLocationArgs = ApplicationS3ContentLocationArgs(
        bucketArn = bucketArn ?: throw PulumiNullFieldException("bucketArn"),
        fileKey = fileKey ?: throw PulumiNullFieldException("fileKey"),
        objectVersion = objectVersion,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy