GameServerConfig
A game server config resource. Configs are global and immutable.
To get more information about GameServerConfig, see:
- API documentation
- How-to Guides
Create a GameServerConfig Resource
new GameServerConfig(name: string, args: GameServerConfigArgs, opts?: CustomResourceOptions);def GameServerConfig(resource_name, opts=None, config_id=None, deployment_id=None, description=None, fleet_configs=None, labels=None, location=None, project=None, scaling_configs=None, __props__=None);func NewGameServerConfig(ctx *Context, name string, args GameServerConfigArgs, opts ...ResourceOption) (*GameServerConfig, error)public GameServerConfig(string name, GameServerConfigArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args GameServerConfigArgs
- 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 GameServerConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GameServerConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
GameServerConfig Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The GameServerConfig resource accepts the following input properties:
- Config
Id string A unique id for the deployment config.
- Deployment
Id string A unique id for the deployment.
- Fleet
Configs List<GameServer Config Fleet Config Args> The fleet config contains list of fleet specs. In the Single Cloud, there will be only one. Structure is documented below.
- Description string
The description of the game server config.
- Labels Dictionary<string, string>
Set of labels to group by.
- 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.
- Scaling
Configs List<GameServer Config Scaling Config Args> Optional. This contains the autoscaling settings. Structure is documented below.
- Config
Id string A unique id for the deployment config.
- Deployment
Id string A unique id for the deployment.
- Fleet
Configs []GameServer Config Fleet Config The fleet config contains list of fleet specs. In the Single Cloud, there will be only one. Structure is documented below.
- Description string
The description of the game server config.
- Labels map[string]string
Set of labels to group by.
- 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.
- Scaling
Configs []GameServer Config Scaling Config Optional. This contains the autoscaling settings. Structure is documented below.
- config
Id string A unique id for the deployment config.
- deployment
Id string A unique id for the deployment.
- fleet
Configs GameServer Config Fleet Config[] The fleet config contains list of fleet specs. In the Single Cloud, there will be only one. Structure is documented below.
- description string
The description of the game server config.
- labels {[key: string]: string}
Set of labels to group by.
- 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.
- scaling
Configs GameServer Config Scaling Config[] Optional. This contains the autoscaling settings. Structure is documented below.
- config_
id str A unique id for the deployment config.
- deployment_
id str A unique id for the deployment.
- fleet_
configs List[GameServer Config Fleet Config] The fleet config contains list of fleet specs. In the Single Cloud, there will be only one. Structure is documented below.
- description str
The description of the game server config.
- labels Dict[str, str]
Set of labels to group by.
- 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.
- scaling_
configs List[GameServer Config Scaling Config] Optional. This contains the autoscaling settings. Structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the GameServerConfig resource produces the following output properties:
Look up an Existing GameServerConfig Resource
Get an existing GameServerConfig 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?: GameServerConfigState, opts?: CustomResourceOptions): GameServerConfigstatic get(resource_name, id, opts=None, config_id=None, deployment_id=None, description=None, fleet_configs=None, labels=None, location=None, name=None, project=None, scaling_configs=None, __props__=None);func GetGameServerConfig(ctx *Context, name string, id IDInput, state *GameServerConfigState, opts ...ResourceOption) (*GameServerConfig, error)public static GameServerConfig Get(string name, Input<string> id, GameServerConfigState? 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:
- Config
Id string A unique id for the deployment config.
- Deployment
Id string A unique id for the deployment.
- Description string
The description of the game server config.
- Fleet
Configs List<GameServer Config Fleet Config Args> The fleet config contains list of fleet specs. In the Single Cloud, there will be only one. Structure is documented below.
- Labels Dictionary<string, string>
Set of labels to group by.
- Location string
Location of the Deployment.
- Name string
The name of the ScalingConfig
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Scaling
Configs List<GameServer Config Scaling Config Args> Optional. This contains the autoscaling settings. Structure is documented below.
- Config
Id string A unique id for the deployment config.
- Deployment
Id string A unique id for the deployment.
- Description string
The description of the game server config.
- Fleet
Configs []GameServer Config Fleet Config The fleet config contains list of fleet specs. In the Single Cloud, there will be only one. Structure is documented below.
- Labels map[string]string
Set of labels to group by.
- Location string
Location of the Deployment.
- Name string
The name of the ScalingConfig
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Scaling
Configs []GameServer Config Scaling Config Optional. This contains the autoscaling settings. Structure is documented below.
- config
Id string A unique id for the deployment config.
- deployment
Id string A unique id for the deployment.
- description string
The description of the game server config.
- fleet
Configs GameServer Config Fleet Config[] The fleet config contains list of fleet specs. In the Single Cloud, there will be only one. Structure is documented below.
- labels {[key: string]: string}
Set of labels to group by.
- location string
Location of the Deployment.
- name string
The name of the ScalingConfig
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- scaling
Configs GameServer Config Scaling Config[] Optional. This contains the autoscaling settings. Structure is documented below.
- config_
id str A unique id for the deployment config.
- deployment_
id str A unique id for the deployment.
- description str
The description of the game server config.
- fleet_
configs List[GameServer Config Fleet Config] The fleet config contains list of fleet specs. In the Single Cloud, there will be only one. Structure is documented below.
- labels Dict[str, str]
Set of labels to group by.
- location str
Location of the Deployment.
- name str
The name of the ScalingConfig
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- scaling_
configs List[GameServer Config Scaling Config] Optional. This contains the autoscaling settings. Structure is documented below.
Supporting Types
GameServerConfigFleetConfig
- Fleet
Spec string The fleet spec, which is sent to Agones to configure fleet. The spec can be passed as inline json but it is recommended to use a file reference instead. File references can contain the json or yaml format of the fleet spec. Eg: * fleet_spec = jsonencode(yamldecode(file(“fleet_configs.yaml”))) * fleet_spec = file(“fleet_configs.json”) The format of the spec can be found :
https://agones.dev/site/docs/reference/fleet/.- Name string
The name of the ScalingConfig
- Fleet
Spec string The fleet spec, which is sent to Agones to configure fleet. The spec can be passed as inline json but it is recommended to use a file reference instead. File references can contain the json or yaml format of the fleet spec. Eg: * fleet_spec = jsonencode(yamldecode(file(“fleet_configs.yaml”))) * fleet_spec = file(“fleet_configs.json”) The format of the spec can be found :
https://agones.dev/site/docs/reference/fleet/.- Name string
The name of the ScalingConfig
- fleet
Spec string The fleet spec, which is sent to Agones to configure fleet. The spec can be passed as inline json but it is recommended to use a file reference instead. File references can contain the json or yaml format of the fleet spec. Eg: * fleet_spec = jsonencode(yamldecode(file(“fleet_configs.yaml”))) * fleet_spec = file(“fleet_configs.json”) The format of the spec can be found :
https://agones.dev/site/docs/reference/fleet/.- name string
The name of the ScalingConfig
- fleet
Spec str The fleet spec, which is sent to Agones to configure fleet. The spec can be passed as inline json but it is recommended to use a file reference instead. File references can contain the json or yaml format of the fleet spec. Eg: * fleet_spec = jsonencode(yamldecode(file(“fleet_configs.yaml”))) * fleet_spec = file(“fleet_configs.json”) The format of the spec can be found :
https://agones.dev/site/docs/reference/fleet/.- name str
The name of the ScalingConfig
GameServerConfigScalingConfig
- Fleet
Autoscaler stringSpec Fleet autoscaler spec, which is sent to Agones. Example spec can be found : https://agones.dev/site/docs/reference/fleetautoscaler/
- Name string
The name of the ScalingConfig
- Schedules
List<Game
Server Config Scaling Config Schedule Args> The schedules to which this scaling config applies. Structure is documented below.
- Selectors
List<Game
Server Config Scaling Config Selector Args> Labels used to identify the clusters to which this scaling config applies. A cluster is subject to this scaling config if its labels match any of the selector entries. Structure is documented below.
- Fleet
Autoscaler stringSpec Fleet autoscaler spec, which is sent to Agones. Example spec can be found : https://agones.dev/site/docs/reference/fleetautoscaler/
- Name string
The name of the ScalingConfig
- Schedules
[]Game
Server Config Scaling Config Schedule The schedules to which this scaling config applies. Structure is documented below.
- Selectors
[]Game
Server Config Scaling Config Selector Labels used to identify the clusters to which this scaling config applies. A cluster is subject to this scaling config if its labels match any of the selector entries. Structure is documented below.
- fleet
Autoscaler stringSpec Fleet autoscaler spec, which is sent to Agones. Example spec can be found : https://agones.dev/site/docs/reference/fleetautoscaler/
- name string
The name of the ScalingConfig
- schedules
Game
Server Config Scaling Config Schedule[] The schedules to which this scaling config applies. Structure is documented below.
- selectors
Game
Server Config Scaling Config Selector[] Labels used to identify the clusters to which this scaling config applies. A cluster is subject to this scaling config if its labels match any of the selector entries. Structure is documented below.
- fleet
Autoscaler strSpec Fleet autoscaler spec, which is sent to Agones. Example spec can be found : https://agones.dev/site/docs/reference/fleetautoscaler/
- name str
The name of the ScalingConfig
- schedules
List[Game
Server Config Scaling Config Schedule] The schedules to which this scaling config applies. Structure is documented below.
- selectors
List[Game
Server Config Scaling Config Selector] Labels used to identify the clusters to which this scaling config applies. A cluster is subject to this scaling config if its labels match any of the selector entries. Structure is documented below.
GameServerConfigScalingConfigSchedule
- Cron
Job stringDuration The duration for the cron job event. The duration of the event is effective after the cron job’s start time. A duration in seconds with up to nine fractional digits, terminated by ’s’. Example: “3.5s”.
- Cron
Spec string The cron definition of the scheduled event. See https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as defined by the realm.
- End
Time string The end time of the event. A timestamp in RFC3339 UTC “Zulu” format, accurate to nanoseconds. Example: “2014-10-02T15:01:23.045123456Z”.
- Start
Time string The start time of the event. A timestamp in RFC3339 UTC “Zulu” format, accurate to nanoseconds. Example: “2014-10-02T15:01:23.045123456Z”.
- Cron
Job stringDuration The duration for the cron job event. The duration of the event is effective after the cron job’s start time. A duration in seconds with up to nine fractional digits, terminated by ’s’. Example: “3.5s”.
- Cron
Spec string The cron definition of the scheduled event. See https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as defined by the realm.
- End
Time string The end time of the event. A timestamp in RFC3339 UTC “Zulu” format, accurate to nanoseconds. Example: “2014-10-02T15:01:23.045123456Z”.
- Start
Time string The start time of the event. A timestamp in RFC3339 UTC “Zulu” format, accurate to nanoseconds. Example: “2014-10-02T15:01:23.045123456Z”.
- cron
Job stringDuration The duration for the cron job event. The duration of the event is effective after the cron job’s start time. A duration in seconds with up to nine fractional digits, terminated by ’s’. Example: “3.5s”.
- cron
Spec string The cron definition of the scheduled event. See https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as defined by the realm.
- end
Time string The end time of the event. A timestamp in RFC3339 UTC “Zulu” format, accurate to nanoseconds. Example: “2014-10-02T15:01:23.045123456Z”.
- start
Time string The start time of the event. A timestamp in RFC3339 UTC “Zulu” format, accurate to nanoseconds. Example: “2014-10-02T15:01:23.045123456Z”.
- cron
Job strDuration The duration for the cron job event. The duration of the event is effective after the cron job’s start time. A duration in seconds with up to nine fractional digits, terminated by ’s’. Example: “3.5s”.
- cron
Spec str The cron definition of the scheduled event. See https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as defined by the realm.
- end
Time str The end time of the event. A timestamp in RFC3339 UTC “Zulu” format, accurate to nanoseconds. Example: “2014-10-02T15:01:23.045123456Z”.
- start
Time str The start time of the event. A timestamp in RFC3339 UTC “Zulu” format, accurate to nanoseconds. Example: “2014-10-02T15:01:23.045123456Z”.
GameServerConfigScalingConfigSelector
- Labels Dictionary<string, string>
Set of labels to group by.
- Labels map[string]string
Set of labels to group by.
- labels {[key: string]: string}
Set of labels to group by.
- labels Dict[str, str]
Set of labels to group by.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.