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

com.pulumi.awsnative.gamelift.kotlin.inputs.BuildStorageLocationArgs.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.gamelift.kotlin.inputs

import com.pulumi.awsnative.gamelift.inputs.BuildStorageLocationArgs.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

/**
 *
 * @property bucket An Amazon S3 bucket identifier. This is the name of the S3 bucket.
 * @property key The name of the zip file that contains the build files or script files.
 * @property objectVersion The version of the file, if object versioning is turned on for the bucket. Amazon GameLift uses this information when retrieving files from your S3 bucket. To retrieve a specific version of the file, provide an object version. To retrieve the latest version of the file, do not set this parameter.
 * @property roleArn The Amazon Resource Name (ARN) for an IAM role that allows Amazon GameLift to access the S3 bucket.
 */
public data class BuildStorageLocationArgs(
    public val bucket: Output,
    public val key: Output,
    public val objectVersion: Output? = null,
    public val roleArn: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.gamelift.inputs.BuildStorageLocationArgs =
        com.pulumi.awsnative.gamelift.inputs.BuildStorageLocationArgs.builder()
            .bucket(bucket.applyValue({ args0 -> args0 }))
            .key(key.applyValue({ args0 -> args0 }))
            .objectVersion(objectVersion?.applyValue({ args0 -> args0 }))
            .roleArn(roleArn.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BuildStorageLocationArgs].
 */
@PulumiTagMarker
public class BuildStorageLocationArgsBuilder internal constructor() {
    private var bucket: Output? = null

    private var key: Output? = null

    private var objectVersion: Output? = null

    private var roleArn: Output? = null

    /**
     * @param value An Amazon S3 bucket identifier. This is the name of the S3 bucket.
     */
    @JvmName("nidwwxpixmtjiapg")
    public suspend fun bucket(`value`: Output) {
        this.bucket = value
    }

    /**
     * @param value The name of the zip file that contains the build files or script files.
     */
    @JvmName("vdbtogqxycpbqmtp")
    public suspend fun key(`value`: Output) {
        this.key = value
    }

    /**
     * @param value The version of the file, if object versioning is turned on for the bucket. Amazon GameLift uses this information when retrieving files from your S3 bucket. To retrieve a specific version of the file, provide an object version. To retrieve the latest version of the file, do not set this parameter.
     */
    @JvmName("wxhcddpgkleoumid")
    public suspend fun objectVersion(`value`: Output) {
        this.objectVersion = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) for an IAM role that allows Amazon GameLift to access the S3 bucket.
     */
    @JvmName("sjjgowykkqcuwtqe")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value An Amazon S3 bucket identifier. This is the name of the S3 bucket.
     */
    @JvmName("mbpgcnjycoarvfgv")
    public suspend fun bucket(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bucket = mapped
    }

    /**
     * @param value The name of the zip file that contains the build files or script files.
     */
    @JvmName("urdvalvnrjqxksob")
    public suspend fun key(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.key = mapped
    }

    /**
     * @param value The version of the file, if object versioning is turned on for the bucket. Amazon GameLift uses this information when retrieving files from your S3 bucket. To retrieve a specific version of the file, provide an object version. To retrieve the latest version of the file, do not set this parameter.
     */
    @JvmName("uhiwklbitimyhrhv")
    public suspend fun objectVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.objectVersion = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) for an IAM role that allows Amazon GameLift to access the S3 bucket.
     */
    @JvmName("vtpitwuglexkiice")
    public suspend fun roleArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    internal fun build(): BuildStorageLocationArgs = BuildStorageLocationArgs(
        bucket = bucket ?: throw PulumiNullFieldException("bucket"),
        key = key ?: throw PulumiNullFieldException("key"),
        objectVersion = objectVersion,
        roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy