Google Native
Config
Creates a new game server config in a given project, location, and game server deployment. Game server configs are immutable, and are not applied until referenced in the game server deployment rollout resource.
Create a Config Resource
new Config(name: string, args: ConfigArgs, opts?: CustomResourceOptions);
@overload
def Config(resource_name: str,
opts: Optional[ResourceOptions] = None,
config_id: Optional[str] = None,
description: Optional[str] = None,
fleet_configs: Optional[Sequence[FleetConfigArgs]] = None,
game_server_deployment_id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
scaling_configs: Optional[Sequence[ScalingConfigArgs]] = None)
@overload
def Config(resource_name: str,
args: ConfigArgs,
opts: Optional[ResourceOptions] = None)
func NewConfig(ctx *Context, name string, args ConfigArgs, opts ...ResourceOption) (*Config, error)
public Config(string name, ConfigArgs args, CustomResourceOptions? opts = null)
public Config(String name, ConfigArgs args)
public Config(String name, ConfigArgs args, CustomResourceOptions options)
type: google-native:gameservices/v1:Config
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConfigArgs
- 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 ConfigArgs
- 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 ConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Config 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 Config resource accepts the following input properties:
- Config
Id string Required. The ID of the game server config resource to create.
- Game
Server stringDeployment Id - Description string
The description of the game server config.
- Fleet
Configs List<Pulumi.Google Native. Game Services. V1. Inputs. Fleet Config Args> FleetConfig contains a list of Agones fleet specs. Only one FleetConfig is allowed.
- Labels Dictionary<string, string>
The labels associated with this game server config. Each label is a key-value pair.
- Location string
- Name string
The resource name of the game server config, in the following form:
projects/{project}/locations/{locationId}/gameServerDeployments/{deploymentId}/configs/{configId}
. For example,projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config
.- Project string
- Scaling
Configs List<Pulumi.Google Native. Game Services. V1. Inputs. Scaling Config Args> The autoscaling settings.
- Config
Id string Required. The ID of the game server config resource to create.
- Game
Server stringDeployment Id - Description string
The description of the game server config.
- Fleet
Configs []FleetConfig Args FleetConfig contains a list of Agones fleet specs. Only one FleetConfig is allowed.
- Labels map[string]string
The labels associated with this game server config. Each label is a key-value pair.
- Location string
- Name string
The resource name of the game server config, in the following form:
projects/{project}/locations/{locationId}/gameServerDeployments/{deploymentId}/configs/{configId}
. For example,projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config
.- Project string
- Scaling
Configs []ScalingConfig Args The autoscaling settings.
- config
Id String Required. The ID of the game server config resource to create.
- game
Server StringDeployment Id - description String
The description of the game server config.
- fleet
Configs List<FleetConfig Args> FleetConfig contains a list of Agones fleet specs. Only one FleetConfig is allowed.
- labels Map<String,String>
The labels associated with this game server config. Each label is a key-value pair.
- location String
- name String
The resource name of the game server config, in the following form:
projects/{project}/locations/{locationId}/gameServerDeployments/{deploymentId}/configs/{configId}
. For example,projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config
.- project String
- scaling
Configs List<ScalingConfig Args> The autoscaling settings.
- config
Id string Required. The ID of the game server config resource to create.
- game
Server stringDeployment Id - description string
The description of the game server config.
- fleet
Configs FleetConfig Args[] FleetConfig contains a list of Agones fleet specs. Only one FleetConfig is allowed.
- labels {[key: string]: string}
The labels associated with this game server config. Each label is a key-value pair.
- location string
- name string
The resource name of the game server config, in the following form:
projects/{project}/locations/{locationId}/gameServerDeployments/{deploymentId}/configs/{configId}
. For example,projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config
.- project string
- scaling
Configs ScalingConfig Args[] The autoscaling settings.
- config_
id str Required. The ID of the game server config resource to create.
- game_
server_ strdeployment_ id - description str
The description of the game server config.
- fleet_
configs Sequence[FleetConfig Args] FleetConfig contains a list of Agones fleet specs. Only one FleetConfig is allowed.
- labels Mapping[str, str]
The labels associated with this game server config. Each label is a key-value pair.
- location str
- name str
The resource name of the game server config, in the following form:
projects/{project}/locations/{locationId}/gameServerDeployments/{deploymentId}/configs/{configId}
. For example,projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config
.- project str
- scaling_
configs Sequence[ScalingConfig Args] The autoscaling settings.
- config
Id String Required. The ID of the game server config resource to create.
- game
Server StringDeployment Id - description String
The description of the game server config.
- fleet
Configs List<Property Map> FleetConfig contains a list of Agones fleet specs. Only one FleetConfig is allowed.
- labels Map<String>
The labels associated with this game server config. Each label is a key-value pair.
- location String
- name String
The resource name of the game server config, in the following form:
projects/{project}/locations/{locationId}/gameServerDeployments/{deploymentId}/configs/{configId}
. For example,projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config
.- project String
- scaling
Configs List<Property Map> The autoscaling settings.
Outputs
All input properties are implicitly available as output properties. Additionally, the Config resource produces the following output properties:
- Create
Time string The creation time.
- Id string
The provider-assigned unique ID for this managed resource.
- Update
Time string The last-modified time.
- Create
Time string The creation time.
- Id string
The provider-assigned unique ID for this managed resource.
- Update
Time string The last-modified time.
- create
Time String The creation time.
- id String
The provider-assigned unique ID for this managed resource.
- update
Time String The last-modified time.
- create
Time string The creation time.
- id string
The provider-assigned unique ID for this managed resource.
- update
Time string The last-modified time.
- create_
time str The creation time.
- id str
The provider-assigned unique ID for this managed resource.
- update_
time str The last-modified time.
- create
Time String The creation time.
- id String
The provider-assigned unique ID for this managed resource.
- update
Time String The last-modified time.
Supporting Types
FleetConfig
- Fleet
Spec string Agones fleet spec (see example spec).
- Name string
The name of the FleetConfig.
- Fleet
Spec string Agones fleet spec (see example spec).
- Name string
The name of the FleetConfig.
- fleet
Spec String Agones fleet spec (see example spec).
- name String
The name of the FleetConfig.
- fleet
Spec string Agones fleet spec (see example spec).
- name string
The name of the FleetConfig.
- fleet_
spec str Agones fleet spec (see example spec).
- name str
The name of the FleetConfig.
- fleet
Spec String Agones fleet spec (see example spec).
- name String
The name of the FleetConfig.
FleetConfigResponse
- Fleet
Spec string Agones fleet spec (see example spec).
- Name string
The name of the FleetConfig.
- Fleet
Spec string Agones fleet spec (see example spec).
- Name string
The name of the FleetConfig.
- fleet
Spec String Agones fleet spec (see example spec).
- name String
The name of the FleetConfig.
- fleet
Spec string Agones fleet spec (see example spec).
- name string
The name of the FleetConfig.
- fleet_
spec str Agones fleet spec (see example spec).
- name str
The name of the FleetConfig.
- fleet
Spec String Agones fleet spec (see example spec).
- name String
The name of the FleetConfig.
LabelSelector
- Labels Dictionary<string, string>
Resource labels for this selector.
- Labels map[string]string
Resource labels for this selector.
- labels Map<String,String>
Resource labels for this selector.
- labels {[key: string]: string}
Resource labels for this selector.
- labels Mapping[str, str]
Resource labels for this selector.
- labels Map<String>
Resource labels for this selector.
LabelSelectorResponse
- Labels Dictionary<string, string>
Resource labels for this selector.
- Labels map[string]string
Resource labels for this selector.
- labels Map<String,String>
Resource labels for this selector.
- labels {[key: string]: string}
Resource labels for this selector.
- labels Mapping[str, str]
Resource labels for this selector.
- labels Map<String>
Resource labels for this selector.
ScalingConfig
- Fleet
Autoscaler stringSpec Agones fleet autoscaler spec (see example spec).
- Name string
The name of the scaling config.
- Schedules
List<Pulumi.
Google Native. Game Services. V1. Inputs. Schedule> The schedules to which this scaling config applies.
- Selectors
List<Pulumi.
Google Native. Game Services. V1. Inputs. Label Selector> Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
- Fleet
Autoscaler stringSpec Agones fleet autoscaler spec (see example spec).
- Name string
The name of the scaling config.
- Schedules []Schedule
The schedules to which this scaling config applies.
- Selectors
[]Label
Selector Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
- fleet
Autoscaler StringSpec Agones fleet autoscaler spec (see example spec).
- name String
The name of the scaling config.
- schedules List<Schedule>
The schedules to which this scaling config applies.
- selectors
List<Label
Selector> Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
- fleet
Autoscaler stringSpec Agones fleet autoscaler spec (see example spec).
- name string
The name of the scaling config.
- schedules Schedule[]
The schedules to which this scaling config applies.
- selectors
Label
Selector[] Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
- fleet_
autoscaler_ strspec Agones fleet autoscaler spec (see example spec).
- name str
The name of the scaling config.
- schedules Sequence[Schedule]
The schedules to which this scaling config applies.
- selectors
Sequence[Label
Selector] Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
- fleet
Autoscaler StringSpec Agones fleet autoscaler spec (see example spec).
- name String
The name of the scaling config.
- schedules List<Property Map>
The schedules to which this scaling config applies.
- selectors List<Property Map>
Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
ScalingConfigResponse
- Fleet
Autoscaler stringSpec Agones fleet autoscaler spec (see example spec).
- Name string
The name of the scaling config.
- Schedules
List<Pulumi.
Google Native. Game Services. V1. Inputs. Schedule Response> The schedules to which this scaling config applies.
- Selectors
List<Pulumi.
Google Native. Game Services. V1. Inputs. Label Selector Response> Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
- Fleet
Autoscaler stringSpec Agones fleet autoscaler spec (see example spec).
- Name string
The name of the scaling config.
- Schedules
[]Schedule
Response The schedules to which this scaling config applies.
- Selectors
[]Label
Selector Response Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
- fleet
Autoscaler StringSpec Agones fleet autoscaler spec (see example spec).
- name String
The name of the scaling config.
- schedules
List<Schedule
Response> The schedules to which this scaling config applies.
- selectors
List<Label
Selector Response> Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
- fleet
Autoscaler stringSpec Agones fleet autoscaler spec (see example spec).
- name string
The name of the scaling config.
- schedules
Schedule
Response[] The schedules to which this scaling config applies.
- selectors
Label
Selector Response[] Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
- fleet_
autoscaler_ strspec Agones fleet autoscaler spec (see example spec).
- name str
The name of the scaling config.
- schedules
Sequence[Schedule
Response] The schedules to which this scaling config applies.
- selectors
Sequence[Label
Selector Response] Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
- fleet
Autoscaler StringSpec Agones fleet autoscaler spec (see example spec).
- name String
The name of the scaling config.
- schedules List<Property Map>
The schedules to which this scaling config applies.
- selectors List<Property Map>
Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
Schedule
- Cron
Job stringDuration The duration for the cron job event. The duration of the event is effective after the cron job's start time.
- Cron
Spec string The cron definition of the scheduled event. See https://en.wikipedia.org/wiki/Cron. The cron spec specifies the local time as defined by the realm.
- End
Time string The end time of the event.
- Start
Time string The start time of the event.
- Cron
Job stringDuration The duration for the cron job event. The duration of the event is effective after the cron job's start time.
- Cron
Spec string The cron definition of the scheduled event. See https://en.wikipedia.org/wiki/Cron. The cron spec specifies the local time as defined by the realm.
- End
Time string The end time of the event.
- Start
Time string The start time of the event.
- cron
Job StringDuration The duration for the cron job event. The duration of the event is effective after the cron job's start time.
- cron
Spec String The cron definition of the scheduled event. See https://en.wikipedia.org/wiki/Cron. The cron spec specifies the local time as defined by the realm.
- end
Time String The end time of the event.
- start
Time String The start time of the event.
- cron
Job stringDuration The duration for the cron job event. The duration of the event is effective after the cron job's start time.
- cron
Spec string The cron definition of the scheduled event. See https://en.wikipedia.org/wiki/Cron. The cron spec specifies the local time as defined by the realm.
- end
Time string The end time of the event.
- start
Time string The start time of the event.
- cron_
job_ strduration The duration for the cron job event. The duration of the event is effective after the cron job's start time.
- cron_
spec str The cron definition of the scheduled event. See https://en.wikipedia.org/wiki/Cron. The cron spec specifies the local time as defined by the realm.
- end_
time str The end time of the event.
- start_
time str The start time of the event.
- cron
Job StringDuration The duration for the cron job event. The duration of the event is effective after the cron job's start time.
- cron
Spec String The cron definition of the scheduled event. See https://en.wikipedia.org/wiki/Cron. The cron spec specifies the local time as defined by the realm.
- end
Time String The end time of the event.
- start
Time String The start time of the event.
ScheduleResponse
- Cron
Job stringDuration The duration for the cron job event. The duration of the event is effective after the cron job's start time.
- Cron
Spec string The cron definition of the scheduled event. See https://en.wikipedia.org/wiki/Cron. The cron spec specifies the local time as defined by the realm.
- End
Time string The end time of the event.
- Start
Time string The start time of the event.
- Cron
Job stringDuration The duration for the cron job event. The duration of the event is effective after the cron job's start time.
- Cron
Spec string The cron definition of the scheduled event. See https://en.wikipedia.org/wiki/Cron. The cron spec specifies the local time as defined by the realm.
- End
Time string The end time of the event.
- Start
Time string The start time of the event.
- cron
Job StringDuration The duration for the cron job event. The duration of the event is effective after the cron job's start time.
- cron
Spec String The cron definition of the scheduled event. See https://en.wikipedia.org/wiki/Cron. The cron spec specifies the local time as defined by the realm.
- end
Time String The end time of the event.
- start
Time String The start time of the event.
- cron
Job stringDuration The duration for the cron job event. The duration of the event is effective after the cron job's start time.
- cron
Spec string The cron definition of the scheduled event. See https://en.wikipedia.org/wiki/Cron. The cron spec specifies the local time as defined by the realm.
- end
Time string The end time of the event.
- start
Time string The start time of the event.
- cron_
job_ strduration The duration for the cron job event. The duration of the event is effective after the cron job's start time.
- cron_
spec str The cron definition of the scheduled event. See https://en.wikipedia.org/wiki/Cron. The cron spec specifies the local time as defined by the realm.
- end_
time str The end time of the event.
- start_
time str The start time of the event.
- cron
Job StringDuration The duration for the cron job event. The duration of the event is effective after the cron job's start time.
- cron
Spec String The cron definition of the scheduled event. See https://en.wikipedia.org/wiki/Cron. The cron spec specifies the local time as defined by the realm.
- end
Time String The end time of the event.
- start
Time String The start time of the event.
Package Details
- Repository
- https://github.com/pulumi/pulumi-google-native
- License
- Apache-2.0