getEnvironment method
Returns information for an environment.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter id :
The ID of the environment for which to return information.
Implementation
Future<GetEnvironmentResponse> getEnvironment({
required String id,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/environments/${Uri.encodeComponent(id)}',
exceptionFnMap: _exceptionFns,
);
return GetEnvironmentResponse.fromJson(response);
}