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

com.pulumi.aws.gamelift.kotlin.inputs.ScriptStorageLocationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.gamelift.kotlin.inputs

import com.pulumi.aws.gamelift.inputs.ScriptStorageLocationArgs.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 Name of your S3 bucket.
 * @property key Name of the zip file containing your script files.
 * @property objectVersion A specific version of the file. If not set, the latest version of the file is retrieved.
 * @property roleArn ARN of the access role that allows Amazon GameLift to access your S3 bucket.
 */
public data class ScriptStorageLocationArgs(
    public val bucket: Output,
    public val key: Output,
    public val objectVersion: Output? = null,
    public val roleArn: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.gamelift.inputs.ScriptStorageLocationArgs =
        com.pulumi.aws.gamelift.inputs.ScriptStorageLocationArgs.builder()
            .bucket(bucket.applyValue({ args0 -> args0 }))
            .key(key.applyValue({ args0 -> args0 }))
            .objectVersion(objectVersion?.applyValue({ args0 -> args0 }))
            .roleArn(roleArn.applyValue({ args0 -> args0 })).build()
}

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

    private var key: Output? = null

    private var objectVersion: Output? = null

    private var roleArn: Output? = null

    /**
     * @param value Name of your S3 bucket.
     */
    @JvmName("sfgisigtumjfpjwl")
    public suspend fun bucket(`value`: Output) {
        this.bucket = value
    }

    /**
     * @param value Name of the zip file containing your script files.
     */
    @JvmName("pnkriltvxysrtade")
    public suspend fun key(`value`: Output) {
        this.key = value
    }

    /**
     * @param value A specific version of the file. If not set, the latest version of the file is retrieved.
     */
    @JvmName("qkxcfqsppessnpim")
    public suspend fun objectVersion(`value`: Output) {
        this.objectVersion = value
    }

    /**
     * @param value ARN of the access role that allows Amazon GameLift to access your S3 bucket.
     */
    @JvmName("mkswkgifwhafjobi")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value Name of your S3 bucket.
     */
    @JvmName("xpfdpdqrxdmfncmh")
    public suspend fun bucket(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bucket = mapped
    }

    /**
     * @param value Name of the zip file containing your script files.
     */
    @JvmName("vbpnpnrxeoxfeyfl")
    public suspend fun key(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.key = mapped
    }

    /**
     * @param value A specific version of the file. If not set, the latest version of the file is retrieved.
     */
    @JvmName("suwnpbfewtoqnipe")
    public suspend fun objectVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.objectVersion = mapped
    }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy