com.pulumi.awsnative.gamelift.kotlin.outputs.GetScriptResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.gamelift.kotlin.outputs
import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property arn The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift script resource and uniquely identifies it. ARNs are unique across all Regions. In a GameLift script ARN, the resource ID matches the Id value.
* @property creationTime A time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057").
* @property id A unique identifier for the Realtime script
* @property name A descriptive label that is associated with a script. Script names do not need to be unique.
* @property sizeOnDisk The file size of the uploaded Realtime script, expressed in bytes. When files are uploaded from an S3 location, this value remains at "0".
* @property storageLocation The location of the Amazon S3 bucket where a zipped file containing your Realtime scripts is stored. The storage location must specify the Amazon S3 bucket name, the zip file name (the "key"), and a role ARN that allows Amazon GameLift to access the Amazon S3 storage location. The S3 bucket must be in the same Region where you want to create a new script. By default, Amazon GameLift uploads the latest version of the zip file; if you have S3 object versioning turned on, you can use the ObjectVersion parameter to specify an earlier version.
* @property tags An array of key-value pairs to apply to this resource.
* @property version The version that is associated with a script. Version strings do not need to be unique.
*/
public data class GetScriptResult(
public val arn: String? = null,
public val creationTime: String? = null,
public val id: String? = null,
public val name: String? = null,
public val sizeOnDisk: Int? = null,
public val storageLocation: ScriptS3Location? = null,
public val tags: List? = null,
public val version: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.gamelift.outputs.GetScriptResult): GetScriptResult = GetScriptResult(
arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
creationTime = javaType.creationTime().map({ args0 -> args0 }).orElse(null),
id = javaType.id().map({ args0 -> args0 }).orElse(null),
name = javaType.name().map({ args0 -> args0 }).orElse(null),
sizeOnDisk = javaType.sizeOnDisk().map({ args0 -> args0 }).orElse(null),
storageLocation = javaType.storageLocation().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.gamelift.kotlin.outputs.ScriptS3Location.Companion.toKotlin(args0)
})
}).orElse(null),
tags = javaType.tags().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
})
}),
version = javaType.version().map({ args0 -> args0 }).orElse(null),
)
}
}