Build

Provides an Gamelift Build resource.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var test = new Aws.GameLift.Build("test", new Aws.GameLift.BuildArgs
        {
            OperatingSystem = "WINDOWS_2012",
            StorageLocation = new Aws.GameLift.Inputs.BuildStorageLocationArgs
            {
                Bucket = aws_s3_bucket.Test.Bucket,
                Key = aws_s3_bucket_object.Test.Key,
                RoleArn = aws_iam_role.Test.Arn,
            },
        }, new CustomResourceOptions
        {
            DependsOn = 
            {
                "aws_iam_role_policy.test",
            },
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/gamelift"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := gamelift.NewBuild(ctx, "test", &gamelift.BuildArgs{
            OperatingSystem: pulumi.String("WINDOWS_2012"),
            StorageLocation: &gamelift.BuildStorageLocationArgs{
                Bucket:  pulumi.String(aws_s3_bucket.Test.Bucket),
                Key:     pulumi.String(aws_s3_bucket_object.Test.Key),
                RoleArn: pulumi.String(aws_iam_role.Test.Arn),
            },
        }, pulumi.DependsOn([]pulumi.Resource{
            "aws_iam_role_policy.test",
        }))
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

test = aws.gamelift.Build("test",
    operating_system="WINDOWS_2012",
    storage_location={
        "bucket": aws_s3_bucket["test"]["bucket"],
        "key": aws_s3_bucket_object["test"]["key"],
        "role_arn": aws_iam_role["test"]["arn"],
    },
    opts=ResourceOptions(depends_on=["aws_iam_role_policy.test"]))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const test = new aws.gamelift.Build("test", {
    operatingSystem: "WINDOWS_2012",
    storageLocation: {
        bucket: aws_s3_bucket.test.bucket,
        key: aws_s3_bucket_object.test.key,
        roleArn: aws_iam_role.test.arn,
    },
}, {
    dependsOn: ["aws_iam_role_policy.test"],
});

Create a Build Resource

new Build(name: string, args: BuildArgs, opts?: CustomResourceOptions);
def Build(resource_name, opts=None, name=None, operating_system=None, storage_location=None, tags=None, version=None, __props__=None);
func NewBuild(ctx *Context, name string, args BuildArgs, opts ...ResourceOption) (*Build, error)
public Build(string name, BuildArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args BuildArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args BuildArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args BuildArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Build Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Build resource accepts the following input properties:

OperatingSystem string

Operating system that the game server binaries are built to run on. e.g. WINDOWS_2012 or AMAZON_LINUX.

StorageLocation BuildStorageLocationArgs

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

Name string

Name of the build

Tags Dictionary<string, string>

Key-value map of resource tags

Version string

Version that is associated with this build.

OperatingSystem string

Operating system that the game server binaries are built to run on. e.g. WINDOWS_2012 or AMAZON_LINUX.

StorageLocation BuildStorageLocation

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

Name string

Name of the build

Tags map[string]string

Key-value map of resource tags

Version string

Version that is associated with this build.

operatingSystem string

Operating system that the game server binaries are built to run on. e.g. WINDOWS_2012 or AMAZON_LINUX.

storageLocation BuildStorageLocation

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

name string

Name of the build

tags {[key: string]: string}

Key-value map of resource tags

version string

Version that is associated with this build.

operating_system str

Operating system that the game server binaries are built to run on. e.g. WINDOWS_2012 or AMAZON_LINUX.

storage_location Dict[BuildStorageLocation]

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

name str

Name of the build

tags Dict[str, str]

Key-value map of resource tags

version str

Version that is associated with this build.

Outputs

All input properties are implicitly available as output properties. Additionally, the Build resource produces the following output properties:

Arn string

Gamelift Build ARN.

Id string
The provider-assigned unique ID for this managed resource.
Arn string

Gamelift Build ARN.

Id string
The provider-assigned unique ID for this managed resource.
arn string

Gamelift Build ARN.

id string
The provider-assigned unique ID for this managed resource.
arn str

Gamelift Build ARN.

id str
The provider-assigned unique ID for this managed resource.

Look up an Existing Build Resource

Get an existing Build resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: BuildState, opts?: CustomResourceOptions): Build
static get(resource_name, id, opts=None, arn=None, name=None, operating_system=None, storage_location=None, tags=None, version=None, __props__=None);
func GetBuild(ctx *Context, name string, id IDInput, state *BuildState, opts ...ResourceOption) (*Build, error)
public static Build Get(string name, Input<string> id, BuildState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Arn string

Gamelift Build ARN.

Name string

Name of the build

OperatingSystem string

Operating system that the game server binaries are built to run on. e.g. WINDOWS_2012 or AMAZON_LINUX.

StorageLocation BuildStorageLocationArgs

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

Tags Dictionary<string, string>

Key-value map of resource tags

Version string

Version that is associated with this build.

Arn string

Gamelift Build ARN.

Name string

Name of the build

OperatingSystem string

Operating system that the game server binaries are built to run on. e.g. WINDOWS_2012 or AMAZON_LINUX.

StorageLocation BuildStorageLocation

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

Tags map[string]string

Key-value map of resource tags

Version string

Version that is associated with this build.

arn string

Gamelift Build ARN.

name string

Name of the build

operatingSystem string

Operating system that the game server binaries are built to run on. e.g. WINDOWS_2012 or AMAZON_LINUX.

storageLocation BuildStorageLocation

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

tags {[key: string]: string}

Key-value map of resource tags

version string

Version that is associated with this build.

arn str

Gamelift Build ARN.

name str

Name of the build

operating_system str

Operating system that the game server binaries are built to run on. e.g. WINDOWS_2012 or AMAZON_LINUX.

storage_location Dict[BuildStorageLocation]

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

tags Dict[str, str]

Key-value map of resource tags

version str

Version that is associated with this build.

Supporting Types

BuildStorageLocation

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Bucket string

Name of your S3 bucket.

Key string

Name of the zip file containing your build files.

RoleArn string

ARN of the access role that allows Amazon GameLift to access your S3 bucket.

Bucket string

Name of your S3 bucket.

Key string

Name of the zip file containing your build files.

RoleArn string

ARN of the access role that allows Amazon GameLift to access your S3 bucket.

bucket string

Name of your S3 bucket.

key string

Name of the zip file containing your build files.

roleArn string

ARN of the access role that allows Amazon GameLift to access your S3 bucket.

bucket str

Name of your S3 bucket.

key str

Name of the zip file containing your build files.

role_arn str

ARN of the access role that allows Amazon GameLift to access your S3 bucket.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.