gcp.gameservices.GameServerDeployment

Explore with Pulumi AI

A game server deployment resource.

To get more information about GameServerDeployment, see:

Example Usage

Game Service Deployment Basic

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var @default = new Gcp.GameServices.GameServerDeployment("default", new()
    {
        DeploymentId = "tf-test-deployment",
        Description = "a deployment description",
    });

});
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/gameservices"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := gameservices.NewGameServerDeployment(ctx, "default", &gameservices.GameServerDeploymentArgs{
			DeploymentId: pulumi.String("tf-test-deployment"),
			Description:  pulumi.String("a deployment description"),
		})
		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.gcp.gameservices.GameServerDeployment;
import com.pulumi.gcp.gameservices.GameServerDeploymentArgs;
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 default_ = new GameServerDeployment("default", GameServerDeploymentArgs.builder()        
            .deploymentId("tf-test-deployment")
            .description("a deployment description")
            .build());

    }
}
import pulumi
import pulumi_gcp as gcp

default = gcp.gameservices.GameServerDeployment("default",
    deployment_id="tf-test-deployment",
    description="a deployment description")
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const _default = new gcp.gameservices.GameServerDeployment("default", {
    deploymentId: "tf-test-deployment",
    description: "a deployment description",
});
resources:
  default:
    type: gcp:gameservices:GameServerDeployment
    properties:
      deploymentId: tf-test-deployment
      description: a deployment description

Create GameServerDeployment Resource

new GameServerDeployment(name: string, args: GameServerDeploymentArgs, opts?: CustomResourceOptions);
@overload
def GameServerDeployment(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         deployment_id: Optional[str] = None,
                         description: Optional[str] = None,
                         labels: Optional[Mapping[str, str]] = None,
                         location: Optional[str] = None,
                         project: Optional[str] = None)
@overload
def GameServerDeployment(resource_name: str,
                         args: GameServerDeploymentArgs,
                         opts: Optional[ResourceOptions] = None)
func NewGameServerDeployment(ctx *Context, name string, args GameServerDeploymentArgs, opts ...ResourceOption) (*GameServerDeployment, error)
public GameServerDeployment(string name, GameServerDeploymentArgs args, CustomResourceOptions? opts = null)
public GameServerDeployment(String name, GameServerDeploymentArgs args)
public GameServerDeployment(String name, GameServerDeploymentArgs args, CustomResourceOptions options)
type: gcp:gameservices:GameServerDeployment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args GameServerDeploymentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args GameServerDeploymentArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args GameServerDeploymentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args GameServerDeploymentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args GameServerDeploymentArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

GameServerDeployment Resource Properties

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

Inputs

The GameServerDeployment resource accepts the following input properties:

DeploymentId string

A unique id for the deployment.


Description string

Human readable description of the game server deployment.

Labels Dictionary<string, string>

The labels associated with this game server deployment. Each label is a key-value pair.

Location string

Location of the Deployment.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

DeploymentId string

A unique id for the deployment.


Description string

Human readable description of the game server deployment.

Labels map[string]string

The labels associated with this game server deployment. Each label is a key-value pair.

Location string

Location of the Deployment.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

deploymentId String

A unique id for the deployment.


description String

Human readable description of the game server deployment.

labels Map<String,String>

The labels associated with this game server deployment. Each label is a key-value pair.

location String

Location of the Deployment.

project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

deploymentId string

A unique id for the deployment.


description string

Human readable description of the game server deployment.

labels {[key: string]: string}

The labels associated with this game server deployment. Each label is a key-value pair.

location string

Location of the Deployment.

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

deployment_id str

A unique id for the deployment.


description str

Human readable description of the game server deployment.

labels Mapping[str, str]

The labels associated with this game server deployment. Each label is a key-value pair.

location str

Location of the Deployment.

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

deploymentId String

A unique id for the deployment.


description String

Human readable description of the game server deployment.

labels Map<String>

The labels associated with this game server deployment. Each label is a key-value pair.

location String

Location of the Deployment.

project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Name string

The resource id of the game server deployment, eg: projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}. For example, projects/my-project/locations/{location}/gameServerDeployments/my-deployment.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The resource id of the game server deployment, eg: projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}. For example, projects/my-project/locations/{location}/gameServerDeployments/my-deployment.

id String

The provider-assigned unique ID for this managed resource.

name String

The resource id of the game server deployment, eg: projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}. For example, projects/my-project/locations/{location}/gameServerDeployments/my-deployment.

id string

The provider-assigned unique ID for this managed resource.

name string

The resource id of the game server deployment, eg: projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}. For example, projects/my-project/locations/{location}/gameServerDeployments/my-deployment.

id str

The provider-assigned unique ID for this managed resource.

name str

The resource id of the game server deployment, eg: projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}. For example, projects/my-project/locations/{location}/gameServerDeployments/my-deployment.

id String

The provider-assigned unique ID for this managed resource.

name String

The resource id of the game server deployment, eg: projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}. For example, projects/my-project/locations/{location}/gameServerDeployments/my-deployment.

Look up Existing GameServerDeployment Resource

Get an existing GameServerDeployment 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?: GameServerDeploymentState, opts?: CustomResourceOptions): GameServerDeployment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        deployment_id: Optional[str] = None,
        description: Optional[str] = None,
        labels: Optional[Mapping[str, str]] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        project: Optional[str] = None) -> GameServerDeployment
func GetGameServerDeployment(ctx *Context, name string, id IDInput, state *GameServerDeploymentState, opts ...ResourceOption) (*GameServerDeployment, error)
public static GameServerDeployment Get(string name, Input<string> id, GameServerDeploymentState? state, CustomResourceOptions? opts = null)
public static GameServerDeployment get(String name, Output<String> id, GameServerDeploymentState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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.
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:
DeploymentId string

A unique id for the deployment.


Description string

Human readable description of the game server deployment.

Labels Dictionary<string, string>

The labels associated with this game server deployment. Each label is a key-value pair.

Location string

Location of the Deployment.

Name string

The resource id of the game server deployment, eg: projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}. For example, projects/my-project/locations/{location}/gameServerDeployments/my-deployment.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

DeploymentId string

A unique id for the deployment.


Description string

Human readable description of the game server deployment.

Labels map[string]string

The labels associated with this game server deployment. Each label is a key-value pair.

Location string

Location of the Deployment.

Name string

The resource id of the game server deployment, eg: projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}. For example, projects/my-project/locations/{location}/gameServerDeployments/my-deployment.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

deploymentId String

A unique id for the deployment.


description String

Human readable description of the game server deployment.

labels Map<String,String>

The labels associated with this game server deployment. Each label is a key-value pair.

location String

Location of the Deployment.

name String

The resource id of the game server deployment, eg: projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}. For example, projects/my-project/locations/{location}/gameServerDeployments/my-deployment.

project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

deploymentId string

A unique id for the deployment.


description string

Human readable description of the game server deployment.

labels {[key: string]: string}

The labels associated with this game server deployment. Each label is a key-value pair.

location string

Location of the Deployment.

name string

The resource id of the game server deployment, eg: projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}. For example, projects/my-project/locations/{location}/gameServerDeployments/my-deployment.

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

deployment_id str

A unique id for the deployment.


description str

Human readable description of the game server deployment.

labels Mapping[str, str]

The labels associated with this game server deployment. Each label is a key-value pair.

location str

Location of the Deployment.

name str

The resource id of the game server deployment, eg: projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}. For example, projects/my-project/locations/{location}/gameServerDeployments/my-deployment.

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

deploymentId String

A unique id for the deployment.


description String

Human readable description of the game server deployment.

labels Map<String>

The labels associated with this game server deployment. Each label is a key-value pair.

location String

Location of the Deployment.

name String

The resource id of the game server deployment, eg: projects/{project_id}/locations/{location}/gameServerDeployments/{deployment_id}. For example, projects/my-project/locations/{location}/gameServerDeployments/my-deployment.

project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Import

GameServerDeployment can be imported using any of these accepted formats

 $ pulumi import gcp:gameservices/gameServerDeployment:GameServerDeployment default projects/{{project}}/locations/{{location}}/gameServerDeployments/{{deployment_id}}
 $ pulumi import gcp:gameservices/gameServerDeployment:GameServerDeployment default {{project}}/{{location}}/{{deployment_id}}
 $ pulumi import gcp:gameservices/gameServerDeployment:GameServerDeployment default {{location}}/{{deployment_id}}

Package Details

Repository
Google Cloud (GCP) Classic pulumi/pulumi-gcp
License
Apache-2.0
Notes

This Pulumi package is based on the google-beta Terraform Provider.