getConnection method
Describes the current state of a Connection resource as specified by the identifier.
Parameter identifier :
The identifier of the requested Connection
Implementation
Future<GetConnectionResponse> getConnection({
required String identifier,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'Interconnect.GetConnection'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'identifier': identifier,
},
);
return GetConnectionResponse.fromJson(jsonResponse.body);
}