Script

class Script : KotlinCustomResource

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>

Properties

Link copied to clipboard
val arn: Output<String>

GameLift Script ARN.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

Name of the script

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
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>>?

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 tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

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

Version that is associated with this script.

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

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.