enableDirectory method

Future<EnableDirectoryResponse> enableDirectory({
  1. required String directoryArn,
})

Enables the specified directory. Only disabled directories can be enabled. Once enabled, the directory can then be read and written to.

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

Parameter directoryArn : The ARN of the directory to enable.

Implementation

Future<EnableDirectoryResponse> enableDirectory({
  required String directoryArn,
}) async {
  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/enable',
    headers: headers,
    exceptionFnMap: _exceptionFns,
  );
  return EnableDirectoryResponse.fromJson(response);
}