getDirectory method
Retrieves metadata about a directory.
May throw InternalServiceException. May throw InvalidArnException. May throw RetryableConflictException. May throw ValidationException. May throw LimitExceededException. May throw AccessDeniedException.
Parameter directoryArn
:
The ARN of the directory.
Implementation
Future<GetDirectoryResponse> getDirectory({
required String directoryArn,
}) async {
ArgumentError.checkNotNull(directoryArn, 'directoryArn');
final headers = <String, String>{
'x-amz-data-partition': directoryArn.toString(),
};
final response = await _protocol.send(
payload: null,
method: 'POST',
requestUri: '/amazonclouddirectory/2017-01-11/directory/get',
headers: headers,
exceptionFnMap: _exceptionFns,
);
return GetDirectoryResponse.fromJson(response);
}