disableDirectory method

Future<DisableDirectoryResponse> disableDirectory({
  1. required String directoryArn,
})

Disables the specified directory. Disabled directories cannot be read or written to. Only enabled directories can be disabled. Disabled directories may be reenabled.

May throw ResourceNotFoundException. May throw DirectoryDeletedException. May throw InternalServiceException. May throw ValidationException. May throw LimitExceededException. May throw AccessDeniedException. May throw RetryableConflictException. May throw InvalidArnException.

Parameter directoryArn : The ARN of the directory to disable.

Implementation

Future<DisableDirectoryResponse> disableDirectory({
  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: 'PUT',
    requestUri: '/amazonclouddirectory/2017-01-11/directory/disable',
    headers: headers,
    exceptionFnMap: _exceptionFns,
  );
  return DisableDirectoryResponse.fromJson(response);
}