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);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:
- Operating
System string Operating system that the game server binaries are built to run on. e.g.
WINDOWS_2012orAMAZON_LINUX.- Storage
Location BuildStorage Location Args Information indicating where your game build files are stored. See below.
- Name string
Name of the build
- Dictionary<string, string>
Key-value map of resource tags
- Version string
Version that is associated with this build.
- Operating
System string Operating system that the game server binaries are built to run on. e.g.
WINDOWS_2012orAMAZON_LINUX.- Storage
Location BuildStorage Location Information indicating where your game build files are stored. See below.
- Name string
Name of the build
- map[string]string
Key-value map of resource tags
- Version string
Version that is associated with this build.
- operating
System string Operating system that the game server binaries are built to run on. e.g.
WINDOWS_2012orAMAZON_LINUX.- storage
Location BuildStorage Location Information indicating where your game build files are stored. See below.
- name string
Name of the build
- {[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_2012orAMAZON_LINUX.- storage_
location Dict[BuildStorage Location] Information indicating where your game build files are stored. See below.
- name str
Name of the build
- 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:
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): Buildstatic 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
- Operating
System string Operating system that the game server binaries are built to run on. e.g.
WINDOWS_2012orAMAZON_LINUX.- Storage
Location BuildStorage Location Args Information indicating where your game build files are stored. See below.
- 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
- Operating
System string Operating system that the game server binaries are built to run on. e.g.
WINDOWS_2012orAMAZON_LINUX.- Storage
Location BuildStorage Location Information indicating where your game build files are stored. See below.
- 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
- operating
System string Operating system that the game server binaries are built to run on. e.g.
WINDOWS_2012orAMAZON_LINUX.- storage
Location BuildStorage Location Information indicating where your game build files are stored. See below.
- {[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_2012orAMAZON_LINUX.- storage_
location Dict[BuildStorage Location] Information indicating where your game build files are stored. See below.
- Dict[str, str]
Key-value map of resource tags
- version str
Version that is associated with this build.
Supporting Types
BuildStorageLocation
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.