

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# Amazon GameLift ServersFlexMatchAPI 参考 (AWS SDK)
<a name="reference-awssdk-flex"></a>

本主题提供了基于任务的 Amazon GameLift Servers FlexMatch API 操作列表。Amazon GameLift ServersFlexMatch服务 API 打包到`aws.gamelift`命名空间中的 AWS SDK 中。[下载 AWS SDK](https://aws.amazon.com/tools/#SDKs) 或[查看 Amazon GameLift Servers API 参考文档](https://docs.aws.amazon.com/gamelift/latest/apireference/)。

Amazon GameLift ServersFlexMatch提供配对服务，用于Amazon GameLift Servers托管解决方案托管的游戏（包括用于自定义游戏服务器的托管或Amazon GameLift ServersRealtime托管在 Amazon EC2 上 Amazon GameLift ServersFleetIQ），以及其他托管系统（例如 peer-to-peer本地或云计算基元）。有关其他 Amazon GameLift Servers 托管选项的更多信息，请参阅 [Amazon GameLift Servers 开发人员指南](https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-intro.html)。

**Topics**
+ [设置对战规则和流程](#reference-awssdk-flex-configure)
+ [为一个或多个玩家申请对战](#reference-awssdk-flex-place)
+ [可用编程语言](#reference-awssdk-langlist)

## 设置对战规则和流程
<a name="reference-awssdk-flex-configure"></a>

调用这些操作来创建 FlexMatch 对战构建器，为您的游戏配置对战流程，并定义一组用于创建对战和队伍的自定义规则。

**对战配置**
+ [CreateMatchmakingConfiguration](https://docs.aws.amazon.com/gamelift/latest/apireference/API_CreateMatchmakingConfiguration.html)— 创建配对配置，其中包含评估玩家群组和组建玩家队伍的说明。使用 Amazon GameLift Servers 进行托管时，还要指定如何为对战创建新的游戏会话。
+ [DescribeMatchmakingConfigurations](https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeMatchmakingConfigurations.html)— 检索已定义Amazon GameLift Servers区域的配对配置。
+ [UpdateMatchmakingConfiguration](https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateMatchmakingConfiguration.html)—更改配对配置的设置. 队列.
+ [DeleteMatchmakingConfiguration](https://docs.aws.amazon.com/gamelift/latest/apireference/API_DeleteMatchmakingConfiguration.html)— 从该地区移除配对配置。

**对战规则集**
+ [CreateMatchmakingRuleSet](https://docs.aws.amazon.com/gamelift/latest/apireference/API_CreateMatchmakingRuleSet.html)— 创建一组在搜索玩家匹配项时使用的规则。
+ [DescribeMatchmakingRuleSets](https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeMatchmakingRuleSets.html)— 检索在某个Amazon GameLift Servers地区定义的配对规则集。
+ [ValidateMatchmakingRuleSet](https://docs.aws.amazon.com/gamelift/latest/apireference/API_ValidateMatchmakingRuleSet.html)— 验证一组配对规则的语法。
+ [DeleteMatchmakingRuleSet](https://docs.aws.amazon.com/gamelift/latest/apireference/API_DeleteMatchmakingRuleSet.html)— 从该地区移除配对规则集。

## 为一个或多个玩家申请对战
<a name="reference-awssdk-flex-place"></a>

从游戏客户端服务调用这些操作来管理玩家对战请求。
+ [StartMatchmaking](https://docs.aws.amazon.com/gamelift/latest/apireference/API_StartMatchmaking.html)— 为想要参加同一场比赛的一名玩家或一组玩家申请配对。
+ [DescribeMatchmaking](https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeMatchmaking.html)— 获取配对请求的详细信息，包括状态。
+ [AcceptMatch](https://docs.aws.amazon.com/gamelift/latest/apireference/API_AcceptMatch.html)— 对于需要玩家接受的比赛，请在玩家接受提议的比赛Amazon GameLift Servers时发出通知。
+ [StopMatchmaking](https://docs.aws.amazon.com/gamelift/latest/apireference/API_StopMatchmaking.html)— 取消配对请求。
+ [StartMatchBackfill](https://docs.aws.amazon.com/gamelift/latest/apireference/API_StartMatchBackfill.html)-请求其他玩家匹配以填补现有游戏会话中的空位。

## 可用编程语言
<a name="reference-awssdk-langlist"></a>

支持的 S AWS DK Amazon GameLift Servers 有以下语言版本。有关开发环境支持的信息，请参阅每种语言的文档。
+ C\$1\$1（[软件开发工具包文档](https://aws.amazon.com/sdk-for-cpp/)）（[https://sdk.amazonaws.com/cpp/api/LATEST/namespace_aws_1_1_game_lift.html](https://sdk.amazonaws.com/cpp/api/LATEST/namespace_aws_1_1_game_lift.html)）
+ Java（[软件开发工具包文档](https://aws.amazon.com/sdk-for-java/)）（[https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/gamelift/package-summary.html](https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/gamelift/package-summary.html)）
+ .NET（[软件开发工具包文档](https://aws.amazon.com/sdk-for-net/)）（[https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/GameLift/NGameLift.html](https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/GameLift/NGameLift.html)）
+ Go（[软件开发工具包文档](https://aws.amazon.com/sdk-for-go/)）（[https://docs.aws.amazon.com/sdk-for-go/api/service/gamelift/](https://docs.aws.amazon.com/sdk-for-go/api/service/gamelift/)）
+ Python（[软件开发工具包文档](https://aws.amazon.com/sdk-for-python/)）（[https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/gamelift.html](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/gamelift.html)）
+ Ruby（[软件开发工具包文档](https://aws.amazon.com/sdk-for-ruby/)）（[https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/GameLift.html](https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/GameLift.html)）
+ PHP（[软件开发工具包文档](https://aws.amazon.com/sdk-for-php/)）（[https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-Aws.GameLift.GameLiftClient.html](https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-Aws.GameLift.GameLiftClient.html)）
+ JavaScript/Node.js（[SDK 文档](https://aws.amazon.com/sdk-for-node-js/)）([https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-gamelift/index.html](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-gamelift/index.html))