getRegistry method
Describes the specified registry in detail.
May throw InvalidInputException. May throw AccessDeniedException. May throw EntityNotFoundException. May throw InternalServiceException.
Parameter registryId
:
This is a wrapper structure that may contain the registry name and Amazon
Resource Name (ARN).
Implementation
Future<GetRegistryResponse> getRegistry({
required RegistryId registryId,
}) async {
ArgumentError.checkNotNull(registryId, 'registryId');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.GetRegistry'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'RegistryId': registryId,
},
);
return GetRegistryResponse.fromJson(jsonResponse.body);
}