ScriptArgs

data class ScriptArgs(val name: Output<String>? = null, val storageLocation: Output<ScriptStorageLocationArgs>? = null, val tags: Output<Map<String, String>>? = null, val version: Output<String>? = null, val zipFile: Output<String>? = null) : ConvertibleToJava<ScriptArgs>

Provides an GameLift Script resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.gamelift.Script;
import com.pulumi.aws.gamelift.ScriptArgs;
import com.pulumi.aws.gamelift.inputs.ScriptStorageLocationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Script("example", ScriptArgs.builder()
.storageLocation(ScriptStorageLocationArgs.builder()
.bucket(aws_s3_bucket.example().id())
.key(aws_s3_object.example().key())
.roleArn(aws_iam_role.example().arn())
.build())
.build());
}
}

Import

GameLift Scripts can be imported using the ID, e.g.,

$ pulumi import aws:gamelift/script:Script example <script-id>

Constructors

Link copied to clipboard
constructor(name: Output<String>? = null, storageLocation: Output<ScriptStorageLocationArgs>? = null, tags: Output<Map<String, String>>? = null, version: Output<String>? = null, zipFile: Output<String>? = null)

Properties

Link copied to clipboard
val name: Output<String>? = null

Name of the script

Link copied to clipboard

Information indicating where your game script files are stored. See below.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val version: Output<String>? = null

Version that is associated with this script.

Link copied to clipboard
val zipFile: Output<String>? = null

A data object containing your Realtime scripts and dependencies as a zip file. The zip file can have one or multiple files. Maximum size of a zip file is 5 MB.

Functions

Link copied to clipboard
open override fun toJava(): ScriptArgs