Script

class Script : KotlinCustomResource

Provides an GameLift Script resource.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.gamelift.Script("example", {
name: "example-script",
storageLocation: {
bucket: exampleAwsS3Bucket.id,
key: exampleAwsS3Object.key,
roleArn: exampleAwsIamRole.arn,
},
});
import pulumi
import pulumi_aws as aws
example = aws.gamelift.Script("example",
name="example-script",
storage_location={
"bucket": example_aws_s3_bucket["id"],
"key": example_aws_s3_object["key"],
"role_arn": example_aws_iam_role["arn"],
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.GameLift.Script("example", new()
{
Name = "example-script",
StorageLocation = new Aws.GameLift.Inputs.ScriptStorageLocationArgs
{
Bucket = exampleAwsS3Bucket.Id,
Key = exampleAwsS3Object.Key,
RoleArn = exampleAwsIamRole.Arn,
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/gamelift"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gamelift.NewScript(ctx, "example", &gamelift.ScriptArgs{
Name: pulumi.String("example-script"),
StorageLocation: &gamelift.ScriptStorageLocationArgs{
Bucket: pulumi.Any(exampleAwsS3Bucket.Id),
Key: pulumi.Any(exampleAwsS3Object.Key),
RoleArn: pulumi.Any(exampleAwsIamRole.Arn),
},
})
if err != nil {
return err
}
return nil
})
}
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()
.name("example-script")
.storageLocation(ScriptStorageLocationArgs.builder()
.bucket(exampleAwsS3Bucket.id())
.key(exampleAwsS3Object.key())
.roleArn(exampleAwsIamRole.arn())
.build())
.build());
}
}
resources:
example:
type: aws:gamelift:Script
properties:
name: example-script
storageLocation:
bucket: ${exampleAwsS3Bucket.id}
key: ${exampleAwsS3Object.key}
roleArn: ${exampleAwsIamRole.arn}

Import

Using pulumi import, import GameLift Scripts using the ID. For example:

$ 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.