Amazon.GameLift.AmazonGameLiftClient.CreateAlias C# (CSharp) Method

CreateAlias() public method

Creates an alias for a fleet. You can use an alias to anonymize your fleet by referencing an alias instead of a specific fleet when you create game sessions. Amazon GameLift supports two types of routing strategies for aliases: simple and terminal. Use a simple alias to point to an active fleet. Use a terminal alias to display a message to incoming traffic instead of routing players to an active fleet. This option is useful when a game server is no longer supported but you want to provide better messaging than a standard 404 error.

To create a fleet alias, specify an alias name, routing strategy, and optional description. If successful, a new alias record is returned, including an alias ID, which you can reference when creating a game session. To reassign the alias to another fleet ID, call UpdateAlias.

/// The requested operation would cause a conflict with the current state of a service /// resource associated with the request. Resolve the conflict before retrying this request. /// /// The service encountered an unrecoverable internal failure while processing the request. /// Clients can retry such requests immediately or after a waiting period. /// /// One or more parameter values in the request are invalid. Correct the invalid parameter /// values before retrying. /// /// The requested operation would cause the resource to exceed the allowed service limit. /// Resolve the issue before retrying. /// /// The client failed authentication. Clients should not retry such requests. ///
public CreateAlias ( CreateAliasRequest request ) : Amazon.GameLift.Model.CreateAliasResponse
request Amazon.GameLift.Model.CreateAliasRequest Container for the necessary parameters to execute the CreateAlias service method.
return Amazon.GameLift.Model.CreateAliasResponse
        public CreateAliasResponse CreateAlias(CreateAliasRequest request)
        {
            var marshaller = new CreateAliasRequestMarshaller();
            var unmarshaller = CreateAliasResponseUnmarshaller.Instance;

            return Invoke<CreateAliasRequest,CreateAliasResponse>(request, marshaller, unmarshaller);
        }
AmazonGameLiftClient