getEnvironment method
Gets an Amazon DataZone environment.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter domainIdentifier :
The ID of the Amazon DataZone domain where the environment exists.
Parameter identifier :
The ID of the Amazon DataZone environment.
Implementation
Future<GetEnvironmentOutput> getEnvironment({
required String domainIdentifier,
required String identifier,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/v2/domains/${Uri.encodeComponent(domainIdentifier)}/environments/${Uri.encodeComponent(identifier)}',
exceptionFnMap: _exceptionFns,
);
return GetEnvironmentOutput.fromJson(response);
}