Skip to content

/AWS1/CL_GML=>REGISTERCOMPUTE()

About RegisterCompute

This operation has been expanded to use with the Amazon GameLift containers feature, which is currently in public preview.

Registers a compute resource in an Amazon GameLift fleet. Register computes with an Amazon GameLift Anywhere fleet or a container fleet.

For an Anywhere fleet or a container fleet that's running the Amazon GameLift Agent, the Agent handles all compute registry tasks for you. For an Anywhere fleet that doesn't use the Agent, call this operation to register fleet computes.

To register a compute, give the compute a name (must be unique within the fleet) and specify the compute resource's DNS name or IP address. Provide a fleet ID and a fleet location to associate with the compute being registered. You can optionally include the path to a TLS certificate on the compute resource.

If successful, this operation returns compute details, including an Amazon GameLift SDK endpoint or Agent endpoint. Game server processes running on the compute can use this endpoint to communicate with the Amazon GameLift service. Each server process includes the SDK endpoint in its call to the Amazon GameLift server SDK action InitSDK().

To view compute details, call DescribeCompute with the compute name.

Learn more

Method Signature

IMPORTING

Required arguments:

IV_FLEETID TYPE /AWS1/GMLFLEETIDORARN /AWS1/GMLFLEETIDORARN

A unique identifier for the fleet to register the compute to. You can use either the fleet ID or ARN value.

IV_COMPUTENAME TYPE /AWS1/GMLCOMPUTENAME /AWS1/GMLCOMPUTENAME

A descriptive label for the compute resource.

Optional arguments:

IV_CERTIFICATEPATH TYPE /AWS1/GMLNONZEROANDMAXSTRING /AWS1/GMLNONZEROANDMAXSTRING

The path to a TLS certificate on your compute resource. Amazon GameLift doesn't validate the path and certificate.

IV_DNSNAME TYPE /AWS1/GMLDNSNAMEINPUT /AWS1/GMLDNSNAMEINPUT

The DNS name of the compute resource. Amazon GameLift requires either a DNS name or IP address.

IV_IPADDRESS TYPE /AWS1/GMLIPADDRESS /AWS1/GMLIPADDRESS

The IP address of the compute resource. Amazon GameLift requires either a DNS name or IP address.

IV_LOCATION TYPE /AWS1/GMLLOCATIONSTRINGMODEL /AWS1/GMLLOCATIONSTRINGMODEL

The name of a custom location to associate with the compute resource being registered.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_GMLREGCOMPUTEOUTPUT /AWS1/CL_GMLREGCOMPUTEOUTPUT