describeAlias method
This API works with the following fleet types: EC2, Anywhere, Container
Retrieves properties for an alias. This operation returns all alias
metadata and settings. To get an alias's target fleet ID only, use
ResolveAlias.
To get alias properties, specify the alias ID. If successful, the requested alias record is returned.
Related actions
May throw InternalServiceException.
May throw InvalidRequestException.
May throw NotFoundException.
May throw UnauthorizedException.
Parameter aliasId :
The unique identifier for the fleet alias that you want to retrieve. You
can use either the alias ID or ARN value.
Implementation
Future<DescribeAliasOutput> describeAlias({
required String aliasId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'GameLift.DescribeAlias'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'AliasId': aliasId,
},
);
return DescribeAliasOutput.fromJson(jsonResponse.body);
}