code: @Override
      public BatchWriteResult batchWrite(BatchWriteRequest request) {
          request = beforeClientExecution(request);
          return executeBatchWrite(request);
      }
docs: <p>
  Performs all the write operations in a batch. Either all the operations succeed or none.
  </p>
  
  @param batchWriteRequest
  @return Result of the BatchWrite operation returned by the service.
  @throws InternalServiceException
  Indicates a problem that must be resolved by Amazon Web Services. This might be a transient error in
  which case you can retry your request until it succeeds. Otherwise, go to the <a
  href="http://status.aws.amazon.com/">AWS Service Health Dashboard</a> site to see if there are any
  operational issues with the service.
  @throws InvalidArnException
  Indicates that the provided ARN value is not valid.
  @throws RetryableConflictException
  Occurs when a conflict with a previous successful write is detected. For example, if a write operation
  occurs on an object and then an attempt is made to read the object using “SERIALIZABLE” consistency, this
  exception may result. This generally occurs when the previous write did not have time to propagate to the
  host serving the current request. A retry (with appropriate backoff logic) is the recommended response to
  this exception.
  @throws ValidationException
  Indicates that your request is malformed in some manner. See the exception message.
  @throws LimitExceededException
  Indicates that limits are exceeded. See <a
  href="https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html">Limits</a> for more
  information.
  @throws AccessDeniedException
  Access denied. Check your permissions.
  @throws DirectoryNotEnabledException
  Operations are only permitted on enabled directories.
  @throws BatchWriteException
  A <code>BatchWrite</code> exception has occurred.
  @sample AmazonCloudDirectory.BatchWrite
  @see <a href="http://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/BatchWrite" target="_top">AWS API
  Documentation</a>