getEnvironment method
Gets an Amazon Web Services Migration Hub Refactor Spaces environment.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter environmentIdentifier :
The ID of the environment.
Implementation
Future<GetEnvironmentResponse> getEnvironment({
required String environmentIdentifier,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/environments/${Uri.encodeComponent(environmentIdentifier)}',
exceptionFnMap: _exceptionFns,
);
return GetEnvironmentResponse.fromJson(response);
}