deleteMatchmakingConfiguration method
Permanently removes a FlexMatch matchmaking configuration. To delete, specify the configuration name. A matchmaking configuration cannot be deleted if it is being used in any active matchmaking tickets.
Related operations
- CreateMatchmakingConfiguration
- DescribeMatchmakingConfigurations
- UpdateMatchmakingConfiguration
- DeleteMatchmakingConfiguration
- CreateMatchmakingRuleSet
- DescribeMatchmakingRuleSets
- ValidateMatchmakingRuleSet
- DeleteMatchmakingRuleSet
May throw InvalidRequestException. May throw NotFoundException. May throw InternalServiceException. May throw UnsupportedRegionException. May throw TaggingFailedException.
Parameter name
:
A unique identifier for a matchmaking configuration. You can use either
the configuration name or ARN value.
Implementation
Future<void> deleteMatchmakingConfiguration({
required String name,
}) async {
ArgumentError.checkNotNull(name, 'name');
_s.validateStringLength(
'name',
name,
1,
256,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'GameLift.DeleteMatchmakingConfiguration'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Name': name,
},
);
}