getEnvironment method
Describes a specific Environment
Parameter id :
The identifier of the specific Environment to describe.
Implementation
Future<GetEnvironmentResponse> getEnvironment({
required String id,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'Interconnect.GetEnvironment'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'id': id,
},
);
return GetEnvironmentResponse.fromJson(jsonResponse.body);
}