getEnvironment method

Future<GetEnvironmentResponse> getEnvironment({
  1. required String environmentId,
})

Describes a specific runtime environment.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter environmentId : The unique identifier of the runtime environment.

Implementation

Future<GetEnvironmentResponse> getEnvironment({
  required String environmentId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/environments/${Uri.encodeComponent(environmentId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetEnvironmentResponse.fromJson(response);
}