// This operation is used with the Amazon GameLift FleetIQ solution and game server
// groups. Updates information about a registered game server to help GameLift
// FleetIQ to track game server availability. This operation is called by a game
// server process that is running on an instance in a game server group. Use this
// operation to update the following types of game server information. You can make
// all three types of updates in the same request:
//
// * To update the game server's
// utilization status, identify the game server and game server group and specify
// the current utilization status. Use this status to identify when game servers
// are currently hosting games and when they are available to be claimed.
//
// * To
// report health status, identify the game server and game server group and set
// health check to HEALTHY. If a game server does not report health status for a
// certain length of time, the game server is no longer considered healthy. As a
// result, it will be eventually deregistered from the game server group to avoid
// affecting utilization metrics. The best practice is to report health every 60
// seconds.
//
// * To change game server metadata, provide updated game server
// data.
//
// Once a game server is successfully updated, the relevant statuses and
// timestamps are updated. Learn more GameLift FleetIQ Guide
// (https://docs.aws.amazon.com/gamelift/latest/fleetiqguide/gsg-intro.html)
// Related operations
//
// * RegisterGameServer
//
// * ListGameServers
//
// *
// ClaimGameServer
//
// * DescribeGameServer
//
// * UpdateGameServer
//
// *
// DeregisterGameServer
This operation is used with the Amazon GameLift FleetIQ solution and game server
groups. Updates information about a registered game server to help GameLift
FleetIQ to track game server availability. This operation is called by a game
server process that is running on an instance in a game server group. Use this
operation to update the following types of game server information. You can make
all three types of updates in the same request.

To update the game server's
utilization status, identify the game server and game server group and specify
the current utilization status. Use this status to identify when game servers
are currently hosting games and when they are available to be claimed.

To
report health status, identify the game server and game server group and set
health check to HEALTHY. If a game server does not report health status for a
certain length of time, the game server is no longer considered healthy. As a
result, it will be eventually deregistered from the game server group to avoid
affecting utilization metrics. The best practice is to report health every 60
seconds.

To change game server metadata, provide updated game server
data.

Once a game server is successfully updated, the relevant statuses and
timestamps are updated. Learn more GameLift FleetIQ Guide

Related operations

RegisterGameServer

ListGameServers

ClaimGameServer

DescribeGameServer

UpdateGameServer

DeregisterGameServer
// This operation is used with the Amazon GameLift FleetIQ solution and game server // groups . Updates information about a registered game server to help GameLift // FleetIQ to track game server availability . This operation is called by a game // server process that is running on an instance in a game server group . Use this // operation to update the following types of game server information . You can make // all three types of updates in the same request : // // * To update the game server ' s // utilization status identify the game server and game server group and specify // the current utilization status . Use this status to identify when game servers // are currently hosting games and when they are available to be claimed . // // * To // report health status identify the game server and game server group and set // health check to HEALTHY . If a game server does not report health status for a // certain length of time the game server is no longer considered healthy . As a // result it will be eventually deregistered from the game server group to avoid // affecting utilization metrics . The best practice is to report health every 60 // seconds . // // * To change game server metadata provide updated game server // data . // // Once a game server is successfully updated the relevant statuses and // timestamps are updated . Learn more GameLift FleetIQ Guide // ( https : // docs . aws . amazon . com / gamelift / latest / fleetiqguide / gsg - intro . html ) // Related operations // // * RegisterGameServer // // * ListGameServers // // * // ClaimGameServer // // * DescribeGameServer // // * UpdateGameServer // // * // DeregisterGameServer
func (c *Client) UpdateGameServer(ctx context.Context, params *UpdateGameServerInput, optFns ...func(*Options)) (*UpdateGameServerOutput, error) {
	if params == nil {
		params = &UpdateGameServerInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "UpdateGameServer", params, optFns, addOperationUpdateGameServerMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*UpdateGameServerOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) UpdateGameServer ( ctx context . Context , params * UpdateGameServerInput , optFns ... func ( * Options ) ) ( * UpdateGameServerOutput , error ) { if params == nil { params = & UpdateGameServerInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationUpdateGameServerMiddlewares ) if err != nil { return nil , err } out := result . ( * UpdateGameServerOutput ) out . ResultMetadata = metadata return out , nil }
This operation is used with the Amazon GameLift FleetIQ solution and game server
groups.
This operation is used with the Amazon GameLift FleetIQ solution and game server groups .